In the  documentation for Item.inheritCollectionDefaultPolicies it says 
that "This method has been adjusted to leave custom policies, added by the 
users, in place and add the default collection policies only if there are 
no custom policies." But this is wrong. It only checks if the *colection* has 
policies, but it tests nothing about the item. That is the reason my 
problem appeared, even tough i was placing custom policies, the default 
anonymous policies were still appearing after my own. 

Are you guys planning on checking this bug out? And patching it?


Em terça-feira, 19 de abril de 2016 12:51:51 UTC+1, Tiago Guimarães 
escreveu:
>
> Hi,
>
> I have to implement a feature that when a user deposits a item and 
> specifies that it is restricted access, only the admins should be able to 
> view the deposited bitstreams/pdf.
>
> First I went to the item-submission.xml, added a step to the end with my 
> code to add the Administrator policy. It created the policy but later  an 
> Anonymous group policy was added by the system. 
> So i decided to implement a more intrusive approach, I used my own Java 
> Class in the Complete Step, extending the CompleteStep class. It worked in 
> my little virtual machine, because in that test environment i haven't 
> assigned a group to accept the items in the collection. When i assigned 
> Adminitrator group to the Collection, the problem came back. My item 
> appeared with both Administrator policy and a Anonymous policy in the 
> bitstream.
>
> So, how can i make possible for an item to be submitted with restricted 
> access (only admins can read the deposited pdf) ?
>
> I'm using JSPUI so i can't using the Configurable Workflows.
>

-- 
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/dspace-tech.
For more options, visit https://groups.google.com/d/optout.

Reply via email to