-
Bug
-
Resolution: Unresolved
-
Minor
-
None
The plugin updated the page in the wrong space. This is probably caused by REST API of Confluence.
$ curl -s "$API/?title=Expiration+status&space=SPACE&expand=body.storage" --header "Authorization: Bearer $AUTH" | jq '.results[]._links.webui' "/display/WRONG_SPACE/Expiration+status" "/display/SPACE/Expiration+status"
$ curl -s "$API/?title=Expiration+status&space=SPACE&expand=body.storage" --header "Authorization: Bearer $AUTH" | jq '.results[].id' "830309697" "811764284"
Probably, there is needed another test to check returned page IDs.
$ curl -s "$API/811764284" --header "Authorization: Bearer $AUTH" | jq '._links.webui' "/display/SPACE/Expiration+status" $ curl -s "$API/830309697" --header "Authorization: Bearer $AUTH" | jq '._links.webui' "/display/WRONG_SPACE/Expiration+status"