eyra / mono

Next platform repo
https://eyra.co
GNU Affero General Public License v3.0
7 stars 5 forks source link

Invite to unpublished study creates Internal Server Error 503 #887

Closed TjerkNan closed 4 months ago

TjerkNan commented 4 months ago

Describe the bug When I create an invite url assignment/154/invite and access this as a participant, an Internal Server Error 503 is shown if the study hasn't been published yet.

This is a rare issue that may never occur in practice. To Reproduce Steps to reproduce the behavior:

  1. Create donation study
  2. Press preview to generate link
  3. Add /invite to the preview link
  4. Login in different browser as participant using this link
  5. Observe error

Expected behavior An access denied error.

Screenshots Screenshot 2024-06-26 at 23 06 56

Desktop (please complete the following information):

mellelieuwes commented 4 months ago

@TjerkNan this is by design. We don't have custom error pages yet.