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)

defect
Not set
normal

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.
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
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 :)
Thank you sooooooo much Gerv, this was a huge time saver!
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
Actually, no. I may have to fork this module after all.

Gerv
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
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 ago10 years ago
Resolution: --- → WONTFIX
Product: Webtools → Webtools Graveyard
You need to log in before you can comment on or make changes to this bug.