• Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Medium Medium
    • None
    • 3.5.11
    • None

      Problem page
      If the user attempts to make an edit and hits save, they are taken back to the editor and their edits have been erased.

      On this particular page, you can't even go to wikimarkup or preview tabs. You get a 403 ajax response for the actions:

      {"actionErrors":["Your request could not be processed because a required security token was not present in the request. You may need to re-submit the form or reload the page."]}
      

      Confluence logs show:

      2011-09-01 00:27:44,812 WARN [TP-Processor8354] [ContainerBase.[Catalina].[localhost].[/]] parseParameters Exception thrown whilst processing POSTed parameters
      java.lang.IndexOutOfBoundsException
          at java.io.BufferedInputStream.read(BufferedInputStream.java:310)
          at org.apache.jk.common.ChannelSocket.read(ChannelSocket.java:626)
          at org.apache.jk.common.ChannelSocket.receive(ChannelSocket.java:583)
          at org.apache.jk.common.JkInputStream.receive(JkInputStream.java:200)
          at org.apache.jk.common.JkInputStream.doRead(JkInputStream.java:179)
          at org.apache.coyote.Request.doRead(Request.java:419)
          at org.apache.catalina.connector.InputBuffer.realReadBytes(InputBuffer.java:264)
          at org.apache.tomcat.util.buf.ByteChunk.substract(ByteChunk.java:403)
          at org.apache.catalina.connector.InputBuffer.read(InputBuffer.java:279)
          at org.apache.catalina.connector.CoyoteInputStream.read(CoyoteInputStream.java:193)
          at org.apache.catalina.connector.Request.readPostBody(Request.java:2420)
          at org.apache.catalina.connector.Request.parseParameters(Request.java:2399)
          at org.apache.catalina.connector.Request.getParameterNames(Request.java:1047)
          at org.apache.catalina.connector.Request.getParameterMap(Request.java:1027)
          at org.apache.catalina.connector.RequestFacade.getParameterMap(RequestFacade.java:412)
          at com.atlassian.confluence.web.filter.validateparam.RequestParamValidationFilter.doFilter(RequestParamValidationFilter.java:56)
          at com.atlassian.core.filters.AbstractHttpFilter.doFilter(AbstractHttpFilter.java:31)
          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
          at com.atlassian.confluence.plugin.servlet.filter.ActionContextCleanUp.doFilter(ActionContextCleanUp.java:71)
          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
          at com.atlassian.confluence.web.filter.LanguageExtractionFilter.doFilter(LanguageExtractionFilter.java:52)
          at com.atlassian.core.filters.AbstractHttpFilter.doFilter(AbstractHttpFilter.java:31)
          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
          at com.atlassian.confluence.util.RequestCacheThreadLocalFilter.doFilter(RequestCacheThreadLocalFilter.java:25)
          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
          at com.atlassian.core.filters.encoding.AbstractEncodingFilter.doFilter(AbstractEncodingFilter.java:41)
          at com.atlassian.core.filters.AbstractHttpFilter.doFilter(AbstractHttpFilter.java:31)
          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
          at com.atlassian.core.filters.HeaderSanitisingFilter.doFilter(HeaderSanitisingFilter.java:44)
          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
          at com.atlassian.confluence.servlet.FourOhFourErrorLoggingFilter.doFilter(FourOhFourErrorLoggingFilter.java:65)
          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
          at com.atlassian.confluence.web.filter.DropIfNotSetupFilter.doFilter(DropIfNotSetupFilter.java:37)
          at com.atlassian.core.filters.AbstractHttpFilter.doFilter(AbstractHttpFilter.java:31)
          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
          at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
          at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)
          at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
          at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
          at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
          at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)
          at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:200)
          at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:283)
          at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:773)
          at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:703)
          at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:895)
          at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
          at java.lang.Thread.run(Thread.java:662)
      

            [CONFSERVER-23148] Unable to save on certain pages in CAC

            Agnes Ro added a comment -

            Hi Dana,

            Can you please raise a support ticket at https://support.atlassian.com/ ?

            Cheers,
            Agnes

            Agnes Ro added a comment - Hi Dana, Can you please raise a support ticket at https://support.atlassian.com/ ? Cheers, Agnes

            I have had this occur for my users on Confluence 5.4.3 running Apache/Tomcat 6.0.35

            Dana Jansen added a comment - I have had this occur for my users on Confluence 5.4.3 running Apache/Tomcat 6.0.35

            Agnes Ro added a comment - - edited

            We encountered this problem with our public system confluence.atlassian.com but we discovered it to be a bug in the Apache/Tomcat configuration.

            This issue crops up when using Apache 2.2 (and possibly 2.0 with mod_jk), and is due to the Apache config variable ProxyIOBufferSize (for 2.2, not sure what it's called in mod_jk) having an undefined size.
            By adding "ProxyIOBufferSize 8192" to the vhost connected to the Confluence instance this problem goes away.
            This has to do with how transfers between the Apache and Tomcat instance gets chunked up and buffer use, and fixes similar problems in other projects I work on, too, such as OpenNMS with an Apache front.
            Untill Apache 2.2.14-ish "ProxyIOBufferSize 16384" would also work for more efficient transfers, but recent doc changes at apache.org vaguely states it has to be set to 8192 or less. The default is stated as being 8192, but does not work, explicityly defining it fixes the problem.

            You may want to update your apache configuration to include the ProxyIOBufferSize setting to see if this fixes your problem.

            Agnes Ro added a comment - - edited We encountered this problem with our public system confluence.atlassian.com but we discovered it to be a bug in the Apache/Tomcat configuration. This issue crops up when using Apache 2.2 (and possibly 2.0 with mod_jk), and is due to the Apache config variable ProxyIOBufferSize (for 2.2, not sure what it's called in mod_jk) having an undefined size. By adding "ProxyIOBufferSize 8192" to the vhost connected to the Confluence instance this problem goes away. This has to do with how transfers between the Apache and Tomcat instance gets chunked up and buffer use, and fixes similar problems in other projects I work on, too, such as OpenNMS with an Apache front. Untill Apache 2.2.14-ish "ProxyIOBufferSize 16384" would also work for more efficient transfers, but recent doc changes at apache.org vaguely states it has to be set to 8192 or less. The default is stated as being 8192, but does not work, explicityly defining it fixes the problem. You may want to update your apache configuration to include the ProxyIOBufferSize setting to see if this fixes your problem.

            Anton Torov added a comment - - edited

            Guys, we have the same issue.
            Client's browser: Google Chrome: v27.0.1453.116 m (latest to today)
            Confluence v5.1.3.

            • Drafts are unable to save automatically
            • Edited pages are unable to save automatically

            (-)The following error(s) occurred:
            Your request could not be processed because a required security token was not present in the request. You may need to re-submit the form or reload the page.

            Error saving draft. No draft has been saved.

            How to solve this?

            Anton Torov added a comment - - edited Guys, we have the same issue. Client's browser: Google Chrome: v27.0.1453.116 m (latest to today) Confluence v5.1.3. Drafts are unable to save automatically Edited pages are unable to save automatically (-)The following error(s) occurred: Your request could not be processed because a required security token was not present in the request. You may need to re-submit the form or reload the page. Error saving draft. No draft has been saved. How to solve this?

            Agnes Ro added a comment -

            Preview seems to be working fine for the problem page. Since this is an intermittent problem, I don't think we can verify if its been fixed completely. Please reopen if the problem still persists.

            Agnes Ro added a comment - Preview seems to be working fine for the problem page. Since this is an intermittent problem, I don't think we can verify if its been fixed completely. Please reopen if the problem still persists.

            Agnes Ro added a comment -

            The admin ticket has been fixed. Is this still an issue?

            Agnes Ro added a comment - The admin ticket has been fixed. Is this still an issue?

            Agnes Ro added a comment -

            Close once https://extranet.atlassian.com/jira/browse/ADM-15980 is done and fix is verified.

            Agnes Ro added a comment - Close once https://extranet.atlassian.com/jira/browse/ADM-15980 is done and fix is verified.

            Agnes Ro added a comment -

            Looks like we ran into this already: CONF-23125

            Agnes Ro added a comment - Looks like we ran into this already: CONF-23125

            JoeyA added a comment -

            Hi Agnes, the issue was reproduced on this page also: Confluence Planning

            JoeyA added a comment - Hi Agnes, the issue was reproduced on this page also: Confluence Planning

            Agnes Ro added a comment - - edited

            I think it's to do with particular content (the xhtml we post back to the server) on the offending pages... This may no longer be a problem in 4.0 as we make different requests now.

            Agnes Ro added a comment - - edited I think it's to do with particular content (the xhtml we post back to the server) on the offending pages... This may no longer be a problem in 4.0 as we make different requests now.

              agnes@atlassian.com Agnes Ro
              jcorea JoeyA
              Affected customers:
              0 This affects my team
              Watchers:
              7 Start watching this issue

                Created:
                Updated:
                Resolved: