Opened 7 years ago

Closed 7 years ago

#2067 closed defect (fixed)

Download stream from files should be opened before sending metadata to web client

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

Description

The reason is that for external files, the size and last modification date may have changed since the file was registered with BASE. Opening the download stream retrieve the current values and update the database.

It would be better if the download servlet opened the download stream before sending the metadata to the web browser since otherwise it may send out incorrect values.

Change History (1)

comment:1 by Nicklas Nordborg, 7 years ago

Resolution: fixed
Status: newclosed

(In [7313]) Fixes #2067: Download stream from files should be opened before sending metadata to web client

The download stream is now opened earlier and the db.close() was changed to db.commit() so that changes are automatically saved.

Note: See TracTickets for help on using tickets.