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

NPE thrown during Harvest of non-items when visibility restriction is enabled

    XMLWordPrintable

    Details

    • Attachments:
      1
    • Comments:
      1

      Description

      When the visibility restriction is enabled (e.g. harvest.includerestricted.oai = false) a null pointer exception is thrown when items are harvested, but the 'item' is not set as part of the harvest.

      This occurs when ListIdentifiers is being run via OAI-PMH as the item need not be set, only the information (id) about the item is needed. The code tries to see if the item has ANON READ permissions, but the item is not set, resulting in an NPE.

      Patch attached.

        Attachments

          Activity

            People

            • Assignee:
              stuartlewis Stuart Lewis
              Reporter:
              stuartlewis Stuart Lewis
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: