You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I should be able to programmatically create Objects, with arbitrary names including special characters like "|"
Actual Behaviour
Produces this error:
java.lang.IllegalArgumentException: Illegal character in path at index 89: https://objectstorage.us-phoenix-1.oraclecloud.com/n/mynamespace/b/mybucket/o/path%2Fwith|pipe
at java.base/java.net.URI.create(URI.java:932)
at io.micronaut.oraclecloud.httpclient.netty.NettyHttpRequest.uri(NettyHttpRequest.java:205)
at com.oracle.bmc.http.internal.ClientCall.buildServiceDetails(ClientCall.java:173)
at com.oracle.bmc.http.internal.ClientCall.callSync(ClientCall.java:1129)
at com.oracle.bmc.objectstorage.ObjectStorageClient.getObject(ObjectStorageClient.java:1018)
at ddifranc.ObjectStoreNameTest.testGet(ObjectStoreNameTest.java:25)
at java.base/java.lang.reflect.Method.invoke(Method.java:580)
at io.micronaut.test.extensions.junit5.MicronautJunit5Extension$2.proceed(MicronautJunit5Extension.java:142)
at io.micronaut.test.extensions.AbstractMicronautExtension.interceptEach(AbstractMicronautExtension.java:162)
at io.micronaut.test.extensions.AbstractMicronautExtension.interceptTest(AbstractMicronautExtension.java:119)
at io.micronaut.test.extensions.junit5.MicronautJunit5Extension.interceptTestMethod(MicronautJunit5Extension.java:129)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1596)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1596)
Caused by: java.net.URISyntaxException: Illegal character in path at index 89: https://objectstorage.us-phoenix-1.oraclecloud.com/n/mynamespace/b/mybucket/o/path%2Fwith|pipe
at java.base/java.net.URI$Parser.fail(URI.java:2995)
at java.base/java.net.URI$Parser.checkChars(URI.java:3166)
at java.base/java.net.URI$Parser.parseHierarchical(URI.java:3248)
at java.base/java.net.URI$Parser.parse(URI.java:3196)
at java.base/java.net.URI.(URI.java:645)
at java.base/java.net.URI.create(URI.java:930)
... 12 more
working configuration (in which OCI SDK uses JerseyHttpRequest rather than netty):
io.micronaut:micronaut-core:jar:3.9.4
com.oracle.oci.sdk:oci-java-sdk-objectstorage:jar:2.71.1
Expected Behavior
I should be able to programmatically create Objects, with arbitrary names including special characters like "|"
Actual Behaviour
Produces this error:
Steps To Reproduce
//see example application for full test
Environment Information
MacOS
Java 17
Non-working configuration:
io.micronaut:micronaut-core:jar:4.6.6
io.micronaut.oraclecloud:micronaut-oraclecloud-bmc-objectstorage:jar:4.2.1
com.oracle.oci.sdk:oci-java-sdk-objectstorage:jar:3.47.0
working configuration (in which OCI SDK uses JerseyHttpRequest rather than netty):
io.micronaut:micronaut-core:jar:3.9.4
com.oracle.oci.sdk:oci-java-sdk-objectstorage:jar:2.71.1
Example Application
https://github.com/ddifranc/micronaut-objectstore-illegal-names
Version
4.6.6
The text was updated successfully, but these errors were encountered: