opensiddur / opensiddur-client

Reference client for the @opensiddur server
http://github.com/opensiddur/opensiddur-client/wiki
Other
10 stars 3 forks source link

Double encoding in URL bar/$resource calls #32

Closed EfraimFeinstein closed 9 years ago

EfraimFeinstein commented 9 years ago

Certain resource names are not accessible from the UI. Here's what's happening when a URL contains special characters, particularly parenthesis. The db encodes resource names using RFC3986, but Javascript's encodeURI/encodeURIComponent functions aren't completely compliant: certain characters, like parens are not encoded. To make problems worse, $location.path() wants a decoded URI and $resource.get() wants a decoded URI that it then encodes using the broken encodeURIComponent(), meaning $resource is completely broken.