Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ShortcutFile does not create on missing cache directory #931

Open
klaus-bothner-ldbv opened this issue Jan 24, 2024 · 0 comments
Open

ShortcutFile does not create on missing cache directory #931

klaus-bothner-ldbv opened this issue Jan 24, 2024 · 0 comments

Comments

@klaus-bothner-ldbv
Copy link

ShortcutFile should go to C:\Users\<username>\.cache\icedtea-web\cache in my case, but it doesn't.

if (!shortcutFile.exists() && !shortcutFile.createNewFile()) {

Throws an exception "could not find the path specified".
Reason is that the path does only exist up to the icedtea-web directory. Cache directory hasn't been created yet.
This happens on a fresh OWS installation and opening a jnlp and it's linked resources from a samba network share on Windows. Paths inside the jnlp are codebase="file://\\\\host/with/path/to/share/" for example. OWS iterprets this as a "local path" and does not cache anything. Consequently the last level from the cache directory haven't been created yet.

Cache directory should be checked if exist before trying to create shortcutFile.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant