Resolved the issue. Found that the UI server was off-sync with the time server
On Monday, August 14, 2023 at 10:18:19 PM UTC+12 Snickers wrote: > Hi, > > We are experiencing Dspace going into an infinite loop in redirecting for > logging in. This happens when accessing bitstream when logged in. The URL > is something like below: > > > https://contouso.com/reload/1691969156273?redirect=%2Fbitstreams%2F85f01687-a172-4a4c-bed6-d6d75b22ef9d%2Fdownload > > Below are some logs: > > 2023-08-14 09:28:49,442 WARN 722599ac-4b57-4827-8c95-c57852740750 > 0c429c97-1788-471b-9555-16a84e82c072 > org.dspace.app.rest.exception.DSpaceApiExceptionControllerAdvice @ > Authentication is required (status:401 exception: Access is denied at: > org.springframework.security.access.vote.AffirmativeBased.decide(AffirmativeBased.java:73)) > 2023-08-14 09:28:49,442 INFO 722599ac-4b57-4827-8c95-c57852740750 > ba835492-c9ad-4bf5-8bbf-b5710cb6baa5 > org.dspace.app.rest.utils.DSpaceAPIRequestLoggingFilter @ Before request > [GET /server/api/discover/browses] originated from / > 2023-08-14 09:28:49,443 INFO 722599ac-4b57-4827-8c95-c57852740750 > 205c41a5-b292-4184-b89b-65adde21c76f > org.dspace.app.rest.utils.DSpaceAPIRequestLoggingFilter @ Before request > [GET /server/api/core/sites] originated from / > 2023-08-14 09:28:49,600 INFO unknown f2ed5077-9bf4-4d2e-bbe8-5d6aaaa56a11 > org.dspace.app.rest.utils.DSpaceAPIRequestLoggingFilter @ Before request > [GET > /server/api/core/bitstreams/9b4f708f-1dd1-4f6c-99d1-6a5b47f2ac52/content] > originated from unknown > 2023-08-14 09:28:49,606 INFO unknown f2ed5077-9bf4-4d2e-bbe8-5d6aaaa56a11 > org.dspace.usage.LoggerUsageEventListener @ > anonymous::view_bitstream:bitstream_id=9b4f708f-1dd1-4f6c-99d1-6a5b47f2ac52 > 2023-08-14 09:28:49,823 INFO 722599ac-4b57-4827-8c95-c57852740750 > 3f246020-657a-4fb5-abb9-05827e4a4ec2 > org.dspace.app.rest.utils.DSpaceAPIRequestLoggingFilter @ Before request > [GET /server/api/system/scripts/metadata-import] originated from / > 2023-08-14 09:28:49,824 WARN 722599ac-4b57-4827-8c95-c57852740750 > 3f246020-657a-4fb5-abb9-05827e4a4ec2 > org.dspace.app.rest.exception.DSpaceApiExceptionControllerAdvice @ > Authentication is required (status:401 exception: Access is denied at: > org.springframework.security.access.vote.AffirmativeBased.decide(AffirmativeBased.java:73)) > 2023-08-14 09:28:50,106 INFO 722599ac-4b57-4827-8c95-c57852740750 > fe1debdb-3278-4237-a6d0-35989e087640 > org.dspace.app.rest.utils.DSpaceAPIRequestLoggingFilter @ Before request > [GET /server/api/authz/authorizations/search/object] originated from /login > 2023-08-14 09:28:50,106 INFO 722599ac-4b57-4827-8c95-c57852740750 > 13817c1b-f588-4348-b88a-d2ee5d91cff8 > org.dspace.app.rest.utils.DSpaceAPIRequestLoggingFilter @ Before request > [GET /server/api/authz/authorizations/search/object] originated from /login > 2023-08-14 09:28:50,106 INFO 722599ac-4b57-4827-8c95-c57852740750 > d08f1cf0-81e5-457c-a9ec-78b4d675433d > org.dspace.app.rest.utils.DSpaceAPIRequestLoggingFilter @ Before request > [GET /server/api/authz/authorizations/search/object] originated from /login > 2023-08-14 09:28:50,107 INFO 722599ac-4b57-4827-8c95-c57852740750 > 5e902b14-0058-47c3-ba0d-ac3a355edf45 > org.dspace.app.rest.utils.DSpaceAPIRequestLoggingFilter @ Before request > [GET /server/api/authz/authorizations/search/object] originated from /login > 2023-08-14 09:28:50,108 INFO 722599ac-4b57-4827-8c95-c57852740750 > 3d22372c-cda7-4ed7-a3a6-2b4a9fc78d87 > org.dspace.app.rest.utils.DSpaceAPIRequestLoggingFilter @ Before request > [GET /server/api/authz/authorizations/search/object] originated from /login > > Shibboleth is working normally as people can login with no issue. The loop > happens consistently when accessing bitstream via edit item(admin) but also > happens when non-admin user go back to previous page from an open bitstream > file at random times. > > Any ideas or suggestions would be appreciated. > -- All messages to this mailing list should adhere to the Code of Conduct: https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx --- You received this message because you are subscribed to the Google Groups "DSpace Technical Support" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/dspace-tech/66adceec-eb0a-415a-846c-34473ad73058n%40googlegroups.com.
