Project

General

Profile

Revision afedac7e

IDafedac7e851da05c2449244f20159ecea580cb30
Parent 587dbb82
Child cdf0f80b

Added by Andreas Kohlbecker over 3 years ago

ref #7348 stripping .json and .xml from reguest urls

View differences:

cdmlib-remote/src/main/java/eu/etaxonomy/cdm/remote/controller/AbstractController.java
123 123
        String pathParameter = request.getRequestURI().replaceFirst("^(?:.*)" + basePath , "");
124 124
        if(pathParameter != null){
125 125
            try {
126
                return java.net.URLDecoder.decode(pathParameter, "UTF-8");
126
                pathParameter = java.net.URLDecoder.decode(pathParameter, "UTF-8");
127
                pathParameter = pathParameter.replaceAll("\\.json$|\\.xml$", "");
127 128
            } catch (UnsupportedEncodingException e) {
128 129
                // should never happen
129 130
                throw new RuntimeException(e);

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)