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

Metadata file store / Encode file name for URL. #2587

Merged
merged 1 commit into from
Mar 14, 2018

Conversation

fxprunayre
Copy link
Member

If attachement's file name contains characters that need to be encoded in URL, they are not for now

image

In the XML

image

Should be

image

Thinking of how to migrate existing records ... any suggestions welcomed.

@fxprunayre fxprunayre added the bug label Feb 27, 2018
@fxprunayre fxprunayre added this to the 3.4.2 milestone Feb 27, 2018
Copy link
Member

@josegar74 josegar74 left a comment

Choose a reason for hiding this comment

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

The code looks fine, but I'm not sure if we should instead filter the allowed characters as can cause issues in some filesystems.

@fxprunayre
Copy link
Member Author

fxprunayre commented Mar 14, 2018

The code looks fine, but I'm not sure if we should instead filter the allowed characters as can cause issues in some filesystems.

the issue is that right now, all those characters are allowed on windows, linux, ... and the URL created is wrong. Trying to upload a file with a character unsupported by the server filesystem is another problem. Which characters may cause problems ?

@josegar74
Copy link
Member

Looks fine then. I need to check, but in some Ubuntu I got issues with some characters like é.

@josegar74 josegar74 merged commit d2b7fdd into geonetwork:3.4.x Mar 14, 2018
fxprunayre added a commit to fxprunayre/core-geonetwork that referenced this pull request Apr 12, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants