-
Notifications
You must be signed in to change notification settings - Fork 506
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
API Config Site Returns Non-Encoded Image_Header URL #1635
Labels
Comments
dalezak
changed the title
API Config Site Returns
API Config Site Returns Non-Encoded Image_Header URL
Mar 13, 2017
jshorland
added
P1 - Immediate
Mobile
Stage: Tech Spec
and removed
Stage: Tech Spec
labels
Apr 3, 2017
@crcommons you could look at this as a first issue in the API. This should be a change needed in the Media Formatter class somewhere. Have a look around, and then I can give you a run through of how that various parts fit together |
crcommons
added a commit
that referenced
this issue
Jun 15, 2017
crcommons
added a commit
that referenced
this issue
Jun 28, 2017
rjmackay
pushed a commit
that referenced
this issue
Jun 30, 2017
@dalezak could you test this against a staging deployment? ie. (qa.ushahididev.com) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Expected behaviour
The
/api/v3/config/site
endpoint is returning non-encodedimage_header
, which is causing some issues in the mobile app.Actual behaviour
Some Deployment
image_header
include whitespace in the URL.Steps to reproduce the behaviour/error
With a valid
access_token
, hitting https://USAelectionmonitor.api.ushahidi.io/api/v3/config/site returns:Which includes whitespace in the image URL, but probably should instead return
Perhaps a solution is for the image uploader should sanitize the file URLs before it is saved?
The text was updated successfully, but these errors were encountered: