Opened 14 years ago

Closed 14 years ago

#1467 closed defect (fixed)

Race condition when displaying file view page causes it to display directory contents instead

Reported by: Nicklas Nordborg Owned by: everyone
Priority: minor Milestone: BASE 2.15
Component: web Version:
Keywords: Cc:

Description

It seems like there is a race-condition when following a linked file. The file-view is a frameset that consists of two frames. To the left is the directory tree and to the right is a content frame that can either contain a list with files/subdirectories of the current directory or with detailed file information.

When following a linked file (for example a data file for a raw bioassay set) it is expected to end up with the directory tree + detailed file information. But in some cases, the right frame contains a list with the directory contents instead of the file information.

I suspect that there is a race condition that affects the directoryOnClick() method in the directory tree. The condition on line 257 is supposed to protect the right frame from being updated with the selected directory contents during initialization. This seems to not work in all cases. Probably because the file information frame has not been loaded yet which causes the match on the location fails and then the right frame location is set to display the directory contents instead.

Change History (1)

comment:1 by Nicklas Nordborg, 14 years ago

Resolution: fixed
Status: newclosed

(In [5276]) Fixes #1467: Race condition when displaying file view page causes it to display directory contents instead

Note: See TracTickets for help on using tickets.