ENGAGE-127: When contacting couch the query string is concatenated twice

Metadata

Source
ENGAGE-127
Type
Bug
Priority
Major
Status
Closed
Resolution
Fixed
Assignee
Colin Clark
Reporter
Justin Obara
Created
2009-10-14T14:10:55.000-0400
Updated
2009-11-13T11:58:40.000-0500
Versions
  1. 0.1
Fixed Versions
  1. 0.3b
Component
N/A

Description

When contacting couch the query string is concatenated twice

Meaning that if the query string is "mmi&merchandising" it will be displayed as "mmi&merchandising&mmi&merchandising"

This seams to be happening at line 37 or loadData.js

Comments

  • Antranig Basman commented 2009-10-14T14:54:22.000-0400

    This occurs on the client end - line 20 of loadData.js converts the entire document URL into a string, including query parameters, but the jQuery.ajax call on line 37 further supplies the query parameters as the "data" argument. Note that these URLs are not ones that we plan to support (at least without further discussion) since their serialisation into JSON objects is unclear. We may adopt a standard whereby a segment without value is silently interpreted as if it had the value "1", and likewise on serialization.

  • Justin Obara commented 2009-11-13T11:58:40.000-0500

    Resolved at r8682
    Removed the data options in the ajax call, this is what was adding in the query string a second time.