-
-
Notifications
You must be signed in to change notification settings - Fork 60
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Email addresses with '+' tags #22
Comments
Hi @Don-L , |
Maybe we can use encoreURIComponent on each item in convertRequestOptions and then remove the overall encodeURI around the query in convertRequest? The problem with using encodeURIComponent and then encodeURI is it will replace the escaped characters with more escaped characters e.g. |
Hi @CallumHogg , One way or another, I will need to test each request thoroughly, so I am 100% sure I am not breaking anything (I had issues with query encoding before, I do not clearly remember, but I think it was connected to RetrieveMultiple of the next page url query parameter, because encoding there is weird). |
Most probably, we need to encode all components separately using |
Hello, loving the library - thanks very much for this!
I've come across a potential issue with the encoding of email addresses which contain a '+', e.g. email+alias@email.com. Submitting a query with such an address in the filter argument of retrieveMultiple for example doesn't return any matches for me, even where a matching entity is known to exist in my Dynamics instance.
Making a change to line 213 in convertRequest in utilities/RequestConverter seems to fix the issue:
if (result.query) {
result.url += "?" + encodeURI(result.query);
}
at line 213 to
if (result.query) {
result.url += "?" + encodeURI(result.query).replace(/+/g, "%2B");
}
Thanks again
Donald
The text was updated successfully, but these errors were encountered: