Skip to content
This repository has been archived by the owner on Jan 6, 2023. It is now read-only.

Endpoint /auth/authenticate returns 500 error #581

Closed
shealavington opened this issue Nov 11, 2018 · 2 comments
Closed

Endpoint /auth/authenticate returns 500 error #581

shealavington opened this issue Nov 11, 2018 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@shealavington
Copy link

Bug Report

Steps to Reproduce

There are two ways to get a 500 error that should be returning 4XX Errors

1. How to get a bad 500 error

  1. Create or make a user as Draft through the GUI
  2. Create a post request with a body {"email":"x@x.x","password":"xxx"} (X = User info)
  3. Authenticate at endpoint /auth/authenticate with the post information above
  4. Receive a 500 error

2. How to get a bad 500 error

  1. Create or make a user as Active through the GUI
  2. Create a post request with a body {"email":"x@x.x","password":"yyy"} (X = User info, Y=Invalid info)
  3. Authenticate at endpoint /auth/authenticate with the post information above
  4. Receive a 500 error

Expected Behavior

Receive a 4XX Error with a useful message about the reason for failing

Actual Behavior

Receive a 500 Error

Other Context & Screenshots

Technical Details

  • Device: Desktop
  • OS: Windows 10
  • Web Server: Apache
  • PHP Version: 7.1
  • Database: MySQL 5.7
  • Install Method: Cloned Direcus 7.5
@benhaynes benhaynes added this to To do in v2.0.7 Nov 12, 2018
@benhaynes benhaynes added the bug Something isn't working label Nov 12, 2018
@benhaynes benhaynes added this to Needs triage in Bug Triage via automation Nov 12, 2018
@rijkvanzanten rijkvanzanten added this to To do in v2.0.8 Nov 14, 2018
@rijkvanzanten rijkvanzanten moved this from Needs triage to High priority in Bug Triage Nov 14, 2018
@rijkvanzanten rijkvanzanten added this to To do in v2.0.9 Nov 17, 2018
@wellingguzman
Copy link
Contributor

Hey @shealavington, did you test the first way to reproduce this error in the recent version? That bug should've been fixed by 4aa9b92

2. How to get a bad 500 error

  1. Create or make a user as Active through the GUI
  2. Create a post request with a body {"email":"x@x.x","password":"yyy"} (X = User info, Y=Invalid info)
  3. Authenticate at endpoint /auth/authenticate with the post information above
  4. Receive a 500 error

I will give this a try. which data did you use for Invalid Info? I will try all I can think of, but I wanted to know which one did you use.

@wellingguzman wellingguzman added this to To do in v2.0.10 Nov 26, 2018
@wellingguzman wellingguzman moved this from To do to In progress in v2.0.10 Nov 26, 2018
Bug Triage automation moved this from High priority to Closed Nov 26, 2018
v2.0.10 automation moved this from In progress to Done Nov 26, 2018
@wellingguzman
Copy link
Contributor

The problem with invalid data on the credentials has been fixed by f7891dc

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
Bug Triage
  
Closed
v2.0.10
  
Done
v2.0.7
  
To do
v2.0.8
  
To do
v2.0.9
  
To do
Development

No branches or pull requests

3 participants