Container 44883: Prevent anonymous multi-download access#11159
Container 44883: Prevent anonymous multi-download access#11159matheuszych wants to merge 1 commit intoILIAS-eLearning:release_10from
Conversation
|
@matthiaskunkel Agenda note (Jour Fixe):Decision needed: Enable anonymous users to perform the “Download Multiple Objects” action (Container) and to view Notifications (Notifications). This alters default ILIAS behavior and affects two components. The current UI already shows the download button but denies execution. Even if execution were permitted, the user would not be shown the download link. Should both actions be available to anonymous users? Otherwise, the “Download Multiple Objects” action should probably not be shown to anonymous users in the first place. |
|
Hi @matheuszych , I have a question: If you as anonymous person A initiated a multi-download in the graphical user interface, and this task is then successfully processed by the ILIAS background tasks, how do you ensure that anonymous person B does not see the processed item in the notification center? AFAIK there is currently no concept of identifiable anonymous initiators for background tasks. Seeing finalized background tasks of other individuals would be confusing IMO. We should not do this. Even if we decide to propose a concept of identifiable anonymous initiators for background tasks, I strongly recommend protecting the Best regards, |
|
Hello @mjansenDatabay , thank you for your feedback! I just tested the behavior you described, and unfortunately it works exactly as you said: anonymous user B can see anonymous user A’s notification (background task). This is not only confusing but also poses a spam risk for other users. This definitely would need to be addressed. For example via session tracking, where regular users could be allowed multiple simultaneous sessions, whereas each anonymous-user session would be isolated and treated as a separate user. The file object has its own permission set. There, you can configure whether anonymous users have the “Visible” and “Read” permissions. The “Visible” permission lets a user see that a file exists, its name, file type, size, and upload date. It also displays the message: “To access this item you need to be logged in and have appropriate permissions.” Currently, all The easiest approach here would be to hide the “Download Multiple Objects” action for anonymous users. They could still download the files one by one (with correct permissions). Best regards |
|
Jour Fixe, 23 FEB 2026: We agree with Thomas' suggestion and prevent the download of multiple objects for the Anonymous user due to conceptual problems (user sessions...). Allowing the download of multiple objects for Anonymous would require additional implementation efforts beyond this bugfix. Nevertheless, Anonymous can download selected objects one by one. |
5839ed7 to
338d831
Compare
|
Hello @matthiaskunkel , |
|
Yes, you are right, @matheuszych |
|
Hey @kergomard and @alex40724, could you please have a quick look at the changes as we are only chaning code in your components. Best Regards, |
kergomard
left a comment
There was a problem hiding this comment.
Thank you very much for the fix @matheuszych and @thojou
I agree with the changes in ilObjectListGUI.
Best,
@kergomard
See: https://mantis.ilias.de/view.php?id=44883 Anonymous users were offered the multi-download control and could still hit `ilContainerGUI::enableMultiDownloadObject` or `downloadObject` directly. `ilObjectListGUI::insertMultiDownloadCommand` now returns early for anonymous sessions, and `ilContainerGUI` shows a permission failure, returns to the parent controller, and skips enabling or serving downloads for anonymous or zero user ids.
https://mantis.ilias.de/view.php?id=44883
Aims to allow anonymous user to start download job in container and allow anonymous user to see the notification center.
@thojou @mjansenDatabay