Uploaded image for project: 'Poll Application'
  1. Poll Application
  2. XPOLLAPP-31

Editing a poll's type generates an error if cache is not cleared

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Minor
    • None
    • None
    • None
    • Unknown

    Description

        1. Workaround

      Refreshing with Ctrl + F5 solves the issue.

        1. Steps to reproduce

      1. 'Active' to 'In preparation'

      • Create a new poll
      • Set it to 'Active' and 'save and view' the page
      • Edit the page again
        • Now there should be no 'Type' field for the poll, as it is Active
      • Set the status to 'In preparation'
      • Refresh the page
      • Try to save the page
        1. Expected Result

      Document is saved

        1. Actual Result

      'Active' to 'In preparation':

      Failed to save the page. An error occured while saving: 1734346595015.

      It seems to stem from the Version number, and the cache somehow, when the page is opened using one view and refreshed to another.

      The console log:

       

      2024-12-16 13:04:38,830 [qtp1629604310-1606 - http://localhost:8080/xwiki/bin/preview/XPoll/XPoll%20for%20the%20Meeting%20Lunch%20Options] ERROR c.x.x.w.SaveAndContinueAction  - Caught exception during save and continue 
      org.suigeneris.jrcs.rcs.InvalidVersionNumberException: 1734347073144
          at org.suigeneris.jrcs.rcs.Version.<init>(Version.java:120)
          at com.xpn.xwiki.web.SaveAction.isConflictingWithVersion(SaveAction.java:416)
          at com.xpn.xwiki.web.SaveAction.save(SaveAction.java:288)
          at com.xpn.xwiki.web.SaveAndContinueAction.doWrappedAction(SaveAndContinueAction.java:126)
          at com.xpn.xwiki.web.SaveAndContinueAction.action(SaveAndContinueAction.java:199)
          at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:597)
          at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:300)
          at com.xpn.xwiki.web.LegacyActionServlet.service(LegacyActionServlet.java:114)
          at javax.servlet.http.HttpServlet.service(HttpServlet.java:590)
          at org.eclipse.jetty.servlet.ServletHolder$NotAsync.service(ServletHolder.java:1419)
          at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:764)
          at org.eclipse.jetty.servlet.ServletHandler$ChainEnd.doFilter(ServletHandler.java:1624)
          at com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:122)
          at org.eclipse.jetty.servlet.FilterHolder.doFilter(FilterHolder.java:202)
          at org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1594)
          at org.xwiki.wysiwyg.filter.ConversionFilter.doFilter(ConversionFilter.java:61)
          at org.eclipse.jetty.servlet.FilterHolder.doFilter(FilterHolder.java:202)
          at org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1594)
          at org.xwiki.container.servlet.filters.internal.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:208)
          at org.eclipse.jetty.servlet.FilterHolder.doFilter(FilterHolder.java:202)
          at org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1594)
          at org.xwiki.container.servlet.filters.internal.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:111)
          at org.eclipse.jetty.servlet.FilterHolder.doFilter(FilterHolder.java:202)
          at org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1594)
          at org.xwiki.resource.servlet.RoutingFilter.doFilter(RoutingFilter.java:132)
          at org.eclipse.jetty.servlet.FilterHolder.doFilter(FilterHolder.java:202)
          at org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1594)
          at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:506)
          at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:131)
          at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:596)
          at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:122)
          at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:223)
          at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1571)
          at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:221)
          at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1378)
          at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:176)
          at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:463)
          at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1544)
          at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:174)
          at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1300)
          at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:129)
          at org.eclipse.jetty.server.Dispatcher.forward(Dispatcher.java:215)
          at org.eclipse.jetty.server.Dispatcher.forward(Dispatcher.java:135)
          at com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:112)
          at org.eclipse.jetty.servlet.FilterHolder.doFilter(FilterHolder.java:202)
          at org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1594)
          at org.xwiki.wysiwyg.filter.ConversionFilter.doFilter(ConversionFilter.java:61)
          at org.eclipse.jetty.servlet.FilterHolder.doFilter(FilterHolder.java:202)
          at org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1594)
          at org.xwiki.container.servlet.filters.internal.SetHTTPHeaderFilter.doFilter(SetHTTPHeaderFilter.java:63)
          at org.eclipse.jetty.servlet.FilterHolder.doFilter(FilterHolder.java:202)
          at org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1594)
          at org.xwiki.container.servlet.filters.internal.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:208)
          at org.eclipse.jetty.servlet.FilterHolder.doFilter(FilterHolder.java:202)
          at org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1594)
          at org.xwiki.container.servlet.filters.internal.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:111)
          at org.eclipse.jetty.servlet.FilterHolder.doFilter(FilterHolder.java:202)
          at org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1594)
          at org.xwiki.resource.servlet.RoutingFilter.doFilter(RoutingFilter.java:132)
          at org.eclipse.jetty.servlet.FilterHolder.doFilter(FilterHolder.java:210)
          at org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1594)
          at org.eclipse.jetty.websocket.servlet.WebSocketUpgradeFilter.doFilter(WebSocketUpgradeFilter.java:164)
          at org.eclipse.jetty.servlet.FilterHolder.doFilter(FilterHolder.java:202)
          at org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1594)
          at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:506)
          at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:131)
          at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:578)
          at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:122)
          at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:223)
          at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1571)
          at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:221)
          at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1378)
          at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:176)
          at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:463)
          at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1544)
          at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:174)
          at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1300)
          at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:129)
          at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:192)
          at org.eclipse.jetty.server.handler.HandlerList.handle(HandlerList.java:51)
          at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:122)
          at org.eclipse.jetty.server.Server.handle(Server.java:562)
          at org.eclipse.jetty.server.HttpChannel.lambda$handle$0(HttpChannel.java:418)
          at org.eclipse.jetty.server.HttpChannel.dispatch(HttpChannel.java:675)
          at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:410)
          at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:282)
          at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:319)
          at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:100)
          at org.eclipse.jetty.io.SocketChannelEndPoint$1.run(SocketChannelEndPoint.java:101)
          at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:894)
          at org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run(QueuedThreadPool.java:1038)
          at java.base/java.lang.Thread.run(Thread.java:829)
      

       

      Attachments

        Activity

          People

            Unassigned Unassigned
            abrassat Brassat Alexandru
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: