Hi Tim,

I think I've found the reason. In the source there is 

        if (REPLACE_MODE.equals(acItem.getMode())) {
            removeReadPolicies(item, TYPE_CUSTOM);
            removeReadPolicies(item, TYPE_INHERITED);
        }

so READ is only removed for TYPE_CUSTOM or TYPE_INHERITED and not any of 
the other types or if the type hasn't been set at all (which is the case 
with our data). 

Do you consider this to be a bug? 

BR
Maruan

Maruan Sahyoun schrieb am Freitag, 15. Dezember 2023 um 09:26:59 UTC+1:

> Hi Tim,
>
> I'm attaching a screenshot of the items policy setting before and after 
> having run bulk access together with the json and log. As there is already 
> a cusom setting for read and write maybe that's where it's getting confused 
> as you can see from the after screenshot that instead of replacing it's 
> adding also the control json is specifying replace.
>
> BR
> Maruan
>
> Maruan Sahyoun schrieb am Freitag, 15. Dezember 2023 um 09:14:30 UTC+1:
>
>> Hi Tim,
>>
>> thank you for your response. I've tried on the demo site where it works. 
>> Will investigate further.
>>
>> BR
>> Maruan
>>
>> DSpace Technical Support schrieb am Donnerstag, 14. Dezember 2023 um 
>> 23:18:34 UTC+1:
>>
>>> Hi Maruan,
>>>
>>> Assuming you selected to change the "Item's Metadata" and selected the 
>>> "Replace access conditions" mode, then the Item should only have one policy 
>>> (which matches with the new access condition type).  It's not exactly clear 
>>> to me why this wouldn't be working based on the details you provided.
>>>
>>> If this isn't working, then we may need more details about the steps you 
>>> are taking, or you might want to submit a bug ticket to 
>>> https://github.com/DSpace/dspace-angular/issues (with the step by step 
>>> process you took). You also are welcome to test this process out on the 
>>> demo site (https://demo.dspace.org), which is running 7.6.1, to see if 
>>> you can reproduce the issue there.
>>>
>>> Tim
>>>
>>> On Wednesday, December 13, 2023 at 10:20:51 AM UTC-6 
>>> maruan....@googlemail.com wrote:
>>>
>>>> I've a question regarding bulk access management and maybe a 
>>>> misconception from my side.
>>>>
>>>> Currentl I have an item with READ permission for Anonymous. Now using 
>>>> Bulk access management I'd like to change that to Administrator using 
>>>> "Replace Access Conditions" and selecting "administrator" from the drop 
>>>> down.
>>>>
>>>> After that I have READ permission for Administrator but still READ 
>>>> permission for Anonymous.
>>>>
>>>> I'm using DSpace 7.6.0 - am I doing something wrong?
>>>>
>>>> BR
>>>> Maruan 
>>>>
>>>

-- 
All messages to this mailing list should adhere to the Code of Conduct: 
https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx
--- 
You received this message because you are subscribed to the Google Groups 
"DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to dspace-tech+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/dspace-tech/dd3b7fe5-0d50-4f8f-9bac-5e8799a32f75n%40googlegroups.com.

Reply via email to