Uploaded image for project: 'Jahia Community'
  1. Jahia Community
  2. JAHIA-2423

Initial import screen allows for too many characters -> exception in console

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Do
    • Minor
    • xCM 6.1.0
    • WCM 5.0 SP3
    • None
    • Windows XP SP 2, PostgreSQL 8.1, JDK 1.6.0, IE 7

    Description

      When doing the initial import, a screen is displayed with the possibility to change the site name, the site key and the server name. I deliberately inserted the following values :

      site name : ma démo
      site server name : www.madémo.com
      site key : ma démo

      2007-09-28 09:01:17,765: ERROR [org.jahia.services.importexport.ImportHandler] - Error when importing :
      java.lang.IllegalArgumentException: Invalid uri 'http://localhost:8080/jahia/Jahia/site/ma démo/lang/fr/pid/1': escaped absolute path not v
      alid
      at org.apache.commons.httpclient.HttpMethodBase.<init>(HttpMethodBase.java:275)
      at org.apache.commons.httpclient.methods.GetMethod.<init>(GetMethod.java:151)
      at org.jahia.utils.JahiaTools.makeJahiaRequest(JahiaTools.java:1301)
      at org.jahia.services.pages.JahiaPageBaseService.loadPage(JahiaPageBaseService.java:2250)
      at org.jahia.services.pages.JahiaPageBaseService.createPage(JahiaPageBaseService.java:344)
      at org.jahia.services.pages.JahiaPageBaseService$$FastClassByCGLIB$$e7c6d2f7.invoke(<generated>)
      at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
      at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:661)
      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:122)
      at org.springframework.aop.interceptor.AbstractTraceInterceptor.invoke(AbstractTraceInterceptor.java:80)
      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:144)
      at org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.intercept(Cglib2AopProxy.java:606)
      at org.jahia.services.pages.JahiaPageBaseService$$EnhancerByCGLIB$$1d1a8f86.createPage(<generated>)
      at org.jahia.services.importexport.ImportHandler.createPage(ImportHandler.java:901)
      at org.jahia.services.importexport.ImportHandler.startElement(ImportHandler.java:401)
      at org.apache.xerces.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:485)
      at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(XMLNSDocumentScannerImpl.java:320)
      at org.apache.xerces.impl.XMLNSDocumentScannerImpl$NSContentDispatcher.scanRootElementHook(XMLNSDocumentScannerImpl.java:615)
      at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1635
      )
      at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:338)
      at org.apache.xerces.parsers.XML11Configuration.parse(XML11Configuration.java:828)
      at org.apache.xerces.parsers.XML11Configuration.parse(XML11Configuration.java:758)
      at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:148)
      at org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1178)
      at javax.xml.parsers.SAXParser.parse(Unknown Source)
      at org.jahia.services.importexport.ImportExportBaseService.importDocument(ImportExportBaseService.java:1694)
      at org.jahia.services.importexport.ImportExportBaseService.importDocument(ImportExportBaseService.java:1671)
      at org.jahia.services.importexport.ImportExportBaseService.importFile(ImportExportBaseService.java:1590)
      at org.jahia.services.importexport.ImportExportBaseService.importFile(ImportExportBaseService.java:1408)
      at org.jahia.services.importexport.ImportExportBaseService$$FastClassByCGLIB$$de1c40f7.invoke(<generated>)
      at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
      at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:661)
      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:122)
      at org.springframework.aop.interceptor.AbstractTraceInterceptor.invoke(AbstractTraceInterceptor.java:80)
      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:144)
      at org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.intercept(Cglib2AopProxy.java:606)
      at org.jahia.services.importexport.ImportExportBaseService$$EnhancerByCGLIB$$74707986.importFile(<generated>)
      at org.jahia.services.importexport.ImportJob.executeJahiaJob(ImportJob.java:68)
      at org.jahia.services.scheduler.BackgroundJob.execute(BackgroundJob.java:127)
      at org.quartz.core.JobRunShell.run(JobRunShell.java:195)
      at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:520)

      I recommend we check for valid input before processing with the import.

      TestRail: Results

        Attachments

          Activity

            People

              shyrkov Sergiy Shyrkov (Inactive)
              shuber_old Serge Huber (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                TestRail: Runs

                  TestRail: Cases

                    Packages

                      Version Package
                      xCM 6.1.0