Opened 13 years ago

Closed 13 years ago

#8254 closed defect (duplicate)

query parser does not respect brackets in element names

Reported by: rdrr Owned by: anonymous
Priority: high Milestone: tbd
Component: General Version: 1.2.2
Keywords: Cc:
Blocked By: Blocking:


The query parser does not correctly recognize element names that contain brackets. An example of this would be a standard convention used by any web app frameworks such as Rails.

Say your displaying a form with many books with various attributes on them. Rails form helpers will create element names such as book[index][attribute_name]. The query parser will turn book[0][title] into something along the lines of this


notice the where the quotes are and the @ sign next to title, obviously not valid.

Additional issues are if you have a name such as book[0]_title the query parser will drop the _title.

This can all be traced to the getQueryParts function that call endAll whenever it sees an end bracket.

I came across this because we upgraded from 1.1 to 1.2.2 and have been using dijit form components and this completely hoses dijit RadioButtons?.

Change History (2)

comment:1 Changed 13 years ago by bill

Dup of #6834.

comment:2 Changed 13 years ago by bill

Resolution: duplicate
Status: newclosed
Note: See TracTickets for help on using tickets.