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

Decode filenames for fileset label #4172

Merged
1 commit merged into from
Jan 2, 2020
Merged

Decode filenames for fileset label #4172

1 commit merged into from
Jan 2, 2020

Conversation

ghost
Copy link

@ghost ghost commented Dec 12, 2019

This PR fixes an issue where non-ascii characters in filenames were being encoded when creating the file_set label in the Hyrax::FileSetActor. Changing the code to use Addressable::URI.unencodeinstead of Addressable::URI.parse fixes this issue.

I have added a test with Japanese characters.

Before:
Screenshot 2019-12-12 at 10 36 27

After:
Screenshot 2019-12-12 at 11 10 50

I am unsure if there is any downside to no longer using parse.

nb. the one failed test on ruby2-4-7 is a bit of a headscratcher.

@ghost ghost changed the title WIP: decode filenames for fileset label Decode filenames for fileset label Dec 12, 2019
Copy link
Contributor

@no-reply no-reply left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

Should we backport it to 2.x-stable?

@ghost ghost merged commit dfaaeef into master Jan 2, 2020
@ghost ghost deleted the decode-filenames branch January 2, 2020 11:50
This pull request was closed.
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.

1 participant