Uploaded image for project: 'HPCC'
  1. HPCC
  2. HPCC-16105

Fileservices checkExternalFileRights() incorrect check of permissions

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 6.2.0
    • Component/s: Plugins
    • Labels:

      Description

      In fileservices.cpp, method checkExternalFileRights accepts 2 flags indicating it should test for read, and one for write. The "if" statement presumes that only one of these can be true

      if (needWritePerms)
      checkWritePerms
      else if (needReadPerms)
      checkReadPerms

      However this method is called with "true, true" therefore the checkReadPerms is never tested. I believe the "else" clause should be removed

        Attachments

          Activity

            People

            • Assignee:
              russwhitehead Russ Whitehead
              Reporter:
              russwhitehead Russ Whitehead
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: