Uploaded image for project: 'Facter'
  1. Facter
  2. FACT-1586

facter has FATAL failure on AIX when run as non-root user from non-readable directory

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Won't Fix
    • Affects Version/s: FACT 3.4.2
    • Fix Version/s: None
    • Component/s: None
    • Labels:
    • Template:
    • Acceptance Criteria:
      Hide

      Don't die if we don't have permission on the current working directory when facter is started.

      Show
      Don't die if we don't have permission on the current working directory when facter is started.
    • Team:
      Platform OS
    • QA Risk Assessment:
      No Action
    • QA Risk Assessment Reason:
      A test for this problem is already being added

      Description

      I was creating a test that verifies that we can collect facts from a non-root users home directory in the supported locations.

      tests/external_facts/non_root_users_default_external_fact_directory.rb

      On AIX the test is failing because facter gets a FATAL error.

      pe-aix-61-acceptance.delivery.puppetlabs.net (aix61-POWER-1) 14:03:54$ su nonroot -c "/opt/puppetlabs/bin/facter test"
      shell-init: error retrieving current directory: getcwd: cannot access parent directories: The file access permissions do not allow the specified action.
      2017-03-09 14:03:54.560821 FATAL puppetlabs.facter - unhandled exception: boost::filesystem::current_path: Permission denied

      We should handle this

        Attachments

          Activity

            jsd-sla-details-panel

              People

              • Assignee:
                Unassigned
                Reporter:
                eric.delaney Eric Delaney
                QA Contact:
                Eric Delaney
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: