Copy Page Hierarchy API NullPointerException with new emoji titles / page header images

We are seeing that using the Copy Page Hierarchy API fails with a NullPointerException after modifying the page using either of the new buttons: “Add Emoji” or “Add Header Image”.

The exact error is:

{"state":"error","finishedPages":0,"rawStatus":{"id":"1426489360","name":{"key":"com.atlassian.confluence.api.impl.service.longtasks.BulkPageCopyTaskRunner","args":[]},"elapsedTime":226,"percentageComplete":100,"successful":false,"finished":true,"messages":[{"translation":"{\"status\":{\"key\":\"STATUS_COPIED_PAGES\",\"translation\":null,\"args\":[\"0\"]},\"destinationUrl\":null,\"totalPageNeedToCopy\":1,\"errors\":[{\"key\":\"NullPointerException\",\"type\":\"ERROR\",\"args\":[],\"translation\":null}]}","args":[]}],"status":"STATUS_COPIED_PAGES","errors":[{"key":"NullPointerException","args":[]}],"additionalDetails":{"totalPageNeedToCopy":1,"destinationUrl":null},"_links":{"base":"https://artemis-test2.atlassian.net/wiki","context":"/wiki"}},"rawDetail":"{\"status\":{\"key\":\"STATUS_COPIED_PAGES\",\"translation\":null,\"args\":[\"0\"]},\"destinationUrl\":null,\"totalPageNeedToCopy\":1,\"errors\":[{\"key\":\"NullPointerException\",\"type\":\"ERROR\",\"args\":[],\"translation\":null}]}"}

The same copy operation succeeds when the emoji and / or header image is removed.

This may be related to the new surfacing of CPH API exceptions (Change to Copy Page Hierarchy API exception handling) but we did not see this type of error occurring previously.

1 Like

Hi @GeorgeSlater,

Thank you for your effort in reproducing and raising this problem.

I can confirm that there is indeed a problem and we are now tracking it here: https://jira.atlassian.com/browse/CONFCLOUD-72284

And yes, you are right that the exception is now being surfaced because of the new error handling.

Cheers,
Caterina

2 Likes