informatics-isi-edu / hatrac

Simple object storage for collaborations
Apache License 2.0
3 stars 1 forks source link

File Exists check returns inconsistent data #48

Closed jrchudy closed 6 years ago

jrchudy commented 6 years ago

With a file with filename including a whitespace character (name of file.jpg):

When doing a file exists check with hatrac (making a HEAD request against the namespace), the request payload is generated with the whitespace character in mind. The returned content-disposition header has a different filename. It is returned with an underscore where the whitespace characters were. This is causing some files with identical content to be uploaded to the same namespace with different versions.

Is this the expectation of hatrac? Should ermrestJS and chaise be aware of this and not rely on the filename to mark a file as a duplicate (already existing at that namespace)?

jrchudy commented 6 years ago

Closing this issue. This is not an issue in hatrac but an inconsistency between chaise and ermrestJS.