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

some jtreg tests fail with permission denied

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      b04
    • CPU:
      generic
    • OS:
      generic, linux

      Backports

        Description

        Some jtreg tests copy files and directoies from source directory to current directory.
        Of course they doesn't do anythig with permissions. So we could have read only files in our work directory. If test re-write these files or create new files in these copied directories
        it fails with permission denied.
        I suppose that if anyone tries to run tests with jtreg from /java/re/jdk/8/promoted/latest/ws/jdk/test/... it should get same failures.

        There are several ways to fix this CR.
        1) update all tests to use umask (or set permissions after cp)
        2) update jtreg to use umask
        3) always copy tests before execution and make files writable


        I suppose it is the reason of 7110223.
        The list of tests (from 7146361):
        closed/java/net/URLClassLoader/ResExists.java
        java/lang/ClassLoader/Assert.java
        java/rmi/registry/readTest/readTest.sh
        java/util/zip/ZipFile/ReadZip.java
        sun/net/www/protocol/jar/jarbug/run.sh
        tools/javac/ClassPathTest/ClassPathTest.sh

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                robm Robert Mckenna
                Reporter:
                lmesnik Leonid Mesnik
                Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: