Task #9710 (closed)
Opened 7 years ago
Closed 7 years ago
Create OriginalFile entries for each uploaded file
| Reported by: | cblackburn | Owned by: | cblackburn |
|---|---|---|---|
| Priority: | blocker | Milestone: | OMERO-4.4.7 |
| Component: | Import | Version: | n.a. |
| Keywords: | n.a. | Cc: | jamoore, cxallan, bpindelski |
| Resources: | n.a. | Referenced By: | n.a. |
| References: | n.a. | Remaining Time: | 0.0d |
| Sprint: | 2012-11-20 (2) |
Description (last modified by jmoore)
To support the permissions model fully each uploaded file should have an entry in the OriginalFile table. This is nearly identical to the previous archiving functionality in the ImportLibrary except that now the original files need to be created during the initial upload, before the server-side import is initiated. The created original files must be linked to the imported image via image->pixels->pixelsoriginalfilemap->originalfile as previously fo
Each created path/OriginalFile will belong to a single user/group as always, and it will not be able to create another OriginalFile with an identical name in that ManagedRepository.
Where necessary, all created originalfiles should have their params set. Any object created via the repo API should clearly have the repo set in params and have permissions based on the creating user (rather than root). This includes all parent directories that may need to be created via mkdirs().
Finally, all applicable repo API methods should take the originalfile objects into account by calling a method (e.g. mustBeInDb()) on CheckedPath.
Change History (6)
comment:1 Changed 7 years ago by cblackburn
- Status changed from new to accepted
comment:2 Changed 7 years ago by jmoore
- Owner changed from cblackburn to jmoore
comment:3 Changed 7 years ago by cblackburn
- Owner changed from jmoore to cblackburn
comment:4 Changed 7 years ago by jburel
- Sprint changed from 2012-10-23 (1) to 2012-11-20 (2)
Moved from sprint 2012-10-23 (1)
comment:5 Changed 7 years ago by jmoore
- Cc bpindelski added
- Description modified (diff)
comment:6 Changed 7 years ago by jmoore
- Remaining Time changed from 1 to 0
- Resolution set to fixed
- Status changed from accepted to closed
To prevent merge conflicts, I'll start work on this esp. w.r.t. uploadFilesToRepository.