Hi Jose, helix84 is correct, that logic is found in the BitstreamReader class: dspace-xmlui-api/src/main/java/org/dspace/app/xmlui/cocoon/BitstreamReader.java
Specifically, take a look at line 268: https://fisheye3.atlassian.com/browse/dspace/dspace/trunk/dspace-xmlui/dspace-xmlui-api/src/main/java/org/dspace/app/xmlui/cocoon/BitstreamReader.java?hb=true#to268 You'll notice on that line, it checks whether a user is authorized to access the bitstream. If they are not authorized & they have already logged in, then they are redirected to /login . This logic is on lines 295-309: https://fisheye3.atlassian.com/browse/dspace/dspace/trunk/dspace-xmlui/dspace-xmlui-api/src/main/java/org/dspace/app/xmlui/cocoon/BitstreamReader.java?hb=true#to295 - Tim On 4/4/2012 9:32 AM, Blanco, Jose wrote: > I'm not sure this is the right place. Wouldn't the user already have been > denied access to read the bitstream and asked to authenticate by the time he > gets here. I'm looking for the code that makes the user authenticate ( > "redirects him the the /login page ) so that he can then view the bitstream > after authenticating. > > -Jose > > -----Original Message----- > From: helix84 [mailto:[email protected]] > Sent: Wednesday, April 04, 2012 10:22 AM > To: Blanco, Jose > Cc: [email protected] > Subject: Re: [Dspace-tech] authorization question. > > Hi Jose, > > perhaps this is what you're looking for: > > dspace-xmlui-api/src/main/java/org/dspace/app/xmlui/cocoon/BitstreamReader.java > > Regards, > ~~helix84 > > ------------------------------------------------------------------------------ > Better than sec? Nothing is better than sec when it comes to monitoring Big > Data applications. Try Boundary one-second resolution app monitoring today. > Free. > http://p.sf.net/sfu/Boundary-dev2dev > _______________________________________________ > DSpace-tech mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/dspace-tech > > ------------------------------------------------------------------------------ > Better than sec? Nothing is better than sec when it comes to > monitoring Big Data applications. Try Boundary one-second > resolution app monitoring today. Free. > http://p.sf.net/sfu/Boundary-dev2dev > _______________________________________________ > DSpace-tech mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/dspace-tech ------------------------------------------------------------------------------ Better than sec? Nothing is better than sec when it comes to monitoring Big Data applications. Try Boundary one-second resolution app monitoring today. Free. http://p.sf.net/sfu/Boundary-dev2dev _______________________________________________ DSpace-tech mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/dspace-tech

