-
Defect
-
Resolution: Done
-
Blocker
-
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)
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)