org.dspace.authorize.AuthorizeException: Authorization denied for action READ on BITSTREAM:3216 by user 0

Sakai JIRA | Ivan Masár | 2 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    When you reindex (index-discovery -b) and have missing files in assetstore of your bitstreams from the TEXT bundle (produced by filter-media), you'll get an error message that suggests it's an authorization problem. In fact, this is a missing file problem. The error message should be corrected. 2014-10-28 19:08:44,429 INFO org.dspace.discovery.SolrServiceImpl @ Wrote Item: 123456789/3129 to Index 2014-10-28 19:08:44,458 ERROR org.dspace.discovery.BitstreamContentStream @ Authorization denied for action READ on BITSTREAM:3216 by user 0 org.dspace.authorize.AuthorizeException: Authorization denied for action READ on BITSTREAM:3216 by user 0 at org.dspace.authorize.AuthorizeManager.authorizeAction(AuthorizeManager.java:181) at org.dspace.authorize.AuthorizeManager.authorizeAction(AuthorizeManager.java:100) at org.dspace.content.Bitstream.retrieve(Bitstream.java:581) at org.dspace.discovery.BitstreamContentStream.getStream(BitstreamContentStream.java:66) at org.apache.solr.client.solrj.impl.HttpSolrServer.request(HttpSolrServer.java:274) at org.apache.solr.client.solrj.impl.HttpSolrServer.request(HttpSolrServer.java:180) at org.apache.solr.client.solrj.request.AbstractUpdateRequest.process(AbstractUpdateRequest.java:117) at org.dspace.discovery.SolrServiceImpl.writeDocument(SolrServiceImpl.java:726) at org.dspace.discovery.SolrServiceImpl.buildDocument(SolrServiceImpl.java:1407) at org.dspace.discovery.SolrServiceImpl.indexContent(SolrServiceImpl.java:224) at org.dspace.discovery.SolrServiceImpl.updateIndex(SolrServiceImpl.java:396) at org.dspace.storage.rdbms.DatabaseUtils$ReindexerThread.run(DatabaseUtils.java:754)

    Sakai JIRA | 2 years ago | Ivan Masár
    org.dspace.authorize.AuthorizeException: Authorization denied for action READ on BITSTREAM:3216 by user 0
  2. 0

    When you reindex (index-discovery -b) and have missing files in assetstore of your bitstreams from the TEXT bundle (produced by filter-media), you'll get an error message that suggests it's an authorization problem. In fact, this is a missing file problem. The error message should be corrected. 2014-10-28 19:08:44,429 INFO org.dspace.discovery.SolrServiceImpl @ Wrote Item: 123456789/3129 to Index 2014-10-28 19:08:44,458 ERROR org.dspace.discovery.BitstreamContentStream @ Authorization denied for action READ on BITSTREAM:3216 by user 0 org.dspace.authorize.AuthorizeException: Authorization denied for action READ on BITSTREAM:3216 by user 0 at org.dspace.authorize.AuthorizeManager.authorizeAction(AuthorizeManager.java:181) at org.dspace.authorize.AuthorizeManager.authorizeAction(AuthorizeManager.java:100) at org.dspace.content.Bitstream.retrieve(Bitstream.java:581) at org.dspace.discovery.BitstreamContentStream.getStream(BitstreamContentStream.java:66) at org.apache.solr.client.solrj.impl.HttpSolrServer.request(HttpSolrServer.java:274) at org.apache.solr.client.solrj.impl.HttpSolrServer.request(HttpSolrServer.java:180) at org.apache.solr.client.solrj.request.AbstractUpdateRequest.process(AbstractUpdateRequest.java:117) at org.dspace.discovery.SolrServiceImpl.writeDocument(SolrServiceImpl.java:726) at org.dspace.discovery.SolrServiceImpl.buildDocument(SolrServiceImpl.java:1407) at org.dspace.discovery.SolrServiceImpl.indexContent(SolrServiceImpl.java:224) at org.dspace.discovery.SolrServiceImpl.updateIndex(SolrServiceImpl.java:396) at org.dspace.storage.rdbms.DatabaseUtils$ReindexerThread.run(DatabaseUtils.java:754)

    Sakai JIRA | 2 years ago | Ivan Masár
    org.dspace.authorize.AuthorizeException: Authorization denied for action READ on BITSTREAM:3216 by user 0
  3. 0

    {code:java} 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 = {code} reported by [~helix84]

    Sakai JIRA | 6 months ago | Luigi Andrea Pascarelli
    org.dspace.authorize.AuthorizeException: Authorization denied for action READ on BITSTREAM:188964 by user 0
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    I noticed many instances of this error in our dspace.log file while watching the re-index for our upgrade to DSpace 5.3 today: 2015-08-20 14:03:30,421 ERROR org.dspace.discovery.BitstreamContentStream @ Authorization denied for action READ on BITSTREAM:38256 by user 0 org.dspace.authorize.AuthorizeException: Authorization denied for action READ on BITSTREAM:38256 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:738) at org.dspace.discovery.SolrServiceImpl.buildDocument(SolrServiceImpl.java:1419) at org.dspace.discovery.SolrServiceImpl.indexContent(SolrServiceImpl.java:225) at org.dspace.discovery.SolrServiceImpl.updateIndex(SolrServiceImpl.java:405) at org.dspace.discovery.SolrServiceImpl.createIndex(SolrServiceImpl.java:365) I think we can probably catch this error and present a streamlined INFO line for the dspace.log file, something like: "SKIPPED Item 10355/123456789, not public, against policy to Index" This should be a simple thing to catch, and will help tame log file bloat. I am assigning this to me, but if you want to tackle it, I won't argue.

    Sakai JIRA | 2 years ago | Hardy Pottinger
    org.dspace.authorize.AuthorizeException: Authorization denied for action READ on BITSTREAM:38256 by user 0
  6. 0

    I noticed many instances of this error in our dspace.log file while watching the re-index for our upgrade to DSpace 5.3 today: 2015-08-20 14:03:30,421 ERROR org.dspace.discovery.BitstreamContentStream @ Authorization denied for action READ on BITSTREAM:38256 by user 0 org.dspace.authorize.AuthorizeException: Authorization denied for action READ on BITSTREAM:38256 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:738) at org.dspace.discovery.SolrServiceImpl.buildDocument(SolrServiceImpl.java:1419) at org.dspace.discovery.SolrServiceImpl.indexContent(SolrServiceImpl.java:225) at org.dspace.discovery.SolrServiceImpl.updateIndex(SolrServiceImpl.java:405) at org.dspace.discovery.SolrServiceImpl.createIndex(SolrServiceImpl.java:365) I think we can probably catch this error and present a streamlined INFO line for the dspace.log file, something like: "SKIPPED Item 10355/123456789, not public, against policy to Index" This should be a simple thing to catch, and will help tame log file bloat. I am assigning this to me, but if you want to tackle it, I won't argue.

    Sakai JIRA | 2 years ago | Hardy Pottinger
    org.dspace.authorize.AuthorizeException: Authorization denied for action READ on BITSTREAM:38256 by user 0

    Root Cause Analysis

    1. org.dspace.authorize.AuthorizeException

      Authorization denied for action READ on BITSTREAM:3216 by user 0

      at org.dspace.authorize.AuthorizeManager.authorizeAction()
    2. DSpace Kernel :: API and Implementation
      BitstreamContentStream.getStream
      1. org.dspace.authorize.AuthorizeManager.authorizeAction(AuthorizeManager.java:181)
      2. org.dspace.authorize.AuthorizeManager.authorizeAction(AuthorizeManager.java:100)
      3. org.dspace.content.Bitstream.retrieve(Bitstream.java:581)
      4. org.dspace.discovery.BitstreamContentStream.getStream(BitstreamContentStream.java:66)
      4 frames
    3. Apache Solr Solrj
      AbstractUpdateRequest.process
      1. org.apache.solr.client.solrj.impl.HttpSolrServer.request(HttpSolrServer.java:274)
      2. org.apache.solr.client.solrj.impl.HttpSolrServer.request(HttpSolrServer.java:180)
      3. org.apache.solr.client.solrj.request.AbstractUpdateRequest.process(AbstractUpdateRequest.java:117)
      3 frames
    4. DSpace Kernel :: API and Implementation
      DatabaseUtils$ReindexerThread.run
      1. org.dspace.discovery.SolrServiceImpl.writeDocument(SolrServiceImpl.java:726)
      2. org.dspace.discovery.SolrServiceImpl.buildDocument(SolrServiceImpl.java:1407)
      3. org.dspace.discovery.SolrServiceImpl.indexContent(SolrServiceImpl.java:224)
      4. org.dspace.discovery.SolrServiceImpl.updateIndex(SolrServiceImpl.java:396)
      5. org.dspace.storage.rdbms.DatabaseUtils$ReindexerThread.run(DatabaseUtils.java:754)
      5 frames