SEED-platform / seed

Standard Energy Efficiency Data (SEED) Platform™ is a web-based application that helps organizations easily manage data on the energy performance of large groups of buildings.
Other
107 stars 55 forks source link

Catch invalid organization id preventing 500s #4475

Closed perryr16 closed 6 months ago

perryr16 commented 6 months ago

Any background context you want to provide?

Passing ?organization_id=any_non_integer results in 500.

What's this PR do?

Catches the error and returns a value of -1 as the organization id resulting in a 403

How should this be manually tested?

pass a non-integer string value as the query param: ?organization_id=invalid_id

What are the relevant tickets?

4313

Screenshots (if appropriate)