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)?
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
andchaise
be aware of this and not rely on the filename to mark a file as a duplicate (already existing at that namespace)?