alphaville / jaqpot3

A brand new version of jaqpot - fully OpenTox API (1.2) compliant (see http://opentox.ntua.gr ) - lots of new features
http://opentox.ntua.gr
2 stars 1 forks source link

GET /user/{id} fails #31

Open alphaville opened 9 years ago

alphaville commented 9 years ago

I logged in at http://opentox.ntua.gr:8080/login and tried to access my profile at /user/{id}, but got a HTTP status code 500 with the message: "The server encountered an unexpected condition which prevented it from fulfilling the request".

When a user logs in for the first time and they have not created any models, then no user profile is created for them (and maybe this is wrong). However, an attempt to access their (non existing) profile should return 404 and not 500.

I then created a model on the server (hence, my profile was created and was registered in the database) and I could then access my profile page normally. I could also access my quota page without problems.

alphaville commented 9 years ago

...and I guess this is the same NPE as in issue #30.