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

Names of layers with spaces don't get escaped. #11

Open
eigood opened this issue May 8, 2018 · 2 comments
Open

Names of layers with spaces don't get escaped. #11

eigood opened this issue May 8, 2018 · 2 comments

Comments

@eigood
Copy link

eigood commented May 8, 2018

gs-shell>layer get --name 'getty:sunset buildings'
Command failed java.lang.IllegalArgumentException: Invalid uri 'http://geoserver:8080/geoserver/rest/layers/getty:sunset buildings.xml': escaped absolute path not valid
Invalid uri 'http://geoserver:8080/geoserver/rest/layers/getty:sunset buildings.xml': escaped absolute path not valid

gs-shell>layer get --name 'getty:sunset%20buildings'
sunset buildings
   Title: null
   Type: VECTOR
@eigood
Copy link
Author

eigood commented May 8, 2018

This is probably a problem for other values as well, I only just ran into it here.

@jericks
Copy link
Owner

jericks commented May 9, 2018

Could we just use the URLUtil.encode function here? It is replacing all spaces with %20.

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

2 participants