Skip to content
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

Requesting a non existing widget causes a 500 and not a 404 #198

Closed
kardan opened this issue May 7, 2013 · 2 comments
Closed

Requesting a non existing widget causes a 500 and not a 404 #198

kardan opened this issue May 7, 2013 · 2 comments
Assignees
Milestone

Comments

@kardan
Copy link
Contributor

kardan commented May 7, 2013

Example:
http://akvo.org/rsr/widget/project-narrow/project/636/
http://akvo.org/rsr/widget/nonexistingtemplate/project/636/
&
http://akvo.org/rsr/widget/one-from-organisation/305/?widget=project-narrow
http://akvo.org/rsr/widget/one-from-organisation/305/?widget=nonexistingtemplate

The reason for this is that we blindly apply the user provided data to grab the correct template.

I would suggest that we remove the magic and try to be explicit in what widget we handle (manual urls & views).

@KasperBrandt
Copy link
Contributor

Merged in #669

@KasperBrandt
Copy link
Contributor

Test plan

GIVEN a non-existing widget
WHEN the widget is accessed
THEN the 404 page should be shown

@MichaelAkvo MichaelAkvo moved this to Done in RSR Dec 8, 2022
@MichaelAkvo MichaelAkvo added this to RSR Dec 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

No branches or pull requests

4 participants