Skip to content

Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance

Bugfix for broken Tags

allobd13bd78adf7
diff --git a/source/de/anomic/data/bookmarksDB.java b/source/de/anomic/data/bookmarksDB.java
index 9a76513e6..2751ed642 100644
--- a/source/de/anomic/data/bookmarksDB.java
+++ b/source/de/anomic/data/bookmarksDB.java
@@ -245,7 +245,7 @@ public class bookmarksDB {
}
public void saveTag(Tag tag){
if(tag!=null){
- tagCache.put(tag.getTagName(), tag);
+ tagCache.put(tag.getTagHash(), tag);
}
}
/**
@@ -439,7 +439,7 @@ public class bookmarksDB {
bookmarksDB.Tag tag=null;
Iterator it=tags.iterator();
while(it.hasNext()){
- tag=getTag((String) it.next());
+ tag=getTag( tagHash((String) it.next()) );
if(tag!=null){
tag.delete(urlHash);
saveTag(tag);
@@ -638,7 +638,7 @@ public class bookmarksDB {
return urlHashes;
}
public boolean hasPublicItems(){
- Iterator it=getBookmarksIterator(this.getTagName(), false);
+ Iterator it=getBookmarksIterator(this.getTagHash(), false);
if(it.hasNext()){
return true;
}
@@ -888,8 +888,8 @@ public class bookmarksDB {
public void remove() {
if (this.nextEntry != null) {
try {
- Object tagName = this.nextEntry.getTagName();
- if (tagName != null) removeTag((String) tagName);
+ String tagHash = (String)this.nextEntry.getTagHash();
+ if (tagHash != null) removeTag((String) tagHash);
} catch (kelondroException e) {
//resetDatabase();
}