Opened 11 years ago
Closed 11 years ago
#506 closed defect (fixed)
Installation wizard doesn't check if biomaterial list is shared
Reported by: | Nicklas Nordborg | Owned by: | olle |
---|---|---|---|
Priority: | minor | Milestone: | Reggie v2.13 |
Component: | net.sf.basedb.reggie | Keywords: | |
Cc: |
Description
The installation wizard create the "Flagged RNA" biomaterial list (empty to begin with). However, it doesn't check (or fix) that the list is shared to the scan-b project as it does for other item.
Workaround is to manually share the list to scan-b if it is not already shared.
Change History (5)
comment:1 by , 11 years ago
Owner: | changed from | to
---|
comment:2 by , 11 years ago
Status: | new → assigned |
---|
comment:3 by , 11 years ago
Problem discussion:
- The installation wizard is managed by Java servlet
InstallServlet.java
inreggie/src/net/sf/basedb/reggie/servlet/
, where BioMaterial lists are managed by public methodsBioMaterialList createBioMaterialList(SessionControl sc, BiomaterialList def)
andJSONObject checkBioMaterialList(DbControl dc, BiomaterialList list, boolean createIfMissing)
Neither method accepts input permission options.
- Similar methods for other items, i.e.
Tag createTag(...)
andJSONObject checkTag(...)
, accept argumentPermissionOptions permissions
for applying permission options, which in calls can be used with valueeffectiveOptions
, defined byPermissionOptions effectiveOptions = sharedToActiveProject == null ? sharedToPatientCurator : sharedToActiveProject;
Proposed solution:
- Public methods
BioMaterialList createBioMaterialList(...)
andJSONObject checkBioMaterialList(...)
are updated to accept new argumentPermissionOptions permissions
, and process it in a manner analogous to that in methodsTag createTag(...)
andJSONObject checkTag(...)
, respectively. The call to methodcheckBioMaterialList(...)
in protected methodvoid doGet(HttpServletRequest req, HttpServletResponse resp)
is updated with new argumenteffectiveOptions
.
comment:4 by , 11 years ago
Test of code changes:
- Test setup: On a test system, log-in to Reggie was performed with
root
permissions. BioMaterial list itemFlagged RNA
was manually removed from sharing for the active projectSCAN-B
. When the Reggie Installation wizard was opened, a warning sign was displayed for theFlagged RNA
item, with the message "Not shared to project: SCAN-B (use)
". After clicking on the "Fix items
" button, the warning icon was changed to a check mark, and the message to "Fixed
". Inspection of the properties for theFlagged RNA
item, showed that it was shared to the active projectSCAN-B
. - Result: The test was successful with passed result.
comment:5 by , 11 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
(In [2038]) Fixes #506. Installation wizard updated to check if biomaterial is shared to active project.
- Java servlet
InstallServlet.java
inreggie/src/net/sf/basedb/reggie/servlet/
updated in public methodsBioMaterialList createBioMaterialList(...)
andJSONObject checkBioMaterialList(...)
to accept new argumentPermissionOptions permissions
, and process it in a manner analogous to that in methodsTag createTag(...)
andJSONObject checkTag(...)
, respectively. The call to methodcheckBioMaterialList(...)
in protected methodvoid doGet(HttpServletRequest req, HttpServletResponse resp)
is updated with new argumenteffectiveOptions
.
Note:
See TracTickets
for help on using tickets.
Ticket accepted.