dataquest-dev / dspace-import

Blackbox tests for dspace repository
Other
0 stars 2 forks source link

Resource policies duplicity #166

Closed Paurikova2 closed 1 month ago

Paurikova2 commented 1 month ago
Phases MP MM MB MR JM Total
ETA 0 0 0 0 0 0
Developing 0 0 0 0 0 0
Review 3 0 0 0 0 0
Total - - - - - 0
ETA est. 0
ETA cust. - - - - - 0

Problem description

You can see duplication in the Restricted Collection: Wikitongues Oral Histories and in all collections where the Authorization Action is READ, DEFAULT_ITEM_READ, or DEFAULT_BITSTREAM_READ. image

Analysis

This issue occurs because in DSpace 5, there is only a DEFAULT_READ group for the actions BITSTREAM_DEFAULT_READ and ITEM_DEFAULT_READ. In DSpace 7, these are divided into separate ITEM_DEFAULT_READ and BITSTREAM_DEFAULT_READ groups. Consequently, one group from DSpace 5 is mapped to two groups in DSpace 7.

Solution

Since one group in DSpace 5 is split into two groups in DSpace 7, these groups are assigned the same e-persons (the only difference is in their names). Assign the READ and ITEM_DEFAULTREAD actions only to the group named COLLECTION[uuid]ITEM_DEFAULT_READ and the BITSTREAM_DEFAULT_READ action to the group named COLLECTION[uuid]_BITSTREAM_DEFAULT_READ.

Old implementation: image

New implementation: image image