Details
-
Bug
-
Resolution: Timed out
-
Medium
-
36
-
Severity 2 - Major
-
1
-
Description
Summary
If a draft contains a link to a removed space, (space exists when creating the draft, but the space was removed while the draft is still yet to be published), then attempts to save the page will fail with this error:
2017-05-03 11:58:46.019681500 2017-05-03 11:58:46,013 ERROR [http-bio-1994-exec-264] [common.error.jersey.ThrowableExceptionMapper] toResponse Uncaught exception thrown by REST service: Could not unmarshal a link in the editor. 2017-05-03 11:58:46.019683500 -- url: /wiki/rest/tinymce/1/drafts | traceId: c8ba9d74ca33d1a9 | userName: sysadmin | referer: https://hipagesgroup.atlassian.net/wiki/pages/resumedraft.action?draftId=134930910&draftShareId=0a6c4505-43f5-4b2f-8137-af10991755d8 2017-05-03 11:58:46.019684500 com.atlassian.confluence.content.render.xhtml.editor.link.CannotUnmarshalLinkException: Could not unmarshal a link in the editor. ... 2017-05-03 11:58:46.021669500 Caused by: com.atlassian.confluence.content.render.xhtml.model.resource.identifiers.CannotResolveResourceIdentifierException: Unable to resolve the resource identifier IdAndTypeResourceIdentifier[id=8060929,type=space] 2017-05-03 11:58:46.021678500 at com.atlassian.confluence.content.render.xhtml.model.resource.identifiers.IdAndTypeResourceIdentifierResolver.resolve(IdAndTypeResourceIdentifierResolver.java:50) 2017-05-03 11:58:46.021679500 at com.atlassian.confluence.content.render.xhtml.model.resource.identifiers.IdAndTypeResourceIdentifierResolver.resolve(IdAndTypeResourceIdentifierResolver.java:20) 2017-05-03 11:58:46.021686500 at com.atlassian.confluence.content.render.xhtml.editor.resource.identifiers.IdAndTypeAnalyzingResourceIdentifierUnmarshaller.unmarshal(IdAndTypeAnalyzingResourceIdentifierUnmarshaller.java:60) 2017-05-03 11:58:46.021687500 at com.atlassian.confluence.content.render.xhtml.editor.resource.identifiers.IdAndTypeAnalyzingResourceIdentifierUnmarshaller.unmarshal(IdAndTypeAnalyzingResourceIdentifierUnmarshaller.java:26) 2017-05-03 11:58:46.021694500 at com.atlassian.confluence.content.render.xhtml.editor.link.EditorLinkUnmarshaller.unmarshal(Ed
Steps to Reproduce
- Create a test page
- Edit the page (after it has been created in step 1), and add a link to a space. Do not publish the draft at this point
- In a separate browser tab, remove the space that was linked earlier
- Attempt to publish the draft containing that space link now
Expected Behavior
The page should be published, with a broken space link
Observed Behavior
Page publishing fails, with the error in the logs above, and this error in the UI:
Workaround
Unlink all such broken links in the editor