본문 바로가기

Tools/Confluence

[Confluence] 이미지를 페이지에 붙여넣기 할 때 예외 발생

요약

MS PowerPoint 나 Word 등의 문서에 포함된 이미지를 Confluence 에 붙여넣기 후, 페이지를 저장하면 다음과 같은 예외 오류 발생

com.atlassian.confluence.content.render.xhtml.XhtmlException: Missing required attribute: {http://atlassian.com/resource/identifier}value

 

원인

Chrome을 통해 Base64 인코딩 형태의 이미지를 붙여넣기 할 경우, 처리하지 못함. (Chrome 에서 발생, Firefox 정상)

 

관련 이슈

https://jira.atlassian.com/browse/CONFSERVER-76082

 

해결

아래와 같은 방법 중 하나를 사용

  • Chrome 대신 Firefox 를 사용
  • base64 이미지를 jpg 혹은 png 파일로 변환 후, 붙여넣기 (그림판 등을 경유해서 붙여넣기)
  • base64 이미지를 HTML Macro 를 통해 붙여넣기

아래와 같이 HTML Macro 에 추가

<img src="data:image/jpeg;base64,iVBORw0KGgoAAAANSUhEUgAAAKgAAAAvCAYAAAB3/oHUAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAh6SURBVHhe7ZrPbxVVFMfva9lS1vYloASkSHDVdgUkgqKJhpY1ago7y14wlMTEVv8C6g7YuLY1miju1BWPlUQjQlAwfSwRCokEab2fM3Mep5fX1+n7AYM5n2Yy987cuXN/fO85585r5Z8HD5aD45SUvvzsOKXkqQh0+WYtLP08l+ccpzg9F+jSj2fCoy8mwvJPsyHcWcivOk4xnpqLX47ifPTF0TznOMXouUD79h4Plc2jkkakS9+ckrTjFKEnAk3jzf53pkNlU1XS3PN41ClK1wWKG8dKEns2iOLse2cmz0RL6vGoU5CuCpTd+vLNi5JeiiJ8NHuwIcTK5pHQt2dS0h6POkXpqkAR4YbJCw133hBiLtK+V8dXxqPWyjpOE3rzS1IuTEQICLaye0w2TOm9/iPnRdiO04ze7OKjIPuPnFvh0pcvz2cWM4lHl76Ou/pcrGViYaEeLtZqec55VnRFoMSaIj4rNIQYLaYVKXEp5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x0H4JkrV67I+eSJE1KmEypFfkmyO+09+/blqc7oRZ3O/4/SunjHgXVb0F7gFtRZDbegTqlxgTqlppCLd5xnhVtQp9S4QJ1S4wJ1So0L1Ck1LlCn1LhAnVLjAnVKjQvUKTUuUKfUVG7duuW/JDml4ur1P8P2rS9KunL79m0XqFMqfr/2R3h520uSrty/f98F6pSKK9euhx3btkq68sD/WcQpGb9dvR6GtucCffjwoQvUKRWPBRrCf3SVcsMqvKLQAAAAAElFTkSuQmCC"/>

표시 예

 

 

참고

일반 이미지를 base64 인코딩 형태로 변환할 수 있는 사이트

https://base64.guru/converter/encode/image