Open eternal-turtles opened 8 years ago
What happens if you URL-encode the query keys?
Apologies for the long delay -- I haven't actually been able to reproduce this again, so I think this may have been user-error on my part. Closing the issue.
seeing the same problem with woo handler.
Callback Error: the message-complete callback failed
URI "/asklakslklas/obj[a]=2&obj[b]=3" contains an illegal character #\[ at position 17.
[Condition of type FAST-HTTP.ERROR:CB-MESSAGE-COMPLETE]
Restarts:
0: [ABORT] abort thread (#<THREAD "clack-handler-woo" RUNNING {1009F961E3}>)
Backtrace:
0: ((FLET #:H0 :IN FAST-HTTP.PARSER::PARSE-BODY) #<unavailable argument>)
1: (SIGNAL #<QURI.ERROR:URI-MALFORMED-STRING {100A8BA933}>)
2: (ERROR QURI.ERROR:URI-MALFORMED-STRING :DATA "/asklakslklas/obj[a]=2&obj[b]=3" :POSITION 17)
3: (QURI.PARSER::PARSE-PATH-STRING #<unavailable argument> :START #<unavailable argument> :END #<unavailable argument>)
4: ((FLET QURI.PARSER::PARSE-FROM-PATH :IN QURI.PARSER::PARSE-URI-STRING) #<unavailable argument> #<unavailable argument>)
5: (QURI.PARSER::PARSE-URI-STRING "/asklakslklas/obj[a]=2&obj[b]=3" :START #<unavailable argument> :END #<unavailable argument>)
6: (WOO::HANDLE-REQUEST #S(FAST-HTTP.HTTP:HTTP-REQUEST :METHOD :GET :MAJOR-VERSION 1 :MINOR-VERSION 1 :STATUS 0 :CONTENT-LENGTH NIL :CHUNKED-P NIL ...) #S(WOO.EV.SOCKET:SOCKET :WATCHERS #(#.(SB-SYS:INT-S..
7: ((LAMBDA NIL :IN WOO::SETUP-PARSER))
When running Hunchentoot, the association list is returned properly. However, when I switch the server for Woo, I hit an exception. I am running SBCL on OS X.
So:
/foo?bar=hello
returns((bar . hello))
without problem, but/foo?foo[bar]=hello
throws an exception: