Thanks, Brendow and Andrea. I'll test this procedure.
Grazie mille Ricardo Em quinta-feira, 19 de outubro de 2017 05:45:23 UTC-2, Bollini Andrea escreveu: > > Hi Brendow, > you don't need to customize the software to achieve that. > You should restrict the access to the bitstreams, using the resource > policies, to a group, say "Registered Users". > To do that: > - you need to use the advanced policies manager to bulk replace the policy > on all the existent bitstreams, see > http://demo.dspace.org/jspui/tools/authorize > - you should configure all the collections to have a > default_bitstream_read policy for the group "Registered Users" instead than > Anonymous. In this way new submission will automatically see their > bitstream restricted > > https://wiki.duraspace.org/display/DSDOC5x/Functional+Overview#FunctionalOverview-Authorization > - you should configure the authentication to assign the loggedin users to > the group "Registered Users" automatically, see > > https://github.com/DSpace/DSpace/blob/dspace-5.8/dspace/config/modules/authentication-password.cfg#L25 > I recommend that you test these steps on a dev environment before to run > it in production (especially the #1 that will be hard/impossible to > reverse). > Andrea > > Il 19/10/2017 02:42, Brendow Adriel ha scritto: > > You tried alter the web.xml to redirect the users to login page when they > access the metadata or bitstreams? > > Em quarta-feira, 18 de outubro de 2017 18:20:26 UTC-2, Ricardo Campos > escreveu: >> >> Hi. >> >> I've got a demand on DSpace 5.6. JSPUI: to make login mandatory. This >> means that a user must have an account in the repository in order to >> donwload or view content. She or he can see items metadata but, as said, >> cannot access related files. >> >> I made somes changes in ItemTag.java so now the unlogged user will see a >> message like: >> >> >> <https://urlsand.esvalabs.com/?u=https%3A%2F%2Flh3.googleusercontent.com%2F-N_WCicMPC7c%2FWeevVZmDaBI%2FAAAAAAAAAqk%2FlN5O8XDu8-gW_UXcsHu7RIe64opEj5XGgCLcBGAs%2Fs1600%2Frestricao.JPG&e=8ef37f15&h=fc762592&f=n&p=y> >> >> The red message says that the user must log in and if she is not yet a >> user she can sign in clicking the blue link. >> >> Everything works fine but in one simple situation: >> >> 1. The user goes into an item page and sees the red message >> 2. The user logs in and go to the page, again >> [now the problem] >> 3. The user sees the old page with the red message >> >> If the user is not naïve, she will click to reload the page and the >> problem is gone. >> >> Unfortunatelly, most users see this as an error (and indeed it is) and >> send messages asking for help. >> >> It seems the problem is related to caching the pages and I tried to >> insert <meta> tags in the head of the item page but it didn't solve the >> problem. >> >> As I said I have a DSpace 5.6, JSPUI, running in a Ubuntu 14.04 box with >> Tomcat 7. >> >> Any help is welcome. >> >> Thanks. >> >> Ricardo >> >> -- > 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...@googlegroups.com <javascript:>. > To post to this group, send email to dspac...@googlegroups.com > <javascript:>. > Visit this group at https://groups.google.com/group/dspace-tech > <https://urlsand.esvalabs.com/?u=https%3A%2F%2Fgroups.google.com%2Fgroup%2Fdspace-tech&e=8ef37f15&h=f69ab701&f=n&p=y> > . > For more options, visit https://groups.google.com/d/optout > <https://urlsand.esvalabs.com/?u=https%3A%2F%2Fgroups.google.com%2Fd%2Foptout&e=8ef37f15&h=9ae39a8b&f=n&p=y> > . > > > -- > Questo messaggio e' stato analizzato con Libra ESVA ed e' risultato non > infetto. > Clicca qui per segnalarlo come spam. > <http://esva1.business-e.it/cgi-bin/learn-msg.cgi?id=31AEE400D6.A8384> > > > -- > Andrea Bollini > Chief Technology and Innovation Officer > > 4Science, www.4science.it > office: Via Edoardo D'Onofrio 304, 00155 Roma, Italy > mobile: +39 333 934 1808 > skype: a.bollini > linkedin: andreabollini > orcid: 0000-0002-9029-1854 > > an Itway Group Company > Italy, France, Spain, Portugal, Greece, Turkey, Lebanon, Qatar, U.A.Emirates > > -- > This message has been checked by Libra ESVA and is believed to be clean. > -- 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 post to this group, send email to dspace-tech@googlegroups.com. Visit this group at https://groups.google.com/group/dspace-tech. For more options, visit https://groups.google.com/d/optout.