Uploaded image for project: 'Confluence Data Center'
  1. Confluence Data Center
  2. CONFSERVER-90314

Task List behaves differently with Collaborative Editing enabled

    XMLWordPrintable

Details

    Description

      Issue Summary

      Creating a Task list without label results in 500 internal server error in the Logs

      This is reproducible on Data Center: Yes

      Steps to Reproduce

      1. Install Confluence 8.2.2
      2. Turn ON Collaborative editting
      3. Create a New Page
      4. Publish the page
      5. Add a Task box and Label it
      6. Check the Box
      7. Now create another Task box and don't enter the label
      8. Click on Save

      Expected Results

      The Page should be saved without any error

      Actual Results

      "Unable to communicate with server. Saving is not possible at the moment." observed while saving the page

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

      2023-07-18 05:53:17,901 WARN [http-nio-8090-exec-2 url: /rest/api/content/1671169; user: admin] [confluence.impl.hibernate.ConfluenceHibernateTransactionManager] doRollback Performing
       rollback. Transactions:\n  ->[com.atlassian.confluence.api.impl.service.content.draft.ContentDraftServiceImpl.publishEditDraft]: PROPAGATION_REQUIRED,ISOLATION_DEFAULT (Session #2059
      710776)\n        [null]: PROPAGATION_REQUIRES_NEW,ISOLATION_DEFAULT,readOnly (Session #1858139542)
       -- url: /rest/api/content/1671169 | userName: admin | referer: https://instenv-129861-tcve.instenv.internal.atlassian.com/pages/resumedraft.action?draftId=1671170&draftShareId=21b61c
      f9-08e2-4c53-9fa9-b7594c4462b4& | traceId: d7380a57399bba4a
      2023-07-18 05:53:17,904 ERROR [http-nio-8090-exec-2 url: /rest/api/content/1671169; user: admin] [rest.api.model.ExceptionConverter] convertServiceException No status code found for e
      xception, converting to internal server error :
       -- url: /rest/api/content/1671169 | userName: admin | referer: https://instenv-129861-tcve.instenv.internal.atlassian.com/pages/resumedraft.action?draftId=1671170&draftShareId=21b61c
      f9-08e2-4c53-9fa9-b7594c4462b4& | traceId: d7380a57399bba4a
      org.springframework.transaction.UnexpectedRollbackException: Transaction rolled back because it has been marked as rollback-only
      
      Caused by: java.lang.RuntimeException: com.ctc.wstx.exc.WstxParsingException: Unexpected close tag </xml>; expected </ac:task>.
       at [row,col {unknown-source}]: [12,15]
      	at org.codehaus.stax2.ri.evt.Stax2FilteredEventReader.hasNext(Stax2FilteredEventReader.java:60)
      	at com.atlassian.confluence.content.render.xhtml.XmlFragmentEventReader.hasNext(XmlFragmentEventReader.java:42)
      	at com.atlassian.confluence.content.render.xhtml.XmlFragmentBodyEventReader.hasNext(XmlFragmentBodyEventReader.java:36)
      	at com.atlassian.confluence.content.render.xhtml.links.XhtmlOutgoingLinksExtractor.extract(XhtmlOutgoingLinksExtractor.java:105)
      	at com.atlassian.confluence.links.DefaultLinkManager.updateOutgoingLinks(DefaultLinkManager.java:108)
      	at jdk.internal.reflect.GeneratedMethodAccessor1391.invoke(Unknown Source)
      	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
      	at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:344)
      	at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:198)
      	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)
      	at org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:123)
      	at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:388)
      	at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:119)
      	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)
      	at com.atlassian.spring.interceptors.SpringProfilingInterceptor.invoke(SpringProfilingInterceptor.java:16)
      	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)
      	at com.atlassian.confluence.util.profiling.ConfluenceMonitoringMethodInterceptor.invoke(ConfluenceMonitoringMethodInterceptor.java:36)
      	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)
      	at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:215)
      	at com.sun.proxy.$Proxy477.updateOutgoingLinks(Unknown Source)
      	at com.atlassian.confluence.impl.content.DefaultContentEntityManager.lambda$updateOutgoingLinks$2(DefaultContentEntityManager.java:296)
      	at com.atlassian.confluence.impl.content.links.LinkManagerEventListener.onLinkManagerEvent(LinkManagerEventListener.java:36)
      	at jdk.internal.reflect.GeneratedMethodAccessor1390.invoke(Unknown Source)
      	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
      	at com.atlassian.event.internal.SingleParameterMethodListenerInvoker.invoke(SingleParameterMethodListenerInvoker.java:42)
      	... 435 more
      Caused by: com.ctc.wstx.exc.WstxParsingException: Unexpected close tag </xml>; expected </ac:task>.
       at [row,col {unknown-source}]: [12,15]
      	at com.ctc.wstx.sr.StreamScanner.constructWfcException(StreamScanner.java:634)
      	at com.ctc.wstx.sr.StreamScanner.throwParseError(StreamScanner.java:504)
      	at com.ctc.wstx.sr.StreamScanner.throwParseError(StreamScanner.java:488)
      	at com.ctc.wstx.sr.BasicStreamReader.reportWrongEndPrefix(BasicStreamReader.java:3356)
      	at com.ctc.wstx.sr.BasicStreamReader.readEndElem(BasicStreamReader.java:3273)
      	at com.ctc.wstx.sr.BasicStreamReader.nextFromTree(BasicStreamReader.java:2920)
      	at com.ctc.wstx.sr.BasicStreamReader.next(BasicStreamReader.java:1122)
      	at com.ctc.wstx.evt.WstxEventReader.peek(WstxEventReader.java:392)
      	at org.codehaus.stax2.ri.evt.Stax2FilteredEventReader.peek(Stax2FilteredEventReader.java:107)
      	at org.codehaus.stax2.ri.evt.Stax2FilteredEventReader.hasNext(Stax2FilteredEventReader.java:58)
      

      Workaround

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

      Attachments

        1. image-2023-07-18-15-44-41-595.png
          182 kB
          Shivangi Nayak
        2. image-2023-07-18-15-47-00-925.png
          149 kB
          Shivangi Nayak
        3. image-2023-07-18-15-47-15-994.png
          149 kB
          Shivangi Nayak

        Activity

          People

            Unassigned Unassigned
            d51fc966722f Shivangi Nayak
            Votes:
            2 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: