Skip to content

logout problem

logout doesn't work in most cases (not all of them...)

This line returns null (and session token is not invalidated): https://git-r3lab.uni.lu/minerva/core/blob/devel_12.2.x/rest-api/src/main/java/lcsb/mapviewer/api/users/UserController.java#L153

@sascha.herzinger Do you have any ideas what might be the problem? Your refactor touched almost every aspect of spring, so maybe...

Here is set of curl commands to reproduce it:

gawi@uni-new:~/tmp$ curl -c cookies.txt http://localhost:8080/minerva/api/doLogin
{"info":"Login successful.","login":"anonymous","token":"645B22F2CDD68655901AF96E1D3579CF"}
gawi@uni-new:~/tmp$ curl -b cookies.txt http://localhost:8080/minerva/api/users/anonymous/?columns=login
{"login":"anonymous"}
gawi@uni-new:~/tmp$ curl -b cookies.txt http://localhost:8080/minerva/api/doLogout
{"status":"OK"}
gawi@uni-new:~/tmp$ curl -b cookies.txt http://localhost:8080/minerva/api/users/anonymous/?columns=login
{"login":"anonymous"}

Last line should return you access denied.

If you try it on pdmap.uni.lu it works as expected.