Uploaded image for project: 'DSpace'
  1. DSpace
  2. DS-2657

Statistics display is denied

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: More Details Needed (View Workflow)
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 5.2
    • Fix Version/s: None
    • Component/s: JSPUI, Statistics
    • Labels:
      None
    • Attachments:
      0
    • Comments:
      1

      Description

      I have configured DSpace to allow anonymous to view statistics. But this does not work correctly. Anytime an unauthenticated user clicks on the statistics icon, he is forced to login. Even if he does so, viewing the statistics obviously is only possible for administrators.

      It happens on JSPUI, I haven't tried it under XMLUI yet.

      This is what is logged in debug mode in dspace.log:
      2015-07-15 16:14:38,309 DEBUG org.dspace.authenticate.IPAuthentication @ anonymous::authenticated:special_groups=4,5
      2015-07-15 16:14:38,309 DEBUG org.dspace.app.webui.util.UIUtil @ Adding Special Group id=4
      2015-07-15 16:14:38,309 DEBUG org.dspace.app.webui.util.UIUtil @ Adding Special Group id=5
      2015-07-15 16:14:38,309 DEBUG org.dspace.app.webui.servlet.DSpaceServlet @ anonymous:session_id=xxx:ip_addr=134.28.x.y:http_request:-- URL Was\colon; https\colon;//dspace.tub.tuhh.de/handle/11420/1248/statistics
      – Method\colon; GET
      – Parameters were\colon;

      2015-07-15 16:14:38,309 DEBUG org.dspace.storage.rdbms.DatabaseManager @ Running query "select * from handle where handle = ? " with parameters: 11420/1248
      2015-07-15 16:14:38,310 DEBUG org.dspace.storage.rdbms.DatabaseManager @ Running query "select * from item where item_id = ? " with parameters: 1279
      2015-07-15 16:14:38,311 DEBUG org.dspace.content.Item @ anonymous:session_id=xxx:ip_addr=134.28.x.y:find_item:item_id=1279
      2015-07-15 16:14:38,311 DEBUG org.dspace.storage.rdbms.DatabaseManager @ Running query "SELECT * FROM Handle WHERE resource_type_id = ? AND resource_id = ?" with parameters: 2,1279
      2015-07-15 16:14:38,311 DEBUG org.dspace.handle.HandleManager @ Resolved handle 11420/1248 to item 1279
      2015-07-15 16:14:38,311 INFO org.dspace.app.webui.servlet.HandleServlet @ anonymous:session_id=xxx:ip_addr=134.28.x.y:display_statistics:handle=11420/1248, path=/statistics
      2015-07-15 16:14:38,312 DEBUG org.dspace.app.webui.servlet.DSpaceServlet @ anonymous:session_id=xxx:ip_addr=134.28.x.y:http_request:-- URL Was\colon; https\colon;//dspace.tub.tuhh.de/handle/11420/1248/statistics
      – Method\colon; GET
      – Parameters were\colon;

      2015-07-15 16:14:38,312 DEBUG org.dspace.storage.rdbms.DatabaseManager @ Running query "select * from epersongroup where eperson_group_id = ? " with parameters: 4
      2015-07-15 16:14:38,312 DEBUG org.dspace.storage.rdbms.DatabaseManager @ Running query "select * from epersongroup where eperson_group_id = ? " with parameters: 5
      2015-07-15 16:14:38,313 DEBUG org.dspace.storage.rdbms.DatabaseManager @ Running query "SELECT * FROM group2groupcache WHERE child_id= ? OR child_id= ? OR child_id= ? " with parameters: 0,4,5
      2015-07-15 16:14:38,314 DEBUG org.dspace.app.webui.util.JSPManager @ anonymous:session_id=xxx:ip_addr=134.28.x.y:view_jsp:/login/chooser.jsp

      So it looks like the table group2groupcache has no information about me as a member of anonymous being allowed to view the statistics...

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            olli_gold Oliver Goldschmidt
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated: