Wrong file being downloaded from "Files" tab #147

Open
opened 2025-04-04 11:15:48 +02:00 by ansv7779 · 3 comments
Owner
See ticket https://otrs.dsv.su.se/otrs/index.pl?Action=AgentTicketZoom;TicketID=402153
ansv7779 added the
bug
new
labels 2025-04-04 11:15:48 +02:00
Author
Owner

My immediate thought is that this is the same underlying problem as . There's a list of things and the links in on the web page are indexed based on the list as it was when the page was shown. When clicking a link it will attempt to index into a potentially modified list resulting in unexpected behavior.

Here's an example link from the "Files" page https://<host>/supervisor/project/files?7--filePanel-table-body-rows-1-cells-1-cell-name&pid=<x>

See the highlighted part "rows-1" which means the link refers to the first file in the list of files, if another file is uploaded while the page is shown the link will point to the new file (because it is now first in the list) rather than what is actually displayed on the page.

My immediate thought is that this is the same underlying problem as #85. There's a list of things and the links in on the web page are indexed based on the list as it was when the page was shown. When clicking a link it will attempt to index into a potentially modified list resulting in unexpected behavior. Here's an example link from the "Files" page `https://<host>/supervisor/project/files?7--filePanel-table-body-`**`rows-1`**`-cells-1-cell-name&pid=<x>` See the highlighted part "**rows-1**" which means the link refers to the first file in the list of files, if another file is uploaded while the page is shown the link will point to the new file (because it is now first in the list) rather than what is actually displayed on the page.
Author
Owner

Did some more troubleshooting and notice that, at one point, there were 22 files available but at the time of writing there are only 10. Can't find any traces of files being deleted. But the fact that there seems to have been files added and deleted lends more support for the idea of an old page showing files that had been deleted.

Did some more troubleshooting and notice that, at one point, there were 22 files available but at the time of writing there are only 10. Can't find any traces of files being deleted. But the fact that there seems to have been files added and deleted lends more support for the idea of an old page showing files that had been deleted.
andan removed the
new
label 2025-04-10 13:31:50 +02:00
Owner

Läraren får komma förbi och visa om felet kvarstår eller går att reproducera

Läraren får komma förbi och visa om felet kvarstår eller går att reproducera
Sign in to join this conversation.
No Milestone
No project
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: DMC/scipro#147
No description provided.