Project

Profile

Help

Bug #3008

closed

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

Added by Debbie Lockett about 8 years ago. Updated over 7 years ago.

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

100%

Estimated time:
Applies to JS Branch:
0.9
Fix Committed on JS Branch:
0.9
Fixed in JS Release:
SEF Generated with:
Platforms:
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.

Actions #1

Updated by Debbie Lockett about 8 years 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"}

Actions #2

Updated by Debbie Lockett about 8 years ago

  • Fixed in version set to 0.9.1

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

Actions #3

Updated by Debbie Lockett about 8 years 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.

Actions #4

Updated by Community Admin over 7 years 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