Hi Andrei and Bhavesh,
Its possible that you might be encountering a bug we've recently discovered
in Discovery, when using IP Authentication. The bug is that the IP address
of the user would match some group that either has or doesn't have
permission to view the objects, however, since the visitor to your website
hasn't logged in as an eperson, Discovery forgets to check their "special
groups", such as IP Authentication groups, so instead they end up not
matching your IP auth, and probably see nothing.
Take a look at this Pull Request
https://github.com/DSpace/DSpace/pull/632
And associated JIRA ticket: https://jira.duraspace.org/browse/DS-2138
________________
Peter Dietz
Longsight
www.longsight.com
[email protected]
p: 740-599-5005 x809
On Tue, Sep 9, 2014 at 5:23 AM, Andrei V. Toutoukine <[email protected]> wrote:
> Hi, All,
> 09.09.2014 11:35, helix84 пишет:
>
>> Always state your DSpace version as described in the link on the bottom.
>>
>>
> I have a similar problem too. DSpace 4.2.
>
> Given: DSpace community "Com" has a collection "Coll", that has 4 items.
> Problem: revoke read access from anybody but those in IP 127.0.0.1.
>
> Solution (that does not work)
> 1. Create DSPace group named "IVGPU_LAN"
> 2. Revoke Read access by Anonymous from items and bitstreams in Coll
> (using Advanced Policy Manager)
> 3. Add Read access by the group "IVGPU_LAN" to items and bitstreams in Coll
> 4. Edit authentication.cfg and authentication-ip.cfg:
>
> --- authentication.cfg:
> plugin.sequence.org.dspace.authenticate.AuthenticationMethod = \
> org.dspace.authenticate.PasswordAuthentication, \
> org.dspace.authenticate.IPAuthentication
>
> --- authentication-ip.cfg:
> ip.IVGPU_LAN=192.168, 127.0.0.1
>
> 5. restat tomcat.
>
> It seems that authentication works since dspace.log says:
>
> 2014-09-09 12:15:16,750 DEBUG org.dspace.storage.rdbms.DatabaseManager @
> Running query "select * from epersongroup where name = ? " with parameters:
> IVGPU_LAN
>
> 2014-09-09 12:15:17,125 DEBUG org.dspace.authenticate.IPAuthentication @
> anonymous:session_id=07075ADE116E1AF56519397BD61821
> ED:authenticated:special_groups=4
>
> 2014-09-09 12:15:17,125 DEBUG org.dspace.app.xmlui.utils.ContextUtil @
> Adding Special Group id=4
>
> However I can't see any items. What's the problem?
>
> The log file is attached along with configs and the policies, as they
> appear in xmlui policy lists.
>
>
> ------------------------------------------------------------------------------
> Want excitement?
> Manually upgrade your production database.
> When you want reliability, choose Perforce.
> Perforce version control. Predictably reliable.
>
> http://pubads.g.doubleclick.net/gampad/clk?id=157508191&iu=/4140/ostg.clktrk
> _______________________________________________
> DSpace-tech mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/dspace-tech
> List Etiquette:
> https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
>
------------------------------------------------------------------------------
Want excitement?
Manually upgrade your production database.
When you want reliability, choose Perforce.
Perforce version control. Predictably reliable.
http://pubads.g.doubleclick.net/gampad/clk?id=157508191&iu=/4140/ostg.clktrk
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette