Project

Profile

Help

Bug #3008

ixsl:query-params() does not allow for multiple values associated with a single field

Added by Debbie Lockett over 1 year ago. Updated 12 months ago.

Status:
Closed
Priority:
Low
Sprint/Milestone:
-
Start date:
2016-10-24
Due date:
% Done:

100%

Applies to JS Branch:
0.9
Fix Committed on JS Branch:
0.9
Fixed in JS Release:
SEF Generated with:
Company:
-
Contact person:
-
Additional contact persons:
-

Description

The query string of a URL may have multiple values for a single field, e.g. field1=value1&field1=value2&field2=value3. For example, for a query string resulting from an HTML form. However, ixsl:query-params() returns an XDM map (where keys are unique) which is built from the query string without preserving duplicates.

History

#1 Updated by Debbie Lockett over 1 year ago

  • Status changed from New to Resolved

In fact, there is a problem when the query string contains ANY multiple pairs (whether or not keys were duplicated) - only the first pair is returned in the ixsl:query-params() map.

Fix committed for both of these problems - the returned map contains one pair per key, and when a key is duplicated its value is a sequence.

e.g: when the query string is field1=value1&field1=value2&field2=value3, ixsl:query-params() returns map{field1": ("value1", "value2"), "field2 "value3"}

#2 Updated by Debbie Lockett over 1 year ago

  • Fixed in version set to 0.9.1

Bug fix applied in the Saxon-JS 0.9.1 beta release.

#3 Updated by Debbie Lockett over 1 year ago

  • Status changed from Resolved to Closed
  • % Done changed from 0 to 100

Bug fix applied in the Saxon-JS 0.9.1 beta release.

#4 Updated by Community Admin 12 months ago

  • Fixed in JS Release set to Saxon-JS 0.9.1
  • Applies to JS Branch 0.9 added
  • Fix Committed on JS Branch 0.9 added

Please register to edit this issue

Also available in: Atom PDF Tracking page