Skip to content

Return 404 when there isn't a valid component in program#9576

Merged
ahukkanen merged 1 commit intodevelopfrom
fix/500-on-invalid-conference-program
Jul 15, 2022
Merged

Return 404 when there isn't a valid component in program#9576
ahukkanen merged 1 commit intodevelopfrom
fix/500-on-invalid-conference-program

Conversation

@andreslucena
Copy link
Copy Markdown
Member

🎩 What? Why?

In some controllers, we're doing some incorrect checks when finding resources. This makes that some URLs return 500 when they should be returning 404.

This PR fixes this for conference_program#show, https://meta.decidim.org/conferences/decidimfest19/program/99999

Testing

. Go to a conference, copy the slug and change it on conference-slug
. Change the slug on this URL http://localhost:3000/conferences/conference-slug/program/99999 and visit it
. See that it returns 404 (Routing Error in development)

♥️ Thank you!

@andreslucena andreslucena added module: conferences type: fix PRs that implement a fix for a bug labels Jul 14, 2022
@ahukkanen ahukkanen merged commit 2dcfdfa into develop Jul 15, 2022
@ahukkanen ahukkanen deleted the fix/500-on-invalid-conference-program branch July 15, 2022 12:25
entantoencuanto added a commit that referenced this pull request Jul 15, 2022
…ging

* feature/redesign-main-footer:
  Reorder elements in main links of footer and define links and texts
  Define a cell for static_pages and topics configured to appear in footer
  Fix translation call
  Set fixed links in redesigned_main_legal partial
  Add FooterMenuPresenter to display menu items in footer
  Fix budgets seeds on non development apps (#9585)
  Return 404 when there isn't a valid component in program (#9576)
  Add missing queue close_meeting_reminder to sidekiq configuration (#9568)
  Make the HERE Map display in the currently selected language (#9552)
  Add help text for proposals' 'publish answers immediately' setting  (#9549)
  Fix admin language selector with more than 4 locales (#9519)
  Fix publish event on official proposals (#9421)
  Prevent missing ActionLog entries to break the application (#9502)
  Add boilerplate structure to CHANGELOG (#9501)
  Add step-by-step instructions of the Crowdin releases process (#9555)
  Fix translated attributes field type change (#9547)
  Add `modifyList` option to the autocomplete element (#9548)
  Admin log filters (#9460)
  Improve the default gitignore files created by the generators (#9507)
eliegaboriau pushed a commit to eliegaboriau/decidim that referenced this pull request Oct 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

module: conferences type: fix PRs that implement a fix for a bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants