Uploaded image for project: 'Apache Jena'
  1. Apache Jena
  2. JENA-2109

Migrate Permissions to V4 and implement a soft read error

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • Jena 4.0.0
    • Jena 4.1.0
    • Security
    • None

    Description

      JENA-2055 uncovered a difficult to process issue.

      When permissions to read an object were not granted the system simply threw an ReadDeniedException however, in some cases the desired result is to return an empty iterator.  For example if a secured graph is part of a union graph and the user does not have full permissions on the secured graph the query will abort when the first graph access is denied.

      The desired effect is to return

      • An empty iterator in cases where an iterator is returned.
      • False in cases where an existential flag is being checked.
      • 0 (zero) when a count is being returned.

       

      This change also brings the Permissions package into version 4.  Prior to this change it had not been migrated.

      Attachments

        Issue Links

          Activity

            People

              claude Claude Warren
              claude Claude Warren
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: