Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6760147

java programs are not usable when current directory is unknown

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Duplicate
    • Affects Version/s: solaris
    • Fix Version/s: None
    • Component/s: tools
    • Labels:
    • Subcomponent:
    • CPU:
      generic
    • OS:
      generic

      Description

      In SST we hit the following java usability problem (present in both s10 and nevada):

      CR 4698332 (closed as not a defect) describes the following java problem when current
      dirrectory can't be retrieved, for java itself it might not be a defect but it affects all programs build on java.

      Example of directories when this occurs:
      - on nfs mounts as different user
      - /home might not be readable to avoid listings, but you have full access to /home/yourself

      See an example:
      $ mkdir -p a/b
      $ chmod 300 a
      $ cd a/b
      $ pntadm
      Error occurred during initialization of VM
      java.lang.Error: Properties init: Could not determine current working directory.
      $ dhtadm
      Error occurred during initialization of VM
      java.lang.Error: Properties init: Could not determine current working directory.
      $ dhcpconfig
      Error occurred during initialization of VM
      java.lang.Error: Properties init: Could not determine current working directory.
      ...

      None of the java programs will work in the directory above although you have full access to files.

      Another situation:
      cat file1 | some_java_program > file2
      may not work depending on your current directory.

      I see this as a usability problem. The programs generally shouldn't stop for reasons which are not in any sense connected to their functionality.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                ksrini Kumar Srinivasan
                Reporter:
                jkoutny Jan Koutný (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: