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

Fix for digital object file versions #76

Merged
merged 1 commit into from
Jul 30, 2014

Conversation

mark-cooper
Copy link
Member

File versions with non parsable URI's cannot display in View mode.
Instead a server error (URI::InvalidURIError) is returned:

ActionView::Template::Error (bad URI(is not URI?)

Examples:

C:\Program Files\windows.exe
\SomeAwesome\Network\location.bat
http://www.yr.no/sted/Finland/Västra_Finland/Askainen/varsel.xml

This patch acts defensively by catching the exception and displaying
the file_uri string if it does not parse as a URI.

File versions with non parsable URI's cannot display in View mode.
Instead a server error (URI::InvalidURIError) is returned:

ActionView::Template::Error (bad URI(is not URI?)

Examples:

C:\Program Files\windows.exe
\\SomeAwesome\Network\location.bat
http://www.yr.no/sted/Finland/Västra_Finland/Askainen/varsel.xml

This patch acts defensively by catching the exception and displaying
the file_uri string if it does not parse as a URI.
cfitz added a commit that referenced this pull request Jul 30, 2014
Fix for digital object file versions
@cfitz cfitz merged commit f73aeda into archivesspace:master Jul 30, 2014
@mark-cooper mark-cooper deleted the file_versions_fix branch July 25, 2019 17:24
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

Successfully merging this pull request may close these issues.

None yet

2 participants