Uploaded image for project: 'Gateway'
  1. Gateway
  2. GTWY-976

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

XMLWordPrintable

    • Icon: Defect Defect
    • Resolution: Done
    • Icon: Blocker Blocker
    • 1.0.0-ALPHA2
    • None
    • 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)

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

                Created:
                Updated:
                Resolved: