-
Notifications
You must be signed in to change notification settings - Fork 438
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Opening the simple item page of a withdrawn item when logged in as administrator stalls the frontend instance #3393
Comments
Hi, showReinstateButton$(): Observable<boolean> {
const correction$ = this.correctionTypeDataService.findByItem(this.item.uuid, true).pipe(
getFirstCompletedRemoteData(),
map((correctionTypeRD: RemoteData<PaginatedList<CorrectionType>>) => correctionTypeRD.hasSucceeded ? correctionTypeRD.payload.page : []),
);
const isAdmin$ = this.authService.isAuthorized(FeatureID.AdministratorOf);
return combineLatest([isAdmin$, correction$]).pipe(
map(([isAdmin, correction]) => {
return !isAdmin && correction.some((correctionType) => correctionType.topic === REQUEST_REINSTATE);
},
));
} If I force the authService not to use the cached version, it works for me, otherwise it seems to return const isAdmin$ = this.authService.isAuthorized(FeatureID.AdministratorOf, undefined, undefined, false); |
@Leano1998: The problem is most likely that the template always recreates a new
|
@alexandrevryghem : Yes, I noticed this behavior in the browser console. Thank you for the adding the fix! |
Interesting... I haven't noticed this on DSpace 7.6.x. We have many withdrawn items so I would have definitely run into this. |
Indeed, only |
I know that I said 7.6.x wasn't affected, but a comment on Slack regarding thumbnails reminded me that we do seem to have some glitch with withdrawn items as well. See this video: Screencast.From.2024-11-04.15-58-11.webmThis item has a thumbnail in its |
This bug could be related to the bug described in issue #3584. |
Can we reopen this issue? It is still a bug in the latest DSpace 8.1-Snapshot and it affects current DSpace 8 users. |
@alexandrevryghem It might be related to #3584. But I just read above, it is marked as completed by #3585, which is not ported yet to DSpace 8? As the bugreport was for DSpace 8 and our users are still experiencing the bug, I thought it would be good to have the issue open until fixed in DSpace 8? |
@MW3000 : Closing this again as it's fixed in the codebase (for 9.0)... once a bug is fixed, the linked bug ticket will auto-close as this is an indication to developers that it's been verified to be fixed (but it still may not yet be released, obviously). However, I've added a reminder to @alexandrevryghem on #3585 that we need to backport it to both @alexandrevryghem if you can find time to backport this sooner (rather than later), I'd appreciate it. I can gladly review, and perhaps @MW3000 can help us to test the backport. We need to include this fix in 8.1. |
Describe the bug
In DSpace 8.x, opening the simple item page of a withdrawn item when logged in as administrator stalls the frontend instance for about 10 to 15 minutes, making it unresponsive, then continues to display the simple item page.
To Reproduce
Steps to reproduce the behavior:
You can easily reproduce this on the DSpace Demo Website
Expected behavior
The simple item page should come up immediately
The text was updated successfully, but these errors were encountered: