Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,13 @@ public void doFilter(

final HttpServletRequest httpreq = (HttpServletRequest) servletRequest;
// Saving a page or blogpost fires: PUT http://confluence-server:8090/rest/api/content/65603?status=draft
if (httpreq.getRequestURI().startsWith("/rest/api/content/") &&

// Fix bug:
// [BUG] the plugin can't support multi-level URLs case
// https://github.com/askscio/atlassian-plugins/issues/36
// This codes have been tested successfully. They can support multi-level URLs case.
// huang.rong.gang@navercorp.com
if (httpreq.getRequestURI().contains("/rest/api/content/") &&
ALLOWED_REST_API_CONTENT_ACTIONS.contains(httpreq.getMethod())) {
if ("DELETE".equals(httpreq.getMethod())) {
logger.debug("Delete url: " + httpreq.getMethod() + ": " + httpreq.getRequestURI());
Expand Down