The Confluence 4.2 rich text editor just reported the following error:

      Failure when converting editor format to storage format.

      I have not been able to reproduce this error, but here is (only roughly, sorry) what I did to create it:

      1. Create a new page.
      2. Enter two paragraphs of text, with no other formatting than a link to a user name entered via autocompletion (typing [, then ~, then the user name); on the first attempt, the autocompletion created a link to the profile image, rather than to the user name. (I think the secret must be in here somewhere; the deletion of the first attempt, and the re-creation of the link to the user name. I know that I must have been doing something wrong the first time around for the link to the profile image to have been created, but I am afraid I cannot recall the exact keystrokes.)

      After receiving the error (and hence, being unable to save the page), I deleted what I thought might be the problem (the link), and then opened the Source Editor plugin to view the XML. The second paragraph, that had contained the link, had the following class attribute:

      <p class="confluence-link">

      I deleted the class attribute, returned to the rich text editor, re-created the link to the user name, and saved the page without further ado.

      In my attempts to reproduce this error, I managed to create XML with the following (to me, extraneous - and, certainly, as far as the view presented by the rich text editor is concerned, invisible) span element around the ac:link:

      <p>jhdfkjhdfkdfj <span class="confluence-link">
          <ac:link>
            <ri:user ri:username="grahan01"/>
            <ac:plain-text-link-body><![CDATA[~grahan01]]></ac:plain-text-link-body>
          </ac:link>
        </span> dkjdfkjdfkjdf.</p>

            [CONFSERVER-25944] Failure when converting editor format to storage format.

            Whoops. My issue was actually this one: https://jira.atlassian.com/browse/CONF-26215

            Darryl Lee (Inactive) added a comment - Whoops. My issue was actually this one: https://jira.atlassian.com/browse/CONF-26215

            Hi, I ran into the same problem on 4.3.7. When I tried to open the Source Editor, I got:

            RuntimeException occurred while transforming editor format to storage format (com.atlassian.confluence.content.render.xhtml.XhtmlException: An error occurred while unmarshalling a link in the editor with the title RIGEL) (500)

            Any ideas?

            Darryl Lee (Inactive) added a comment - Hi, I ran into the same problem on 4.3.7. When I tried to open the Source Editor, I got: RuntimeException occurred while transforming editor format to storage format (com.atlassian.confluence.content.render.xhtml.XhtmlException: An error occurred while unmarshalling a link in the editor with the title RIGEL) (500) Any ideas?

            CB added a comment -

            Hi all, I see that this is 'Closed'. Is there a better place to put successful user work arounds when this error is encountered besides here?

            In my case, an older (created and Published with older version of Confluence) document had an image in it. I simply wanted to copy/paste it without losing the outlining (numbers + letters + roman numerals).

            1.  One
              a.  an item
                 i roman numeral
                ii roman numeral
              b. another item
            2. ditto
            3. ditto
            4. ditto
              a. an item
              b. another item
                i. roman numeral below *image*
              c. some other line
              d. more lines
            5. ditto five
            .. 
            
            

            After copy/pasting the entire document, I would see the above error, Failure when converting editor format to storage format., whenever I tried to preview or save it.

            I noted other posts on URLs, but had many of those, links in the document. There was only one image, so decided to start there first.

            I was able to create a new page in a different place (thus no page restrictions were inherited by the parent) that I had Administrative access to. To prevent the error, I copied up to the image, (from top to 4b in quoted example) but did not include the image (4b*i*). It took me some trial and error to get the outlining unchanged.

            I created an outline entry for the image, to try to put it back in later. But did not attempt to include the image yet.

                
            4. 
              a. 
              b. 
                 i. image here
                ii. extra space
              c. 
            

            I copy/pasted the remainder of the page after creating the next entry in the outline (4c. in examples above) (only way to maintain outlining with copy/paste that I could come up with.

            Still had to use paragraph indent feature (icon at top of page you are editing) as it came in as iii instead of c as planned. Just indented the entire copy/paste back one and voila it worked.

            I was able to save and preview the content, so for me the linked image was the problem. But I could see any URL, based on what others have posted, causing this error.

            Hopefully this will help someone else. Using Confluence v5.1.3. So this issue is still a problem for us.

            CB added a comment - Hi all, I see that this is 'Closed'. Is there a better place to put successful user work arounds when this error is encountered besides here? In my case, an older (created and Published with older version of Confluence) document had an image in it. I simply wanted to copy/paste it without losing the outlining (numbers + letters + roman numerals). 1. One a. an item i roman numeral ii roman numeral b. another item 2. ditto 3. ditto 4. ditto a. an item b. another item i. roman numeral below *image* c. some other line d. more lines 5. ditto five .. After copy/pasting the entire document, I would see the above error, Failure when converting editor format to storage format. , whenever I tried to preview or save it. I noted other posts on URLs, but had many of those, links in the document. There was only one image, so decided to start there first. I was able to create a new page in a different place (thus no page restrictions were inherited by the parent) that I had Administrative access to. To prevent the error, I copied up to the image, ( from top to 4b in quoted example ) but did not include the image ( 4b*i* ). It took me some trial and error to get the outlining unchanged. I created an outline entry for the image, to try to put it back in later. But did not attempt to include the image yet. 4. a. b. i. image here ii. extra space c. I copy/pasted the remainder of the page after creating the next entry in the outline ( 4c . in examples above ) (only way to maintain outlining with copy/paste that I could come up with. Still had to use paragraph indent feature (icon at top of page you are editing) as it came in as iii instead of c as planned. Just indented the entire copy/paste back one and voila it worked. I was able to save and preview the content, so for me the linked image was the problem. But I could see any URL, based on what others have posted, causing this error. Hopefully this will help someone else. Using Confluence v5.1.3. So this issue is still a problem for us.

            Thanks very much for reporting these details huw. I think you're probable hitting CONF-26215, you can get this error if you link to a space which has had it's logo customised. You might like to put a watch on that ticket to be updated when it's fixed.

            John Masson added a comment - Thanks very much for reporting these details huw . I think you're probable hitting CONF-26215 , you can get this error if you link to a space which has had it's logo customised. You might like to put a watch on that ticket to be updated when it's fixed.

            Huw added a comment -

            This is occuring on 5.1.2 as well using FF

            Steps to reproduce on 5.1.2 ( I've tried it on 2 separate Conf instances ) are below, these can probably be shortened, but this always gives me the same result.

            I created a new space
            Changed the theme from Global to Documentation
            Went back to home page
            Edit the home page
            Below the tip section, e.g. "Confluence spaces are great for sharing ....." added a new table, not inside the tip, but below it but still inside the dotted section holding the tip
            Table size was 4 rows, 3 columns, but don't think it makes any difference
            In the second row, e.g. not the heading, click on the first cell ( although probably the same for others)
            Hit the [ key, start typing the name of a space and wait for the ajax dropdown to appear
            Click on the Space name and it will be put in as a link in the cell, e.g. [JIRA]

            Wait a couple of seconds for it to save a draft or try and save and you get the error
            Failure when converting editor format to storage format.

            If you delete the link you can save the page

            Hope this helps.

            Huw added a comment - This is occuring on 5.1.2 as well using FF Steps to reproduce on 5.1.2 ( I've tried it on 2 separate Conf instances ) are below, these can probably be shortened, but this always gives me the same result. I created a new space Changed the theme from Global to Documentation Went back to home page Edit the home page Below the tip section, e.g. "Confluence spaces are great for sharing ....." added a new table, not inside the tip, but below it but still inside the dotted section holding the tip Table size was 4 rows, 3 columns, but don't think it makes any difference In the second row, e.g. not the heading, click on the first cell ( although probably the same for others) Hit the [ key, start typing the name of a space and wait for the ajax dropdown to appear Click on the Space name and it will be put in as a link in the cell, e.g. [JIRA] Wait a couple of seconds for it to save a draft or try and save and you get the error Failure when converting editor format to storage format. If you delete the link you can save the page Hope this helps.

            I'll see what we can do and provide the information.

            From: "Renan Battaglin [Atlassian] (JIRA)" <jira@atlassian.com<jira@atlassian.com>>
            Date: Tuesday, March 12, 2013 6:35 PM
            To: Karie Kelly <karie.kelly@phytel.com<karie.kelly@phytel.com>>
            Subject: [JIRA] (CONF-25944) Failure when converting editor format to storage format.

            https://jira.atlassian.com/s/en_UK-4zmgx6-418945332/850/6/_/images/icon-jira-logo.png
            https://jira.atlassian.com/secure/useravatar?avatarId=10612
            Renan Battaglin [Atlassian]<https://jira.atlassian.com/secure/ViewProfile.jspa?name=rbattaglin> commented on https://jira.atlassian.com/images/icons/issuetypes/bug.png CONF-25944<https://jira.atlassian.com/browse/CONF-25944>
            Failure when converting editor format to storage format.<https://jira.atlassian.com/browse/CONF-25944>

            Hi Karie,

            Since you are using 5.0, would you confirm if the behavior reported by Steve Lancashire [Atlassian]<https://jira.atlassian.com/secure/ViewProfile.jspa?name=slancashire> here<https://jira.atlassian.com/browse/CONF-25944?focusedCommentId=434931&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-434931> is still the same (exception being logged)?

            Would you be able to reproduce the problem and then provide (1) your log file and (2) URL for the page being saved, via our Support system: http://support.atlassian.com.

            Please also provide your Support Zip<https://confluence.atlassian.com/display/DOC/Troubleshooting+Problems+and+Requesting+Technical+Support> so that our team can check what plugins you currently use.

            Cheers,
            Renan

            This message is automatically generated by JIRA.
            If you think it was sent incorrectly, please contact your JIRA administrators
            For more information on JIRA, see: http://www.atlassian.com/software/jira

            Karie Kelly added a comment - I'll see what we can do and provide the information. From: "Renan Battaglin [Atlassian] (JIRA)" <jira@atlassian.com< jira@atlassian.com >> Date: Tuesday, March 12, 2013 6:35 PM To: Karie Kelly <karie.kelly@phytel.com< karie.kelly@phytel.com >> Subject: [JIRA] ( CONF-25944 ) Failure when converting editor format to storage format. https://jira.atlassian.com/s/en_UK-4zmgx6-418945332/850/6/_/images/icon-jira-logo.png https://jira.atlassian.com/secure/useravatar?avatarId=10612 Renan Battaglin [Atlassian] < https://jira.atlassian.com/secure/ViewProfile.jspa?name=rbattaglin > commented on https://jira.atlassian.com/images/icons/issuetypes/bug.png CONF-25944 < https://jira.atlassian.com/browse/CONF-25944 > Failure when converting editor format to storage format.< https://jira.atlassian.com/browse/CONF-25944 > Hi Karie, Since you are using 5.0, would you confirm if the behavior reported by Steve Lancashire [Atlassian] < https://jira.atlassian.com/secure/ViewProfile.jspa?name=slancashire > here< https://jira.atlassian.com/browse/CONF-25944?focusedCommentId=434931&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-434931 > is still the same (exception being logged)? Would you be able to reproduce the problem and then provide (1) your log file and (2) URL for the page being saved, via our Support system: http://support.atlassian.com . Please also provide your Support Zip< https://confluence.atlassian.com/display/DOC/Troubleshooting+Problems+and+Requesting+Technical+Support > so that our team can check what plugins you currently use. Cheers, Renan This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira

            Since this error message is quite generic and can be caused by a lot of things, I'm going to close this as fixed for the original problem and we'll track additional occurrences of this error message in individual tickets.

            eckhardt_f I've created this ticket for the problem you report, but will need some more details from you on what you mean by 'links to emails'. I've set you as the reporter so you should be able to update the ticket and provide some more details.

            karie.kelly@phytel.com if you're still having an issue can you please raise a new ticket with details of what content was on the page when you were getting this error so we can reproduce and fix.

            John Masson added a comment - Since this error message is quite generic and can be caused by a lot of things, I'm going to close this as fixed for the original problem and we'll track additional occurrences of this error message in individual tickets. eckhardt_f I've created this ticket for the problem you report, but will need some more details from you on what you mean by 'links to emails'. I've set you as the reporter so you should be able to update the ticket and provide some more details. karie.kelly@phytel.com if you're still having an issue can you please raise a new ticket with details of what content was on the page when you were getting this error so we can reproduce and fix.

            Hi, we are having the same problems since the update to version 4.3. Some old pages show this error. We have identified links to emails as the root cause. Unlinking these email links always has helped.

            Frithjof Eckhardt added a comment - Hi, we are having the same problems since the update to version 4.3. Some old pages show this error. We have identified links to emails as the root cause. Unlinking these email links always has helped.

            Hi Karie,

            Since you are using 5.0, would you confirm if the behavior reported by slancashire here is still the same (exception being logged)?

            Would you be able to reproduce the problem and then provide (1) your log file and (2) URL for the page being saved, via our Support system: http://support.atlassian.com.

            Please also provide your Support Zip so that our team can check what plugins you currently use.

            Cheers,
            Renan

            Renan Battaglin added a comment - Hi Karie, Since you are using 5.0, would you confirm if the behavior reported by slancashire here is still the same (exception being logged)? Would you be able to reproduce the problem and then provide (1) your log file and (2) URL for the page being saved, via our Support system: http://support.atlassian.com . Please also provide your Support Zip so that our team can check what plugins you currently use. Cheers, Renan

            karie.kelly@phytel.com there are a few restricted comments on here you can't see which indicate this was fixed, but looks like either it hasn't been completely, or there are other circumstances which can lead to this to happen. I'll reopen the ticket now so we can do some further investigation. Thanks for reporting it again.

            John Masson added a comment - karie.kelly@phytel.com there are a few restricted comments on here you can't see which indicate this was fixed, but looks like either it hasn't been completely, or there are other circumstances which can lead to this to happen. I'll reopen the ticket now so we can do some further investigation. Thanks for reporting it again.

              slancashire Steve Lancashire (Inactive)
              jmasson@atlassian.com John Masson
              Affected customers:
              5 This affects my team
              Watchers:
              22 Start watching this issue

                Created:
                Updated:
                Resolved: