-
Notifications
You must be signed in to change notification settings - Fork 10
Delete page forbidden #270
Comments
@charlesmike delete this page please |
@amihaiemil Some steps failed when processing your command. See logs for details. |
@charlesmike delete this page please |
@amihaiemil Some steps failed when processing your command. See logs for details. |
@SherifWaly I will explain later today what the problem is |
@amihaiemil What is the problem here ? |
@SherifWaly When we index each page, we use the url in plain format as id (e.g. the id of an indexed document is Now, we use this id for deletion and I think the problem is that, because of the special characters contained in the url (e.g. We need to stop using the plain URL as id, and turn it into a Base64-encoded String instead. I will come back with the details in about an hour :) |
@SherifWaly The problem is quite straight forward - everywhere we use the ID, we have the URL of the page and need to turn it into a Base64-encoded String. See an example of encoding here (first answer) -- we don't have Java8, so use the class from Apache Commons (if we don't have the dependency, declare it with maven) Now, so far, the ID is used in 2 places: 1) When indexing the page/pagesWhen we index the pages, we turn them into an JSON "bulk", specific to ElasticSearch (more details about The class responsible for turning page(s) into the bulk object is EsBulkJson -- there, in the method 2) When we perform the delete page operationIn class AmazonElasticSearch, method Just these 2 changes, and fix failing unit tests, if any. Don't hurry with this one, you can also do it next week (this weekend I won't have my laptop with me anyway, until Sunday evening) |
delete page does not work, AWS returns status 403 FORBIDDEN: http://charles.amihaiemil.com/logs.html?log=/d0181af5-5eda-444c-8654-eb488275935a.log
The text was updated successfully, but these errors were encountered: