FileAccessPoint don't support DISK access for filenames that contain spaces.

    • Type: Defect
    • Resolution: Done
    • Priority: Blocker
    • 1.0.0-ALPHA2
    • Affects Version/s: None
    • Component/s: None
    • None

      If a file has a space several problems are encountered.

      1) The declared mapping types won't work, the URI user type can't be loaded.
      2) The file name is escaped to change the space into a '+' and trying to download yields and error since it can't locate the file off disk.

      Hibernate error:

      org.hibernate.HibernateException: Retrieved an invalid URI reference value: h2o2_snowpits 1993.zip
      at eske.utils.hibernate.URIUserType.nullSafeGet(Unknown Source)
      at org.hibernate.type.CustomType.nullSafeGet(CustomType.java:128)
      at org.hibernate.type.AbstractType.hydrate(AbstractType.java:105)
      at org.hibernate.persister.entity.AbstractEntityPersister.hydrate(AbstractEntityPersister.java:2124)
      at org.hibernate.loader.Loader.loadFromResultSet(Loader.java:1404)

      Download error:

      ava.lang.IllegalArgumentException: The referenced file does not exist on disk: /datazone/esg-cdp/cadis/Atmosphere/Atmospheric_Measurements/Firn_Air_/h2o2_firngas+1993.zip
      at org.springframework.util.Assert.isTrue(Assert.java:65)
      at eske.model.metadata.dataaccess.FileAccessPointImpl.getFile(Unknown Source)
      at eske.web.controllers.download.FileDownloadHandler.setResponseHeaders(Unknown Source)
      at eske.web.controllers.download.FileDownloadHandler.handle(Unknown Source)
      at eske.web.controllers.download.FileDownloadController.handleRequest(Unknown Source)

              Assignee:
              Nathan Wilhelmi (Inactive)
              Reporter:
              Nathan Wilhelmi (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: