Cannot edit Confluence questions and add an image.

XMLWordPrintable

    • 2
    • Severity 3 - Minor
    • 1

      Summary

      Cannot edit Confluence questions and add an image.

      Environment

      • Confluence
      • Confluence question 2.6.15

      Steps to Reproduce

      1. Install Confluence and Confluence questions 2.6.15
      2. Create a question
      3. Edit the question and try to add an image as an attachment
      4. Save

      Expected Results

      The question should save

      Actual Results

      Question doesn't save
      and you get the following screen errors

      The below exception is thrown in the atlassian-confluence.log file:

      2019-04-04 16:26:04,941 ERROR [http-nio-26130-exec-7] [persistence.dao.filesystem.HierarchicalMultiStreamAttachmentDataFileSystem] deleteAllAttachmentVersions Could not find attachment folder to remove at [/Users/oraissi/confluence-home/atlassian-confluence-6.13.0/attachments/ver003/nonspaced/141/65/65641/65642] for title [[com.atlassian.confluence.plugins.confluence-questions:question-draft] custom: xsxscscs v.1 (65641)].
       -- referer: http://localhost:26130/c6130/display/TEST/questions/65638/edit | url: /c6130/rest/questions/1.0/questions/questionDraft/65641 | traceId: 55b41dfef4c54f30 | userName: admin
      2019-04-04 16:26:19,892 WARN [http-nio-26130-exec-1] [confluence.impl.hibernate.ConfluenceHibernateTransactionManager] doRollback Performing rollback. Transactions:
        ->[PluginReadWriteTx]: PROPAGATION_REQUIRED,ISOLATION_DEFAULT (Session #1389395740)
       -- referer: http://localhost:26130/c6130/display/TEST/questions/65638/edit | url: /c6130/rest/questions/1.0/questions/questionDraft/65641 | traceId: 09fd9b901105cd72 | userName: admin
      2019-04-04 16:26:19,894 ERROR [http-nio-26130-exec-1] [rest.api.model.ExceptionConverter] convertServiceException No status code found for exception, converting to internal server error :
       -- referer: http://localhost:26130/c6130/display/TEST/questions/65638/edit | url: /c6130/rest/questions/1.0/questions/questionDraft/65641 | traceId: 09fd9b901105cd72 | userName: admin
      com.atlassian.confluence.plugins.questions.api.exception.QuestionException: com.atlassian.confluence.content.render.xhtml.XhtmlException: RuntimeException occurred while transforming editor format to storage format (com.atlassian.confluence.content.render.xhtml.model.resource.identifiers.CannotResolveResourceIdentifierException: Unable to resolve the resource identifier IdAndTypeResourceIdentifier[id=65642,type=attachment])
          at com.atlassian.confluence.plugins.questions.model.ConfluenceEditorFormattedBody.convertTo(ConfluenceEditorFormattedBody.java:33)
          at com.atlassian.confluence.plugins.questions.service.mapper.QuestionMapper.toQuestion(QuestionMapper.java:159)
          at com.atlassian.confluence.plugins.questions.service.QuestionServiceImpl.updateQuestion(QuestionServiceImpl.java:308)
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
          at java.lang.reflect.Method.invoke(Method.java:498)
          at com.atlassian.confluence.plugins.questions.internal.security.AuthorizationHandler.invoke(AuthorizationHandler.java:63)
          at com.sun.proxy.$Proxy3055.updateQuestion(Unknown Source)
          at com.atlassian.confluence.plugins.questions.rest.internal.QuestionsResource.updateQuestionDraft(QuestionsResource.java:539)
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
          at java.lang.reflect.Method.invoke(Method.java:498)
          at com.atlassian.plugins.rest.common.interceptor.impl.DispatchProviderHelper$ResponseOutInvoker$1.invoke(DispatchProviderHelper.java:192)
       
          at java.lang.Thread.run(Thread.java:748)
      Caused by: com.atlassian.confluence.content.render.xhtml.XhtmlException: RuntimeException occurred while transforming editor format to storage format (com.atlassian.confluence.content.render.xhtml.model.resource.identifiers.CannotResolveResourceIdentifierException: Unable to resolve the resource identifier IdAndTypeResourceIdentifier[id=65642,type=attachment])
          at com.atlassian.confluence.content.render.xhtml.editor.EditorXhtmlTransformer.transform(EditorXhtmlTransformer.java:58)
          at com.atlassian.confluence.content.render.xhtml.TransformerChain.transform(TransformerChain.java:33)
          at com.atlassian.confluence.content.render.xhtml.TransformerChain.transform(TransformerChain.java:33)
          at com.atlassian.confluence.content.render.xhtml.PluggableTransformerChain.transform(PluggableTransformerChain.java:39)
          at com.atlassian.confluence.content.render.xhtml.editor.DefaultEditorConverter.convert(DefaultEditorConverter.java:37)
          at com.atlassian.confluence.content.render.xhtml.DefaultFormatConverter.convertToStorageFormat(DefaultFormatConverter.java:124)
         
          at com.sun.proxy.$Proxy3016.convertToStorageFormat(Unknown Source)
          at com.atlassian.confluence.plugins.questions.model.ConfluenceEditorFormattedBody.convertTo(ConfluenceEditorFormattedBody.java:31)
          ... 352 more
      Caused by: java.lang.RuntimeException: com.atlassian.confluence.content.render.xhtml.model.resource.identifiers.CannotResolveResourceIdentifierException: Unable to resolve the resource identifier IdAndTypeResourceIdentifier[id=65642,type=attachment]
          at com.atlassian.confluence.content.render.xhtml.transformers.ThrowExceptionOnFragmentTransformationError.handle(ThrowExceptionOnFragmentTransformationError.java:14)
          at com.atlassian.confluence.content.render.xhtml.transformers.DefaultFragmentTransformer.transformFragment(DefaultFragmentTransformer.java:157)
          at com.atlassian.confluence.content.render.xhtml.transformers.DefaultFragmentTransformer.transform(DefaultFragmentTransformer.java:123)
          at com.atlassian.confluence.content.render.xhtml.editor.EditorXhtmlTransformer.transform(EditorXhtmlTransformer.java:45)
          ... 383 more
      Caused by: com.atlassian.confluence.content.render.xhtml.model.resource.identifiers.CannotResolveResourceIdentifierException: Unable to resolve the resource identifier IdAndTypeResourceIdentifier[id=65642,type=attachment]
          at com.atlassian.confluence.content.render.xhtml.model.resource.identifiers.IdAndTypeResourceIdentifierResolver.resolve(IdAndTypeResourceIdentifierResolver.java:52)
          at com.atlassian.confluence.content.render.xhtml.model.resource.identifiers.IdAndTypeResourceIdentifierResolver.resolve(IdAndTypeResourceIdentifierResolver.java:21)
          at com.atlassian.confluence.content.render.xhtml.editor.resource.identifiers.IdAndTypeAnalyzingResourceIdentifierUnmarshaller.unmarshal(IdAndTypeAnalyzingResourceIdentifierUnmarshaller.java:60)
          at com.atlassian.confluence.content.render.xhtml.editor.resource.identifiers.IdAndTypeAnalyzingResourceIdentifierUnmarshaller.unmarshal(IdAndTypeAnalyzingResourceIdentifierUnmarshaller.java:26)
          at com.atlassian.confluence.content.render.xhtml.editor.embed.EditorEmbeddedImageResourceUnmarshaller.unmarshal(EditorEmbeddedImageResourceUnmarshaller.java:106)
          at com.atlassian.confluence.content.render.xhtml.editor.embed.EditorEmbeddedImageResourceUnmarshaller.unmarshal(EditorEmbeddedImageResourceUnmarshaller.java:41)
          at com.atlassian.confluence.content.render.xhtml.UnmarshalMarshalFragmentTransformer.transform(UnmarshalMarshalFragmentTransformer.java:28)
          at com.atlassian.confluence.content.render.xhtml.transformers.DefaultFragmentTransformer.transformFragment(DefaultFragmentTransformer.java:141)
          ... 385 more
      2019-04-04 16:26:24,890 WARN [http-nio-26130-exec-5] [confluence.impl.hibernate.ConfluenceHibernateTransactionManager] doRollback Performing rollback. Transactions:
        ->[PluginReadWriteTx]: PROPAGATION_REQUIRED,ISOLATION_DEFAULT (Session #1043675096)
       -- referer: http://localhost:26130/c6130/display/TEST/questions/65638/edit | url: /c6130/rest/questions/1.0/questions/questionDraft/65641 | traceId: a67ddc0d6b29d6ce | userName: admin
      2019-04-04 16:26:24,891 ERROR [http-nio-26130-exec-5] [rest.api.model.ExceptionConverter] convertServiceException No status code found for exception, converting to internal server error :
       -- referer: http://localhost:26130/c6130/display/TEST/questions/65638/edit | url: /c6130/rest/questions/1.0/questions/questionDraft/65641 | traceId: a67ddc0d6b29d6ce | userName: admin
      com.atlassian.confluence.plugins.questions.api.exception.QuestionException: com.atlassian.confluence.content.render.xhtml.XhtmlException: RuntimeException occurred while transforming editor format to storage format (com.atlassian.confluence.content.render.xhtml.model.resource.identifiers.CannotResolveResourceIdentifierException: Unable to resolve the resource identifier IdAndTypeResourceIdentifier[id=65642,type=attachment])
          at com.atlassian.confluence.plugins.questions.model.ConfluenceEditorFormattedBody.convertTo(ConfluenceEditorFormattedBody.java:33)
          at com.atlassian.confluence.plugins.questions.service.mapper.QuestionMapper.toQuestion(QuestionMapper.java:159)
          at com.atlassian.confluence.plugins.questions.service.QuestionServiceImpl.updateQuestion(QuestionServiceImpl.java:308)
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
          at java.lang.reflect.Method.invoke(Method.java:498)
          a
          at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
          at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
          at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
          at java.lang.Thread.run(Thread.java:748)
      Caused by: com.atlassian.confluence.content.render.xhtml.XhtmlException: RuntimeException occurred while transforming editor format to storage format (com.atlassian.confluence.content.render.xhtml.model.resource.identifiers.CannotResolveResourceIdentifierException: Unable to resolve the resource identifier IdAndTypeResourceIdentifier[id=65642,type=attachment])
          at com.atlassian.confluence.content.render.xhtml.editor.EditorXhtmlTransformer.transform(EditorXhtmlTransformer.java:58)
          at com.atlassian.confluence.content.render.xhtml.TransformerChain.transform(TransformerChain.java:33)
          at com.atlassian.confluence.content.render.xhtml.TransformerChain.transform(TransformerChain.java:33)
          at com.atlassian.confluence.content.render.xhtml.PluggableTransformerChain.transform(PluggableTransformerChain.java:39)
          at com.atlassian.confluence.content.render.xhtml.editor.DefaultEditorConverter.convert(DefaultEditorConverter.java:37)
          at com.atlassian.confluence.content.render.xhtml.DefaultFormatConverter.convertToStorageFormat(DefaultFormatConverter.java:124)
          at sun.reflect.GeneratedMethodAccessor2149.invoke(Unknown Source)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
       
          at com.atlassian.confluence.plugins.questions.model.ConfluenceEditorFormattedBody.convertTo(ConfluenceEditorFormattedBody.java:31)
          ... 352 more
      Caused by: java.lang.RuntimeException: com.atlassian.confluence.content.render.xhtml.model.resource.identifiers.CannotResolveResourceIdentifierException: Unable to resolve the resource identifier IdAndTypeResourceIdentifier[id=65642,type=attachment]
          at com.atlassian.confluence.content.render.xhtml.transformers.ThrowExceptionOnFragmentTransformationError.handle(ThrowExceptionOnFragmentTransformationError.java:14)
          at com.atlassian.confluence.content.render.xhtml.transformers.DefaultFragmentTransformer.transformFragment(DefaultFragmentTransformer.java:157)
          at com.atlassian.confluence.content.render.xhtml.transformers.DefaultFragmentTransformer.transform(DefaultFragmentTransformer.java:123)
          at com.atlassian.confluence.content.render.xhtml.editor.EditorXhtmlTransformer.transform(EditorXhtmlTransformer.java:45)
          ... 383 more
      Caused by: com.atlassian.confluence.content.render.xhtml.model.resource.identifiers.CannotResolveResourceIdentifierException: Unable to resolve the resource identifier IdAndTypeResourceIdentifier[id=65642,type=attachment]
         
          at com.atlassian.confluence.content.render.xhtml.transformers.DefaultFragmentTransformer.transformFragment(DefaultFragmentTransformer.java:141)
          ... 385 more

      Workaround

      Currently there is no known workaround for this behavior. A workaround will be added here when available

            Assignee:
            Unassigned
            Reporter:
            Omar Raissi (Inactive)
            Votes:
            5 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: