diff --git a/htroot/api/blacklists/add_entry_p.java b/htroot/api/blacklists/add_entry_p.java index f5d7c081c..c9d3e5035 100644 --- a/htroot/api/blacklists/add_entry_p.java +++ b/htroot/api/blacklists/add_entry_p.java @@ -14,7 +14,7 @@ public class add_entry_p { private static final String RESULT_SUCCESS = "1"; private static final String XML_ITEM_STATUS = "status"; private static final String KEY_NEW_ENTRY = "entry"; - private static final String KEY_CURRENT_BLACKLIST = "blacklist"; + private static final String KEY_CURRENT_BLACKLIST = "list"; public static serverObjects respond(final RequestHeader header, final serverObjects post, @SuppressWarnings("unused") final serverSwitch env) { diff --git a/htroot/api/blacklists/delete_entry_p.java b/htroot/api/blacklists/delete_entry_p.java index a6844f05b..693ed9abf 100644 --- a/htroot/api/blacklists/delete_entry_p.java +++ b/htroot/api/blacklists/delete_entry_p.java @@ -14,7 +14,7 @@ public class delete_entry_p { private static final String RESULT_SUCCESS = "1"; private static final String XML_ITEM_STATUS = "status"; private static final String KEY_NEW_ENTRY = "entry"; - private static final String KEY_CURRENT_BLACKLIST = "blacklist"; + private static final String KEY_CURRENT_BLACKLIST = "list"; public static serverObjects respond(final RequestHeader header, final serverObjects post, @SuppressWarnings("unused") final serverSwitch env) { diff --git a/htroot/api/blacklists/get_list_p.java b/htroot/api/blacklists/get_list_p.java index c33bf90dc..076cefc90 100644 --- a/htroot/api/blacklists/get_list_p.java +++ b/htroot/api/blacklists/get_list_p.java @@ -13,6 +13,7 @@ import net.yacy.server.serverSwitch; public class get_list_p { + private static final String KEY_CURRENT_BLACKLIST = "list"; private static final String ITEMS = "items"; private static final String POSTFIX_ITEM = "_item"; private static final String PREFIX_ITEMS = "items_"; @@ -31,7 +32,7 @@ public class get_list_p { final Collection dirlist = FileUtils.getDirListing(ListManager.listsPath, Blacklist.BLACKLIST_FILENAME_FILTER); - final String blackListName = (post == null) ? "" : post.get("name", ""); + final String blackListName = (post == null) ? "" : post.get(KEY_CURRENT_BLACKLIST, ""); int count; if (dirlist != null) {