Uploaded image for project: '{RETIRED} XWiki Watch List Application'
  1. {RETIRED} XWiki Watch List Application
  2. XPWATCHLIST-100

When importing WatchListManager page an error is printed

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 1.26
    • 1.25
    • Application
    • None

    Description

      com.xpn.xwiki.XWikiException: Error number 3301 in 3: Exception while switching to database ^\\.,
      Wrapped Exception: Unknown database '^\\.,'
      	at com.xpn.xwiki.store.XWikiHibernateBaseStore.setDatabase(XWikiHibernateBaseStore.java:645)
      	at com.xpn.xwiki.store.XWikiHibernateBaseStore.beginTransaction(XWikiHibernateBaseStore.java:744)
      	at com.xpn.xwiki.store.XWikiHibernateStore.loadXWikiDoc(XWikiHibernateStore.java:670)
      	at com.xpn.xwiki.store.XWikiCacheStore.loadXWikiDoc(XWikiCacheStore.java:289)
      	at com.xpn.xwiki.XWiki.getDocument(XWiki.java:1390)
      	at com.xpn.xwiki.XWiki.getDocument(XWiki.java:1433)
      	at com.xpn.xwiki.XWiki.getXWikiPreference(XWiki.java:2154)
      	at com.xpn.xwiki.XWiki.getXWikiPreference(XWiki.java:2186)
      	at com.xpn.xwiki.XWiki.showViewAction(XWiki.java:6139)
      	at com.xpn.xwiki.web.XWikiServletURLFactory.addAction(XWikiServletURLFactory.java:220)
      	at com.xpn.xwiki.web.XWikiServletURLFactory.createURL(XWikiServletURLFactory.java:185)
      	at com.xpn.xwiki.web.XWikiDefaultURLFactory.createURL(XWikiDefaultURLFactory.java:42)
      	at com.xpn.xwiki.render.XWikiRadeoxRenderEngine.appendLink(XWikiRadeoxRenderEngine.java:205)
      	at com.xpn.xwiki.render.filter.XWikiLinkFilter.handleMatch(XWikiLinkFilter.java:203)
      	at org.radeox.filter.regex.RegexTokenFilter$1.handleMatch(RegexTokenFilter.java:91)
      	at org.radeox.regex.JdkMatcher.substitute(JdkMatcher.java:48)
      	at org.radeox.filter.regex.RegexTokenFilter.filter(RegexTokenFilter.java:89)
      	at org.radeox.filter.FilterPipe.filter(FilterPipe.java:169)
      	at com.xpn.xwiki.render.XWikiRadeoxRenderEngine.render(XWikiRadeoxRenderEngine.java:96)
      	at com.xpn.xwiki.render.XWikiRadeoxRenderer.render(XWikiRadeoxRenderer.java:130)
      	at com.xpn.xwiki.store.XWikiHibernateStore.saveLinks10(XWikiHibernateStore.java:1948)
      	at com.xpn.xwiki.store.XWikiHibernateStore.saveLinks(XWikiHibernateStore.java:1910)
      	at com.xpn.xwiki.store.XWikiHibernateStore.saveXWikiDoc(XWikiHibernateStore.java:620)
      	at com.xpn.xwiki.store.XWikiCacheStore.saveXWikiDoc(XWikiCacheStore.java:182)
      	at com.xpn.xwiki.store.XWikiCacheStore.saveXWikiDoc(XWikiCacheStore.java:175)
      	at com.xpn.xwiki.XWiki.saveDocument(XWiki.java:1340)
      	at com.xpn.xwiki.XWiki.saveDocument(XWiki.java:1302)
      	at com.xpn.xwiki.plugin.packaging.Package.installDocument(Package.java:648)
      	at com.xpn.xwiki.plugin.packaging.Package.install(Package.java:536)
      	at com.xpn.xwiki.plugin.packaging.PackageAPI.install(PackageAPI.java:281)
      	at com.xpn.xwiki.web.ImportAction.render(ImportAction.java:133)
      	at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:214)
      	at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:115)
      	at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
      	at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
      	at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
      	at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
      	at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
      	at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
      	at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511)
      	at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1166)
      	at com.xpn.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:152)
      	at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
      	at com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:118)
      	at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
      	at com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:68)
      	at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
      	at com.xpn.xwiki.web.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:295)
      	at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
      	at com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:112)
      	at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
      	at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:388)
      	at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
      	at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
      	at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)
      	at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:418)
      	at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230)
      	at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
      	at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
      	at org.mortbay.jetty.Server.handle(Server.java:326)
      	at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:536)
      	at org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:930)
      	at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:747)
      	at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:218)
      	at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:405)
      	at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409)
      	at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582)
      

      The real issue is that xwiki/1.0 parser take things like

      replaceAll("[^\\.,:]+:", "")
      

      as the link

      "^\\.,:"
      

      and fail try to get this document before saving it as a backlink.

      Attachments

        Activity

          People

            tmortagne Thomas Mortagne
            tmortagne Thomas Mortagne
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: