File entities don't handle local_state correctly for setting datafilehandleid

Description

If you do:

The file handle that is associated with the file is updated but the local_state metadata associated with f is still referencing the old file medata. The reason is that the store function only updates these fields if the file is being uploaded. Additionally it is not possible to populate these fields always as the fileEntity f doesn't have access to the filehandle only its id.

We might want to rethink what data we actually have saved locally for a file. For example a lot of code could be simplified if we always had the filehandle present on each entity.

Environment

None

Activity

Show:
Larsson Omberg
February 23, 2017, 10:53 PM

How about adding things like filehandle as _filehandle on the fileEntity object.

Larsson Omberg
June 1, 2017, 12:57 AM

Filehandle information is printed instead of only local state.

Have it emulate the old way information was displayed.

Assignee

Ziming Dong

Reporter

Larsson Omberg

Labels

None

Validator

Thomas Yu

Development Area

None

Release Version History

None

Fix versions

Priority

Major
Configure