Opened 12 years ago

Last modified 12 years ago

#236 closed defect

KV-paired CRS gets truncated during equality test — at Version 4

Reported by: Piero Campalani Owned by: Piero Campalani
Priority: major Milestone: 8.4
Component: secore Version: 8.3
Keywords: secore equality key value Cc:
Complexity: Medium

Description (last modified by Piero Campalani)

For example, querying:

http://localhost:8080/def/equal?1=http://localhost:8080/def/crs?authority=EPSG&code=4326&version=0&2=http://localhost:8080/def/crs/EPSG/0/4326

will parse http://localhost:8080/def/crs?authority=EPSG instead of http://localhost:8080/def/crs?authority=EPSG&code=4326&version=0 as first CRS, so that exception is then thrown.

Change History (4)

comment:1 by Piero Campalani, 12 years ago

The problem resides in secore.util.StringUtil.addParam() method, which splits the KV-paired URL and adds the first two elements, which should be the key and the value actually, but in this case they key is the number (1) and the value is the whole KV-paired URL.

comment:2 by Piero Campalani, 12 years ago

Owner: changed from mrusu to Piero Campalani
Status: newassigned

comment:3 by Piero Campalani, 12 years ago

The same happens upon compounding.

http://localhost:8080/def/crs-compound?1=http://localhost:8080/def/crs?authority=EPSG&code=4326&version=0&2=http://localhost:8080/def/crs/EPSG/0/32633

comment:4 by Piero Campalani, 12 years ago

Description: modified (diff)
Note: See TracTickets for help on using tickets.