Hi,

There's a bug in current publishing APIs to external APIStores feature as
not copying API images to external APIStores via exposed API as mentioned
in 1].
To fix that we  need to do a HTTP multi-part POST request using
http-mime dependency[2]
of  with using apache http client mime jar with using the class
org.apache.http.entity.mime.MultipartEntity[3]
support.
To use that jar from our code,there's no osgi bundle available currently..I
have seen same jar has been used from automation framework as a third party
jar. Better approach would be create an osgi bundle wrapping the apache
httpmime jar,without referring it as a third-party jar.

Thought of adding this to orbit,as this will be useful commonly,when doing
http multipart requests with attachments.I locally added it and did try
building AM and did a smoke test.

Please raised any concerns if you have regarding the above change...

[1] https://wso2.org/jira/browse/APIMANAGER-1742
[2]  <dependency>
         <groupId>org.apache.httpcomponents</groupId>
          <artifactId>httpmime</artifactId>
          <version>4.2.5</version>

        </dependency>
[3]
http://hc.apache.org/httpcomponents-client-ga/httpmime/apidocs/org/apache/http/entity/mime/MultipartEntity.html

Thanks;

-- 
Lalaji Sureshika
WSO2, Inc.;  http://wso2.com/
email: [email protected]; cell: +94 71 608 6811
blog: http://lalajisureshika.blogspot.com
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to