urnlib icon indicating copy to clipboard operation
urnlib copied to clipboard

toString() q params, missing &

Open bitsofinfo opened this issue 1 year ago • 1 comments

URN_8141 urn = URN.rfc8141().parse("urn:XY:ORDER:111111?=x=y&z=c");
System.out.println(urn.toString());
System.out.println(urn.toURI().toString());
urn:LB:ORDER:111111?=x=yz=c
urn:LB:ORDER:111111?=x=yz=c

where are the & separators?

I'm running 2.0.1....

bitsofinfo avatar Jun 12 '24 17:06 bitsofinfo

This is a strange bug. Ampersands in the query component are implemented. This is the output on my machine, running Java 8:

urn:XY:ORDER:111111?=x=y&z=c

What Java version are you running on?

claussni avatar Jul 04 '24 12:07 claussni