Github user johnament commented on a diff in the pull request: https://github.com/apache/incubator-usergrid/pull/300#discussion_r34112375 --- Diff: stack/rest/src/main/java/org/apache/usergrid/rest/organizations/OrganizationResource.java --- @@ -143,21 +143,21 @@ public ApplicationResource getApplicationByName( @PathParam("applicationName") S } - @Path("applications/{applicationName}") + @Path("applications/{applicationName: [^<>/]+}") --- End diff -- I tested this out locally, not sure if it's doing what you'd expect. I went to this URL (my local image shows 8580 as the HTTP port) http://localhost:8580/applications/%3Cscript%3Ealert('bob')%3C/script%3E The response still included the script tag, so this came back ``` {"error":"organization_application_not_found","timestamp":1436323964157,"duration":3,"exception":"org.apache.usergrid.rest.exceptions.OrganizationApplicationNotFoundException","error_description":"Could not find application for applications/<script>alert('bob')< from URI: applications/<script>alert('bob')</script>"} ```
--- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. ---