Skip to content
This repository has been archived by the owner on May 18, 2021. It is now read-only.

Event model IDs cause URL-encoded slash in requests, resulting in 404 errors #146

Open
pdf opened this issue Aug 14, 2013 · 2 comments
Open

Comments

@pdf
Copy link

pdf commented Aug 14, 2013

I looked at trying to fix this, but I'm struggling because I don't know backbone.js.

At models/event.coffee#L15 the id is set to a value with a / in it. Unfortunately, when the request is generated, this / is URL-encoded to %2F, so you end up with requests like:

DELETE https://apiurl/events/client_name%2Fcheck_name

And that of course, results in a 404, because client_name%2Fcheck_name is definitely not a valid client name.

@amdprophet
Copy link
Member

I believe we had found a way around this in some of the other models (likely overriding the sync method, or specifying the update URL). I'll revisit it when I get a chance; I must have missed adding the fix to the event model.

@amdprophet
Copy link
Member

Whoops! I didn't mean to close that.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants