Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Code 26] NIFTI_HEADER_UNREADABLE with symlinks #643

Closed
chrisgorgo opened this issue Nov 3, 2018 · 3 comments
Closed

[Code 26] NIFTI_HEADER_UNREADABLE with symlinks #643

chrisgorgo opened this issue Nov 3, 2018 · 3 comments

Comments

@chrisgorgo
Copy link
Contributor

See https://neurostars.org/t/code-26-nifti-header-unreadable/2783 for context.

This sounds like a regression - symlinked datasets used to work.

@chrisgorgo
Copy link
Contributor Author

@olgn could you have a look?

@nellh
Copy link
Member

nellh commented Nov 3, 2018

The browser doesn't expose symlinks to web apps, so that seems unlikely.

Maybe the original symlinks are broken or can't be read for the browser? I get this error if I symlink to an NFS mounted nii.gz file that I don't actually have permission to read, for example.

@olgn
Copy link
Collaborator

olgn commented Mar 13, 2019

I can replicate this error in the manner that @nellh said (permissions error on symlink) - which should raise an error. This permissions error results in NIFTI_HEADER_UNREADABLE in the browser but a FILE_READ in node, but I think this is due to the difference in file read methods for the different environments.

I have tested bids-validator 1.2.1 in node and browser on datasets with properly formatted / permissioned symlinks, and the validator works as expected in both environments.

@olgn olgn closed this as completed Mar 13, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants