Closed
Bug 645945
Opened 13 years ago
Closed 10 years ago
JSONP request fails to wrap response when dots are present in the callback key
Categories
(Webtools Graveyard :: BzAPI, defect)
Webtools Graveyard
BzAPI
Tracking
(Not tracked)
RESOLVED
WONTFIX
People
(Reporter: dbuchner, Assigned: gerv)
Details
Please allow JSONP callback function keys to contain dots (.), the service currently fails to wrap the response at all when dots are present. There are many javascript libraries that use callback functions in this format - "JSONP.requests.map.0" - to internally separate different calls as they are returned.
Assignee | ||
Comment 1•13 years ago
|
||
This is a bug in the Catalyst REST controller: Catalyst/Action/Serialize/JSONP.pm, which uses a "\w" regexp to test for validity, assuming that anything which doesn't match that is invalid. I have never succeeded in getting my bugfixes applied to this module :-( I may have to fork yet more of it. But in the mean time, I guess I could hack the copy on api-dev. Gerv
Reporter | ||
Comment 2•13 years ago
|
||
Do you have an idea of a ballpark ETA? I'm trying to balance the cost benefit of waiting vs developing my own request queue handler script. Best guess is fine :)
Assignee | ||
Comment 3•13 years ago
|
||
Fixed for api-dev by hacking the module locally. https://api-dev.bugzilla.mozilla.org/latest/bug?id=620789&content-type=application/javascript&callback=foo.bar Gerv
Reporter | ||
Comment 4•13 years ago
|
||
Thank you sooooooo much Gerv, this was a huge time saver!
Assignee | ||
Comment 5•13 years ago
|
||
I'm going to call this FIXED. The upstream module isn't going to change <sigh>, and I'm hoping not to fork more of it. I've documented the limitation. Gerv
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Assignee | ||
Comment 6•13 years ago
|
||
Actually, no. I may have to fork this module after all. Gerv
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Assignee | ||
Comment 7•10 years ago
|
||
BzAPI is very much in maintenance mode and is being superseded by the BzAPI shim on top of the native Bugzilla REST API, and that native API itself. So this bug is not going to be fixed. Gerv
Status: REOPENED → RESOLVED
Closed: 13 years ago → 10 years ago
Resolution: --- → WONTFIX
Updated•6 years ago
|
Product: Webtools → Webtools Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•