[
https://issues.apache.org/jira/browse/CAMEL-22879?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Claus Ibsen updated CAMEL-22879:
--------------------------------
Component/s: camel-jbang
(was: camell-jb)
> camel-jbang - Make camel-jbang more roboust when running in cloud with weird
> USER_HOME
> --------------------------------------------------------------------------------------
>
> Key: CAMEL-22879
> URL: https://issues.apache.org/jira/browse/CAMEL-22879
> Project: Camel
> Issue Type: Improvement
> Components: camel-jbang
> Reporter: Claus Ibsen
> Priority: Minor
> Fix For: 4.18.0
>
>
> It seems that resolving USER_HOME can return a "?" as the path or something
> that is not valid, and you get exceptions
> {code:java}
> Caused by: java.nio.file.NoSuchFileException: ?/.camel-jbang-plugins.json
> at
> java.base/sun.nio.fs.UnixException.translateToIOException(UnixException.java:92)
> at
> java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:106)
> at
> java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:111)
> at
> java.base/sun.nio.fs.UnixFileSystemProvider.newByteChannel(UnixFileSystemProvider.java:218)
> at
> java.base/java.nio.file.spi.FileSystemProvider.newOutputStream(FileSystemProvider.java:484)
> at java.base/java.nio.file.Files.newOutputStream(Files.java:228)
> at java.base/java.nio.file.Files.write(Files.java:3512)
> at java.base/java.nio.file.Files.writeString(Files.java:3734)
> at java.base/java.nio.file.Files.writeString(Files.java:3674)
> at
> org.apache.camel.dsl.jbang.core.common.PluginHelper.createPluginConfig(PluginHelper.java:245)
> ... 17 more {code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)