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

DatabaseUtils should turn off the authz system

    Details

    • Attachments:
      0
    • Comments:
      3
    • Documentation Status:
      Not Required

      Description

      After upgrading another repository to 5.6, in the automatically launched reindex, I see 1) again for items restricted to a group:
      
      2016-09-30 12:53:44,039 INFO org.dspace.discovery.SolrServiceImpl @ Wrote Item: 123456789/29444 to Index
      2016-09-30 12:53:44,069 ERROR org.dspace.discovery.BitstreamContentStream @ Authorization denied for action READ on BITSTREAM:188964 by user 0
      org.dspace.authorize.AuthorizeException: Authorization denied for action READ on BITSTREAM:188964 by user 0
      at org.dspace.authorize.AuthorizeManager.authorizeAction(AuthorizeManager.java:182)
      at org.dspace.authorize.AuthorizeManager.authorizeAction(AuthorizeManager.java:101)
      at org.dspace.content.Bitstream.retrieve(Bitstream.java:586)
      at org.dspace.discovery.BitstreamContentStream.getStream(BitstreamContentStream.java:66)
      at org.apache.solr.client.solrj.impl.HttpSolrServer.createMethod(HttpSolrServer.java:356)
      at org.apache.solr.client.solrj.impl.HttpSolrServer.request(HttpSolrServer.java:210)
      at org.apache.solr.client.solrj.impl.HttpSolrServer.request(HttpSolrServer.java:206)
      at org.apache.solr.client.solrj.request.AbstractUpdateRequest.process(AbstractUpdateRequest.java:124)
      at org.dspace.discovery.SolrServiceImpl.writeDocument(SolrServiceImpl.java:748)
      at org.dspace.discovery.SolrServiceImpl.buildDocument(SolrServiceImpl.java:1429)
      at org.dspace.discovery.SolrServiceImpl.indexContent(SolrServiceImpl.java:230)
      at org.dspace.discovery.SolrServiceImpl.updateIndex(SolrServiceImpl.java:410)
      at org.dspace.discovery.SolrServiceImpl.createIndex(SolrServiceImpl.java:370)
      at org.dspace.storage.rdbms.DatabaseUtils$ReindexerThread.run(DatabaseUtils.java:1079)
      2016-09-30 12:53:44,323 INFO org.dspace.discovery.SolrServiceImpl @ Wrote Item: 123456789/29457 to Index
      
      Request copy is commented out in this repo:
      #request.item.type =
      

      reported by Ivan Masár

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                l_a_p Luigi Andrea Pascarelli
                Reporter:
                l_a_p Luigi Andrea Pascarelli
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: