Uploaded image for project: 'Hippo Configuration Management'
  1. Hippo Configuration Management
  2. HCM-184

V12 Beta - Path capitalisation error when adding image size variants

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Top
    • Resolution: Fixed
    • Affects Version/s: 1.0.1
    • Fix Version/s: 1.0.1
    • Labels:
      None
    • Environment:
      Mac OS X10.12.6,
      JDK1.8
    • Similar issues:
    • Epic Link:
    • Processed by team:
      Platform
    • Sprint:
      Platform162: Pre-GA2

      Description

       

      Hi guys, I'm relatively new to Hippo so I hope this is the right place to log this bug.

      Anyway, the problem is that when I follow this tutorial on Hippo v12 Beta and get to the restart after defining the image size variants I get a javax.jcr.RepositoryException on startup whereas this worked fine on v11.

      [INFO] [talledLocalContainer] 28.07.2017 15:48:53 ERROR localhost-startStop-1 [ConfigurationServiceImpl.start:108] Failed to start the ConfigurationService
      [INFO] [talledLocalContainer] javax.jcr.RepositoryException: org.onehippo.cm.model.parser.ParserException: [MyServer/MyServer/MyServer-repository-data-config: namespaces/MyServer/imageset.yaml] Cannot find resource '/namespaces/myserver/imageset/prototypes/prototype/original/original.gif' in 'reader', line 72, column 25:
      [INFO] [talledLocalContainer] resource: /namespaces/wcmdigitalpublicatio ... 
      [INFO] [talledLocalContainer] ^
      [INFO] [talledLocalContainer] at org.onehippo.cm.engine.ConfigurationServiceImpl.loadBootstrapModel(ConfigurationServiceImpl.java:438) ~[hippo-repository-engine-5.0.0.jar:5.0.0]
      [INFO] [talledLocalContainer] at org.onehippo.cm.engine.ConfigurationServiceImpl.init(ConfigurationServiceImpl.java:141) ~[hippo-repository-engine-5.0.0.jar:5.0.0]
      [INFO] [talledLocalContainer] at org.onehippo.cm.engine.ConfigurationServiceImpl.start(ConfigurationServiceImpl.java:105) [hippo-repository-engine-5.0.0.jar:5.0.0]
      [INFO] [talledLocalContainer] at org.hippoecm.repository.LocalHippoRepository.initialize(LocalHippoRepository.java:291) [hippo-repository-engine-5.0.0.jar:5.0.0]
      [INFO] [talledLocalContainer] at org.hippoecm.repository.LocalHippoRepository.create(LocalHippoRepository.java:128) [hippo-repository-engine-5.0.0.jar:5.0.0]
      [INFO] [talledLocalContainer] at org.hippoecm.repository.LocalHippoRepository.create(LocalHippoRepository.java:118) [hippo-repository-engine-5.0.0.jar:5.0.0]
      [INFO] [talledLocalContainer] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_131]
      [INFO] [talledLocalContainer] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_131]
      [INFO] [talledLocalContainer] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_131]
      [INFO] [talledLocalContainer] at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_131]
      [INFO] [talledLocalContainer] at org.hippoecm.repository.HippoRepositoryFactory.getHippoRepository(HippoRepositoryFactory.java:178) [hippo-repository-connector-5.0.0.jar:5.0.0]
      [INFO] [talledLocalContainer] at org.hippoecm.repository.RepositoryServlet.init(RepositoryServlet.java:193) [hippo-repository-servlets-5.0.0.jar:5.0.0]
      [INFO] [talledLocalContainer] at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1183) [catalina.jar:8.5.15]
      [INFO] [talledLocalContainer] at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1099) [catalina.jar:8.5.15]
      [INFO] [talledLocalContainer] at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:989) [catalina.jar:8.5.15]
      [INFO] [talledLocalContainer] at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4931) [catalina.jar:8.5.15]

       

      After some troubleshooting it turns out this is caused by the path to the gif being all lower case, however my project name had capitals in the name ("MyServer") and the yams turned that into "myserver". 

      I edited imageset.yaml manually to correct this and all starts ok:

      /namespaces/myserver/imageset/prototypes/prototype/original/original.gif

      became

      /namespaces/MyServer/imageset/prototypes/prototype/original/original.gif

       

      and 

      /namespaces/myserver/imageset/prototypes/prototype/thumbnail/thumbnail.gif

      became

      /namespaces/MyServer/imageset/prototypes/prototype/thumbnail/thumbnail.gif

       

       

       

       

       

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                sshepelevich Sergey Shepelevich
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: