JackrayWang commented on issue #14472: URL: https://github.com/apache/pulsar/issues/14472#issuecomment-1054959262
@eolivelli I think the question is caused by` final @ formdataparam ("file") InputStream uploadedinputstream` ` @Consumes(MediaType.MULTIPART_FORM_DATA) public void upload( final @PathParam("type") String type, final @PathParam("tenant") String tenant, final @PathParam("namespace") String namespace, final @PathParam("packageName") String packageName, final @PathParam("version") String version, final @FormDataParam("metadata") PackageMetadata packageMetadata, final @FormDataParam("file") InputStream uploadedInputStream, @Suspended AsyncResponse asyncResponse) { if (packageMetadata != null) { packageMetadata.setCreateTime(System.currentTimeMillis()); packageMetadata.setModificationTime(System.currentTimeMillis()); internalUpload(type, tenant, namespace, packageName, version, packageMetadata, uploadedInputStream, asyncResponse); } else { asyncResponse.resume(new RestException(Response.Status.BAD_REQUEST, "Unknown error, metadata is " + "null when processing update package metadata request")); } }` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@pulsar.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org