-
Bug
-
Resolution: Fixed
-
Highest
-
7.0.1, 7.2.1, 7.4.1, 7.11.1, 7.11.2, 7.13.0, 7.13.2, 7.13.4, 7.13.7, 7.14.0
-
47
-
Severity 2 - Major
-
1,196
-
The fix for this bug has been released to our Long Term Support release.
The fix for this bug is now available in the latest release of Confluence 7.13 and 7.19
Issue Summary
Copy and paste of an image results in the exception: com.atlassian.confluence.content.render.xhtml.XhtmlException and the image is lost. This usually happens when base64 images are being copied.
Steps to Reproduce
- Copy an image from any website like this where the embedded image is base64 encoded
- Paste it in the editor of the page
- Save the page
Expected Results
The image displayed correctly as pasted.
Actual Results
A broken image placeholder is displayed.
The following error is thrown in the editor and the image is lost.
com.atlassian.confluence.content.render.xhtml.XhtmlException: Missing required attribute: {http://atlassian.com/resource/identifier}value
The logs shows the following error.
2021-05-28 10:19:17,330 ERROR [http-nio-27111-exec-2] [render.xhtml.links.XhtmlOutgoingLinksExtractor] extract Error unmarshalling resource identifier fragment. -- referer: http://localhost:27111/c7111/pages/resumedraft.action?draftId=1409026&draftShareId=f875b326-a2af-4348-8f91-820ba69f196b& | url: /c7111/rest/tinymce/1/drafts | traceId: b9c0c913d6ceba4d | userName: admin com.atlassian.confluence.content.render.xhtml.XhtmlException: com.atlassian.confluence.content.render.xhtml.XhtmlException: Missing required attribute: {http://atlassian.com/resource/identifier}value at com.atlassian.confluence.content.render.xhtml.storage.resource.identifiers.StorageResourceIdentifierUnmarshaller.unmarshal(StorageResourceIdentifierUnmarshaller.java:67) at com.atlassian.confluence.content.render.xhtml.storage.resource.identifiers.StorageResourceIdentifierUnmarshaller.unmarshal(StorageResourceIdentifierUnmarshaller.java:47) at com.atlassian.confluence.content.render.xhtml.links.XhtmlOutgoingLinksExtractor.extract(XhtmlOutgoingLinksExtractor.java:112) at com.atlassian.confluence.links.DefaultLinkManager.updateOutgoingLinks(DefaultLinkManager.java:111) . Caused by: com.atlassian.confluence.content.render.xhtml.XhtmlException: Missing required attribute: {http://atlassian.com/resource/identifier}value at com.atlassian.confluence.content.render.xhtml.storage.resource.identifiers.StorageResourceIdentifierUnmarshaller.getAttributeValue(StorageResourceIdentifierUnmarshaller.java:155) at com.atlassian.confluence.content.render.xhtml.storage.resource.identifiers.StorageResourceIdentifierUnmarshaller.innerUnmarshal(StorageResourceIdentifierUnmarshaller.java:105) at com.atlassian.confluence.content.render.xhtml.storage.resource.identifiers.StorageResourceIdentifierUnmarshaller.unmarshal(StorageResourceIdentifierUnmarshaller.java:65)
Notes
The storage format of the page shows an empty URL in place of the image.
<ac:image><ri:url /></ac:image>
Older versions of Confluence will show a broken image.
<img src="/wiki/plugins/servlet/confluence/placeholder/error?i18nKey=editor.placeholder.broken.image&locale=en_GB&version=2" title="com.atlassian.confluence.content.render.xhtml.XhtmlException: Missing required attribute: {http://atlassian.com/resource/identifier}value" class="transform-error" data-encoded-xml="%3Cac%3Aimage+ac%3Aalt%3D%22Image+result+for+devtools+crash%22%3E%3Cri%3Aurl+%2F%3E%3C%2Fac%3Aimage%3E">
Workaround
There are a few workaround available for this bug.
- Save the image locally on the workstation and then copy into Confluence
- Copy from another source where the image format is png or jpeg
- causes
-
CONFSERVER-78052 Pasting a chart image from native Office Applications on Windows doesn't trigger upload and result in server exception
- Closed
-
CONFSERVER-79517 Pasting an image from the clipboard on Firefox while the browser language is set to German causes the filename not to get a timestamp
- Closed
- is duplicated by
-
CONFSERVER-28739 copy and pasting web images will not attach the image to the page
- Closed
- is related to
-
CONFSERVER-78052 Pasting a chart image from native Office Applications on Windows doesn't trigger upload and result in server exception
- Closed
-
CONFSERVER-79549 Pasting a chart or image from Office MSO to Chrome on Windows doesn't work
- Closed
-
CONFSERVER-33189 Can not add data:image as url in Images from the Web under image macro.
- Gathering Impact
-
CONFSERVER-78057 Pasting an image in the editor doesn't trigger upload and result in browser console and server exceptions
- Gathering Impact
- relates to
-
CONFCLOUD-73355 Pasting specific images (base64) fails in the Confluence editor (legacy)
- Long Term Backlog
- Testing discovered
-
CONFSERVER-77165 Cannot paste multiple images copied from local file system
- Closed
-
CONFSERVER-77166 When using GoEdit to edit an attachment replace causes a StaleObjectStateException
- Closed
-
CONFSERVER-76082 Drag and drop an image in the editor fails and results in the server exception
- Short Term Backlog
- mentioned in
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...