Open asqhaqs opened 8 years ago
I'm using openstack 2.20, and identity v3:
client = OSFactory.builderV3()
.endpoint(endpoint)
.credentials(username, password)
.scopeToProject(projectId, domainId)
.authenticate();
I can't copy either, I'm getting the same warnings:
ago 02, 2016 3:42:37 PM org.glassfish.jersey.client.JerseyInvocation validateHttpMethodAndEntity
WARNING: Entity must not be null for http method PUT.
ago 02, 2016 3:42:37 PM org.glassfish.jersey.client.HttpUrlConnector setOutboundHeaders
WARNING: Attempt to send restricted header(s) while the [sun.net.http.allowRestrictedHeaders] system property not set. Header(s) will possibly be ignored.
I'm trying to copy an image inside the same container.
By the way, this issue reports the same problem
the code is as follow: OSClient os = OSFactory.builder().endpoint("http://ip:port/v2.0").credentials("admin", "password") .tenantName("admin").authenticate(); ObjectLocation ol1 = ObjectLocation.create(containerName, copyFile); ObjectLocation ol2 = ObjectLocation.create(containerName, copyFile + "sdf"); os.objectStorage().objects().copy(ol1, ol2);
Error Message:
org.glassfish.jersey.client.JerseyInvocation validateHttpMethodAndEntity
Entity must not be null for http method PUT.
org.glassfish.jersey.client.HttpUrlConnector setOutboundHeaders
Attempt to send restricted header(s) while the [sun.net.http.allowRestrictedHeaders] system property not set. Header(s) will possibly be ignored.
plus: the openstack4j version is 2.0.9 and openstack version is liberty