Issue Details (XML | Word | Printable)

Key: MULE-3598
Type: Bug Bug
Status: Open Open
Priority: Major Major
Assignee: Unassigned
Reporter: Dimitar Dimitrov
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Mule

URIBuilder fails to parse query string containing equals in the value

Created: 04/Aug/08 10:39 PM   Updated: 19/Nov/08 07:49 AM
Component/s: Core: Configuration
Affects Version/s: 2.0.2
Fix Version/s: 2.1.x Backlog

Time Tracking:
Original Estimate: 20 minutes
Original Estimate - 20 minutes
Remaining Estimate: 20 minutes
Remaining Estimate - 20 minutes
Time Spent: Not Specified
Remaining Estimate - 20 minutes

Labels:
User impact: Medium
Effort points: 0.5


 Description  « Hide
When using the standard EndpointURIEndpointBuilder, for the following URI:
oa:qry://OMAR_DS4_QRY/SERVICE_REJECTED_ORDERS/1?match=eu.PRIMARY_GROUP==4

The value for the property match is 'eu.PRIMARY_GROUP' (should have been 'eu.PRIMARY_GROUP==4').

The root cause is that URIBuilder#parseQueries() uses StringTokenizer to parse the key-value pairs.

Since key-value pairs are fixed-length tuples, it makes more sense to use substr or string.split("=", 2) if we don't mind using Java 1.4 in the core.

A workaround is to use property element instead of URI query parameter.



 All   Comments   Work Log   Change History   Transitions   FishEye      Sort Order: Ascending order - Click to sort in descending order
There are no comments yet on this issue.