Skip to content
The Jenkins Controller is preparing for shutdown. No new builds can be started.
Success

Changes

Summary

  1. Fix regresseion of commit 04391a3f417e10e1b6dafbd8becc63659af633c3 (details)
  2. Fix TempJarCache's Multi-User Bug (Reported by Martin Hegedus) (details)
Commit 9596ef22ae2e8ed0622697afdd3e7a1a1c2934ec by Sven Gothel
Fix regresseion of commit 04391a3f417e10e1b6dafbd8becc63659af633c3 (forced pending '/' to filename)
The file was modified src/java/com/jogamp/common/util/IOUtil.java (diff)
Commit 1cdbadd0d2ad5509d970bed2fc388327ec2c4521 by Sven Gothel
Fix TempJarCache's Multi-User Bug (Reported by Martin Hegedus)

It turns out that Java's File mkdir() only makes the directory writable for the current user,
I have missed this fact. Great catch.

1. Fix TempJarCache.isInitialized(): Return false if not successfully initialized.

It merely returned if it has passed 'initSingleton()' and ignored the staticInitError.

2. Fix TempFileCache pattern of determining the temp base directory

We cannot just use a static directory name, due to the multi user environment
and user write permissions on File.mkdir().

IOUtil has a new 'getTempDir(..)' methods, which iterates through integers [000000-999999]
until a writeable directory could be found or created.

TempFileCache initializes this temp base dir in the static block ensuring
the value is final for the JVM / ClassLoader.

Updated comments/docs in TempFileCache.
The file was modified src/java/com/jogamp/common/util/cache/TempJarCache.java (diff)
The file was modified src/java/com/jogamp/common/util/IOUtil.java (diff)
The file was modified src/java/com/jogamp/common/util/cache/TempFileCache.java (diff)