[Dev] Review and merge PR for reading conf folder path by carbon

2018-03-13 Thread Lasantha Dharmakeerthi
Hi all,

Spark Analytics Executor read the conf folder path as following way. Since
IoT server has changed the folder structure it is causing an issue.

carbonConfDir = carbonHome + File.separator + "repository" + File.separator
+ "conf";

Therefore I think the correct way is to get the path as following way.

carbonConfDir = CarbonUtils.getCarbonConfigDirPath();

I have fixed it in the following PR and please review and merge.
https://github.com/wso2/carbon-analytics/pull/1185

Thank You and Best Regards,
Lasantha.

-- 
*Dharmakeerthi Lasantha*
Software Engineer - WSO2

Email - lasant...@wso2.com
Mobile - +94774928852
Web - http://wso2.com/
http://wso2.com/signature
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Architecture] [VOTE] Release WSO2 IoT Server 3.2.0 RC4

2018-03-03 Thread Lasantha Dharmakeerthi
Hi All,

I have tested following functionalities:

   1. Configured the server with the IP using the IP changing script
   2. Installed the iOS feature on the server
   3. Tenant Creation
   4. Tested iOS and Android functionalities for the super tenant and the
   tenant domain.

*iOS *

   - Enrolled a device
   - Unregister a device
   - Tested operations (Device Lock, Ring, Notification, Location,
   Applications)
   - Enforced restriction policies and revoked

 *Android*

   - Enrolled a device (BYOD)
   - Unregister a device
   - Tested operations (Device Lock, Ring, Notification, Location,
   Applications)
   - Enforced restriction policies and revoked
   - Remote Control Feature

 5. Device Locations mapping feature

 6. App Manager

   - iOS and Android App publishing
   - iOS and Android App Deletion


*[+] Stable - Go ahead and release*

Thank You  and Best Regards,
Lasantha

On Sat, Mar 3, 2018 at 9:55 PM, Madawa Soysa  wrote:

> Hi All,
>
> I have tested the following,
>
>- Configure a distributed setup with Manager, Worker and Key Manager
>nodes in EC2 Instances.
>- Setup the servers against MySQL 5.6 with a shared registry.
>- API Publishing from worker nodes
>- Android Enrollment in BYOD mode.
>- Android Operations (RING, LOCATION, NOTIFICATION, CLEAR PASSCODE)
>- Unregister through the android agent.
>
> [+] Stable - Go ahead and release
>
> Best Regards,
> Madawa
>
> On Sat, Mar 3, 2018 at 9:25 PM, Madhawa Perera  wrote:
>
>> Hi,
>>
>> I have tested following functionalities:
>>
>>- Configured the server with the IP using change-ip.sh script
>>- Installed ios feature on the server
>>- Enrolled an iOS device using the admin user
>>- Tested operations, DEVICE_LOCK, RING, CLEAR_PASSCODE, NOTIFICATION
>>and WIPE_DATA
>>- Enforced restriction policies and revoked
>>
>> [+] Stable - Go ahead and release
>>
>> Thank you
>> Best Regards,
>> Madhawa
>>
>>
>>
>>
>>
>>
>> On Sat, Mar 3, 2018 at 7:46 PM, Milan Perera  wrote:
>>
>>> Hi all,
>>>
>>> I have tested the data archival feature in MySQL 5.5, 5.6, and 5.7.
>>>
>>> [+] Stable - Go ahead and release
>>>
>>> Regards,
>>>
>>>
>>> On Fri, Mar 2, 2018 at 7:22 PM, Shavindri Dissanayake <
>>> shavin...@wso2.com> wrote:
>>>
 Hi,

 - Enrolled the virtual fire-alarm and sent a ring operation.
 - Enrolled the AVD and sent a ring operation.
 - Applied policies on a device and revoked a policy successfully.
 - Tested the remote control screen view
 - Grouped devices.

 [+] Stable - Go ahead and release


 Thanks & Regards
 Shavindri Dissanayake
 Senior Technical Writer

 WSO2 Inc.
 lean.enterprise.middleware

 On Fri, Mar 2, 2018 at 5:39 PM, Sumedha Rubasinghe 
 wrote:

> Installed on a remote machine against MySQL 5.5.
> Tested
> -Device type API
> -Message broker functionality
> -stream processing
>
>
> [+] Stable - Go ahead and release
>
> On Mar 2, 2018 3:02 AM, "Rasika Perera"  wrote:
>
> Hi Devs,
>
> We are pleased to announce the release candidate of WSO2 IoT Server 3
> .2.0.
>
> This is the fourth release candidate (RC) of the WSO2 IoT Server 3.2.0
> release.
>
> This release carries 275+ issue fixes [1-12] over the last GA (3.1.0)
> release.
>
> Reported Issues:
>
>- https://github.com/wso2/product-iots/issues
>
> Source and distribution packages:
>
>- https://github.com/wso2/product-iots/releases/tag/v3.2.0-RC4
>
> Tag to be voted upon:
>
>- https://github.com/wso2/product-iots/releases/tag/v3.2.0-RC4
>
> Please download, test, and vote. The README file under the
> distribution contains guide and instructions on how to try it out locally.
>
> [+] Stable - Go ahead and release
> [-] Broken - Do not release (explain why)
>
> [1] https://github.com/wso2/product-iots/milestone/3?closed=1
> [2] https://github.com/wso2/product-iots/milestone/4?closed=1
> [3] https://github.com/wso2/product-iots/milestone/5?closed=1
> [4] https://github.com/wso2/product-iots/milestone/6?closed=1
> [5] https://github.com/wso2/product-iots/milestone/7?closed=1
> [6] https://github.com/wso2/product-iots/milestone/11?closed=1
> [7] https://github.com/wso2/product-iots/milestone/12?closed=1
> [8] https://github.com/wso2/product-iots/milestone/13?closed=1
> [9] https://github.com/wso2/product-iots/milestone/14?closed=1
> [10] https://github.com/wso2/product-iots/milestone/18?closed=1
> [11] https://github.com/wso2/product-iots/milestone/19?closed=1
> [12] https://github.com/wso2/product-iots/milestone/20?closed=1
>
> Regards,
> The WSO2 IoT Team.
>
> --
> With Regards,
>
> *Rasika Perera*

Re: [Dev] [VOTE] Release WSO2 IoT Server 3.2.0 RC3

2018-03-01 Thread Lasantha Dharmakeerthi
Hi all,

I have tested the iOS enrollment and operation logs of the enrolled device
don't display on the device-view page. Further navigation of operation tabs
doesn't work. Hence device-view UI is broken.

[-] Broken - Do not release

Thank You and Best Regards,
Lasantha.

On Thu, Mar 1, 2018 at 7:27 PM, Sumedha Rubasinghe  wrote:

> Installed on a remote machine against MySQL 5.5.
> Tested Device type API, Message broker functionality and stream processing.
>
> [+] Stable - Go ahead and release
>
> On Thu, Mar 1, 2018 at 2:40 AM, Rasika Perera  wrote:
>
>> Hi Devs,
>>
>> We are pleased to announce the release candidate of WSO2 IoT Server 3.2.0
>> .
>>
>> This is the third release candidate (RC) of the WSO2 IoT Server 3.2.0
>> release.
>>
>> This release carries 275+ issue fixes [1-12] over the last GA (3.1.0)
>> release.
>>
>> Reported Issues:
>>
>>- https://github.com/wso2/product-iots/issues
>>
>> Source and distribution packages:
>>
>>- https://github.com/wso2/product-iots/releases/tag/v3.2.0-RC3
>>
>> Tag to be voted upon:
>>
>>- https://github.com/wso2/product-iots/releases/tag/v3.2.0-RC3
>>
>> Please download, test, and vote. The README file under the distribution
>> contains guide and instructions on how to try it out locally.
>>
>> [+] Stable - Go ahead and release
>> [-] Broken - Do not release (explain why)
>>
>> [1] https://github.com/wso2/product-iots/milestone/3?closed=1
>> [2] https://github.com/wso2/product-iots/milestone/4?closed=1
>> [3] https://github.com/wso2/product-iots/milestone/5?closed=1
>> [4] https://github.com/wso2/product-iots/milestone/6?closed=1
>> [5] https://github.com/wso2/product-iots/milestone/7?closed=1
>> [6] https://github.com/wso2/product-iots/milestone/11?closed=1
>> [7] https://github.com/wso2/product-iots/milestone/12?closed=1
>> [8] https://github.com/wso2/product-iots/milestone/13?closed=1
>> [9] https://github.com/wso2/product-iots/milestone/14?closed=1
>> [10] https://github.com/wso2/product-iots/milestone/18?closed=1
>> [11] https://github.com/wso2/product-iots/milestone/19?closed=1
>> [12] https://github.com/wso2/product-iots/milestone/20?closed=1
>>
>> Regards,
>> The WSO2 IoT Team.
>>
>> --
>> With Regards,
>>
>> *Rasika Perera*
>> Senior Software Engineer
>> LinkedIn: http://lk.linkedin.com/in/rasika90
>>
>> 
>>
>> WSO2 Inc. www.wso2.com
>> lean.enterprise.middleware
>>
>
>
>
> --
> ---
> Sumedha Rubasinghe
> Director - IoT Architecture,
> WSO2
> m: +94 773017743 <+94%2077%20301%207743>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*Dharmakeerthi Lasantha*
Software Engineer - WSO2

Email - lasant...@wso2.com
Mobile - +94774928852
Web - http://wso2.com/
http://wso2.com/signature
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Architecture] [VOTE] Release of WSO2 IoT Server 3.1.0 RC version 4

2017-08-14 Thread Lasantha Dharmakeerthi
Hi all,

Tested following areas in Linux platform,

   1. Sample device types deployment.
   2. Connected-Cup device type deployment.
   3. Geo fencing artifact deployment

*With Super Tenant *

Android

   1. Device enrollment
   2. Device operations (location, ring, lock)
   3. Device renaming

Virtual Fire Alarm

   1. Download
   2. Buzzer on/off operations
   3. Real time analytics
   4. Batch analytics

Raspberry Pi

   1. Download directly
   2. Download via link

Connected Cup

   1. Creating Instance
   2. Real Time Analytics
   3. Batch Analytics

*With Tenant Mode*

Android

   1. Device Enrollment
   2. Device operations (location, ring, lock)
   3. Device renaming

No issues were found.

[+] Stable - go ahead and release.

Thanks and Best Regards,
Lasantha.

On Mon, Aug 14, 2017 at 5:18 PM, Menaka Jayawardena  wrote:

> Hi All,
>
> I have tested the following functionalities for Android Sense device type.
>
> 1. Enrollment
> 2. Sensor Data publishing and viewing them in device view.
> 3. Removing device and re-enrolling to a new user.
> 4. Geo Fencing features.
>
> +1 Stable - Go ahead and release.
>
> Thanks and Regards,
> Menaka
>
>
> On Mon, Aug 14, 2017 at 5:03 PM, Madawa Soysa  wrote:
>
>> Hi All,
>>
>> I have tested following functionalities for IOS device type. (v 10.1.1)
>>
>>- Enrolling device with/without ios-agent.
>>- Operation execution (Device lock, Ring, Location, Notification,
>>Enterprise-Wipe)
>>- Changing platform configurations.
>>- Passcode and restriction policies.
>>
>> No issues were found.
>>
>> [+] Stable - go ahead and release.
>>
>> Thanks,
>> Madawa
>>
>> On Fri, Aug 11, 2017 at 7:06 PM, Milan Perera  wrote:
>>
>>> Hi Devs,
>>>
>>> We are pleased to announce the release candidate version 4 of WSO2 IoT 
>>> Server
>>> 3.1.0.
>>>
>>> Please download, test the product and vote. Vote will be open for 72
>>> hours or as needed.
>>>
>>> Known issues : https://github.com/wso2/product-iots/issues-RC4
>>> 
>>>
>>> Source and binary distribution files:
>>> https://github.com/wso2/product-iots/releases/tag/v3.1.0-RC4
>>>
>>> The tag to be voted upon:
>>> https://github.com/wso2/product-iots/tree/v3.1.0-RC4
>>>
>>> Please vote as follows.
>>> [+] Stable - go ahead and release
>>> [-] Broken - do not release (explain why)
>>>
>>> Thank you
>>>
>>> Regards,
>>> --
>>> *Milan Perera *| Senior Software Engineer
>>> WSO2, Inc | lean. enterprise. middleware.
>>> #20, Palm Grove, Colombo 03, Sri Lanka
>>> Mobile: +94 77 309 7088 | Work: +94 11 214 5345
>>> Email: mi...@wso2.com  | Web: www.wso2.com
>>> 
>>> 
>>>
>>
>>
>>
>> --
>>
>> Madawa Soysa / Software Engineer
>> mada...@wso2.com / +94714616050 <+94%2071%20461%206050>
>>
>> *WSO2 Inc.*
>> lean.enterprise.middleware
>>
>>   
>>
>>
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> *Menaka Jayawardena*
> *Software Engineer - WSO2 Inc*
> *Tel : 071 350 5470*
> *LinkedIn: https://lk.linkedin.com/in/menakajayawardena
> *
> *Blog: https://menakamadushanka.wordpress.com/
> *
>
>
> ___
> Architecture mailing list
> architect...@wso2.org
> https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture
>
>


-- 
*Dharmakeerthi Lasantha*
Software Engineer - WSO2

Email - lasant...@wso2.com
Mobile - +94774928852
Web - http://wso2.com/
http://wso2.com/signature
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Is it possible to ship any jar files needed by Jaggery apps with the app?

2015-10-05 Thread Lasantha Dharmakeerthi
Hi
All

I couldn't find folder like WEB-INF/lib in my jaggery app. So should I
create WEB-INF/lib folder in my jaggery app and add jar files into it??

Thanks
Lasantha.

On Mon, Oct 5, 2015 at 4:52 PM, Amila Maha Arachchi  wrote:

> Thanks Tanya. I didn't know about this.
>
> Hi Lasantha,
>
> According to Tanya, there seems to be a solution to pack jar files inside
> a jaggery app. Can you try that approach please.
>
> On Mon, Oct 5, 2015 at 3:32 PM, Tanya Madurapperuma 
> wrote:
>
>> Yes, you can place them at WEB-INF/lib
>>
>> Thanks,
>> Tanya
>>
>> On Mon, Oct 5, 2015 at 10:51 AM, Amila Maha Arachchi 
>> wrote:
>>
>>> Hi all,
>>>
>>> $Subject? There is a jaggery app which invokes some java code which is
>>> in a jar. So, without copying the jar to the application server's dropins
>>> or lib folder, is there a way to ship it with the app?
>>>
>>> Regards,
>>> Amila.
>>>
>>> --
>>> *Amila Maharachchi*
>>> Senior Technical Lead
>>> WSO2, Inc.; http://wso2.com
>>>
>>> Blog: http://maharachchi.blogspot.com
>>> Mobile: +94719371446
>>>
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Tanya Madurapperuma
>>
>> Senior Software Engineer,
>> WSO2 Inc. : wso2.com
>> Mobile : +94718184439
>> Blog : http://tanyamadurapperuma.blogspot.com
>>
>
>
>
> --
> *Amila Maharachchi*
> Senior Technical Lead
> WSO2, Inc.; http://wso2.com
>
> Blog: http://maharachchi.blogspot.com
> Mobile: +94719371446
>
>


-- 
Dharmakeerthi Lasantha
Software Engineer Trainee, WSO2
Mobile 0774928852
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Get Absolute Path Of File In App Cloud

2015-09-30 Thread Lasantha Dharmakeerthi
Hi
Devs

I have created jaggery app and deployed it in wso2 app cloud. I have method
to read a certificate file and certificate is in the jaggery app.

In local Aplication Server I used file path like wise “
repository/deployment/server/jaggeryapps/Parkingapp
/resources/wso2defaultpub.cer”

So how can I get path to my certificate file in WSO2 App Cloud? Is it same
structure?

Thanks
Lasantha.

-- 
Dharmakeerthi Lasantha
Software Engineer Trainee, WSO2
Mobile 0774928852
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Get Absolute Path Of File In App Cloud

2015-09-30 Thread Lasantha Dharmakeerthi
Hi
All

I use java inside my jaggery app to read certificate file and get public
key.

*code*
inputStream = new Packages.java.io.FileInputStream(certificatePath);
var key =
Packages.java.security.cert.CertificateFactory.getInstance("X.509").generateCertificate(inputStream).getPublicKey();

As sajith said can read certificate file using Jaggery File object. But is
there a way to get public key from that way??

Can't I read certificate file in my application context by giving path
likewise in my local app ?

If it is possible to read file as in local app how can I get absolute path
to my certificate file in cloud app??

*url*
https://appserver.dev.cloud.wso2.com/t/dlpds3331/jaggeryapps/wso2parkingapp-default-SNAPSHOT

Thanks
Lasantha.




On Wed, Sep 30, 2015 at 7:50 PM, Sajith Ariyarathna <sajit...@wso2.com>
wrote:

> Hi Lasantha,
>
> Jaggery server runs on top of Carbon. So Java libraries which are added to
> Carbon are also available in Jaggery. External Java libraries can be added
> to Carbon by dropping them into 
> /repository/components/lib directory (more details [1]). Don't forget to
> restart the server.
>
> [1]
> http://wso2.com/library/knowledgebase/add-external-jar-libraries-wso2-carbon-based-products/
>
>
> On Wed, Sep 30, 2015 at 4:40 PM, Lasantha Dharmakeerthi <
> lasant...@wso2.com> wrote:
>
>> hi
>> Sajitha
>>
>> I use some .jar files and I have included them into components/lib
>> folder. Can I add those .jar files inside the jagerry app and use to get
>> same functionalities?
>>
>> Above code is working well when I give absolute path.
>>
>> Thanks
>>
>> Lasantha
>>
>> On Wed, Sep 30, 2015 at 4:38 PM, Lasantha Dharmakeerthi <
>> lasant...@wso2.com> wrote:
>>
>>> Hi
>>> Sajith
>>>
>>> Can I get public key of certificate using this way. I tried this one but
>>> couldn't get public key.
>>>
>>> this is the my code
>>>
>>>   function getPublicKey(certificatePath){
>>>
>>> var inputStream = null;
>>>
>>> try{
>>>
>>>   log.debug("Reading certificate from ");
>>>   inputStream = new
>>> Packages.java.io.FileInputStream(certificatePath);
>>>
>>>   var key =
>>> Packages.java.security.cert.CertificateFactory.getInstance("X.509").generateCertificate(inputStream).getPublicKey();
>>>
>>>   return key;
>>> }catch(e){
>>>   log.error("Error while getting the public key. " + e);
>>>   throw e;
>>> }finally{
>>>
>>>   if(inputStream){
>>> inputStream.close();
>>>   }
>>> }
>>>
>>> return null;
>>>
>>>   }
>>>
>>> Thanks
>>> Lasantha
>>>
>>> On Wed, Sep 30, 2015 at 4:23 PM, Sajith Ariyarathna <sajit...@wso2.com>
>>> wrote:
>>>
>>>> Hi Lasantha,
>>>>
>>>> Assuming,
>>>>
>>>> You are reading the certificate file using Jaggery.
>>>>
>>>> In your Jaggery app, certificate file is in '
>>>> *resources/wso2defaultpub.cer*' path
>>>>
>>>> You can read your file using Jaggery File [1] object. Refer following
>>>> code snippet.
>>>>
>>>> var certFile = new File("/resources/wso2defaultpub.cer");
>>>> var content = certFile.readAll();
>>>>
>>>> [1] http://jaggeryjs.org/documentation.jag?api=file
>>>>
>>>> Thanks.
>>>>
>>>> On Wed, Sep 30, 2015 at 3:11 PM, Lasantha Dharmakeerthi <
>>>> lasant...@wso2.com> wrote:
>>>>
>>>>> Hi
>>>>> Devs
>>>>>
>>>>> I have created jaggery app and deployed it in wso2 app cloud. I have
>>>>> method to read a certificate file and certificate is in the jaggery
>>>>>  app.
>>>>>
>>>>> In local Aplication Server I used file path like wise “
>>>>> repository/deployment/server/jaggeryapps/Parkingapp
>>>>> /resources/wso2defaultpub.cer”
>>>>>
>>>>> So how can I get path to my certificate file in WSO2 App Cloud? Is it
>>>>> same structure?
>>>>>
>>>>> Thanks
>>>>> Lasantha.
>>>>>
>>>>> --
>>>>> Dharmakeerthi Lasantha
>>>>> Software Engineer Trainee, WSO2
>>>>> Mobile 0774928852
>>>>>
>>>>> ___
>>>>> Dev mailing list
>>>>> Dev@wso2.org
>>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>> Sajith Ariyarathna
>>>> Software Engineer; WSO2, Inc.;  http://wso2.com/
>>>> mobile: +94 77 6602284, +94 71 3951048
>>>>
>>>
>>>
>>>
>>> --
>>> Dharmakeerthi Lasantha
>>> Software Engineer Trainee, WSO2
>>> Mobile 0774928852
>>>
>>
>>
>>
>> --
>> Dharmakeerthi Lasantha
>> Software Engineer Trainee, WSO2
>> Mobile 0774928852
>>
>
>
>
> --
> Sajith Ariyarathna
> Software Engineer; WSO2, Inc.;  http://wso2.com/
> mobile: +94 77 6602284, +94 71 3951048
>



-- 
Dharmakeerthi Lasantha
Software Engineer Trainee, WSO2
Mobile 0774928852
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [APIM] Exporting an API

2015-09-08 Thread Lasantha Dharmakeerthi
Hi Devs,

I followed the API Manager documentation to Migrate APIs to a different
environment. Downloaded the WSO2 API import/export tool v0.9.1 and tried to
export API. But I got 0 byte zip file. So what will be the reason for that?

used command

curl -H "Authorization:Basic YWRtaW4=" -X GET
"http://10.100.4.139:9767/api-import-export/export-api?name=WeatherAPI=1.0.0=admin;
-k > myExportedAPI.zip


-- 
Dharmakeerthi Lasantha
Software Engineer Trainee, WSO2
Mobile 0774928852
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [APIM] Exporting an API

2015-09-08 Thread Lasantha Dharmakeerthi
Hi

Thank you all

It's solved. misunderstood the given instruction. According to my scenario
correct code is

curl -H "Authorization:Basic YWRtaW46YWRtaW4=" -X GET "
https://10.100.4.139:9447/api-import-export-v0.9.1/export-api?name=WeatherAPI=1.0.0=admin;
-k > myExportedAPI.zip

Thanks
Lasantha

On Tue, Sep 8, 2015 at 4:03 PM, Thilini Cooray <thili...@wso2.com> wrote:

> Hi,
>
> The authorization token should be Base64Encode of username:password
> In your case it should be admin:admin Base64 encode which
> is YWRtaW46YWRtaW4=
>
> On Tue, Sep 8, 2015 at 3:58 PM, Lasantha Dharmakeerthi <lasant...@wso2.com
> > wrote:
>
>> hi
>>
>> Thank you for giving help. Still couldn't solve the problem
>>
>> is this command correct??
>>
>> curl -H "Authorization:Basic YWRtaW46:YWRtaW46" -X GET "
>> http://10.100.4.139:9767/api-import-export-v0.9.1/export-api?name=WeatherAPI=1.0.0=admin;
>> -k > myExportedAPI.zip
>>
>> I log as admin user.
>>
>> Thank You
>>
>> On Tue, Sep 8, 2015 at 3:21 PM, Jenananthan Yogendran <
>> jenanant...@wso2.com> wrote:
>>
>>> HI
>>>
>>> Also your api url missing the version (api-import-export-
>>> <https://localhost:9443/api-import-export->*v0.9.1*)
>>>
>>> https://localhost:9443/api-import-export-*v0.9.1*
>>> /export-api?name=xxx=xxx
>>>
>>> On Tue, Sep 8, 2015 at 2:38 PM, Jenananthan Yogendran <
>>> jenanant...@wso2.com> wrote:
>>>
>>>> Hi Lasantha,
>>>>
>>>> You need to use Basic auth where user credentials (username and
>>>> password ) should be base 64 encoded separated by colon
>>>> (). But in your case you have encoded only user name
>>>> "admin".
>>>> decode of "YWRtaW4" is admin[1] 1.https://www.base64decode.org/
>>>>
>>>> On Tue, Sep 8, 2015 at 2:07 PM, Thilini Cooray <thili...@wso2.com>
>>>> wrote:
>>>>
>>>>> Hi,
>>>>>
>>>>> Can you please make sure whether the API call is a success by using
>>>>> "curl -v" option?
>>>>>
>>>>> Thanks,
>>>>> ThiliniC.
>>>>>
>>>>> On Tue, Sep 8, 2015 at 1:46 PM, Lasantha Dharmakeerthi <
>>>>> lasant...@wso2.com> wrote:
>>>>>
>>>>>> Hi Devs,
>>>>>>
>>>>>> I followed the API Manager documentation to Migrate APIs to a
>>>>>> different environment. Downloaded the WSO2 API import/export tool v0.9.1
>>>>>> and tried to export API. But I got 0 byte zip file. So what will be the
>>>>>> reason for that?
>>>>>>
>>>>>> used command
>>>>>>
>>>>>> curl -H "Authorization:Basic YWRtaW4=" -X GET 
>>>>>> "http://10.100.4.139:9767/api-import-export/export-api?name=WeatherAPI=1.0.0=admin;
>>>>>>  -k > myExportedAPI.zip
>>>>>>
>>>>>>
>>>>>> --
>>>>>> Dharmakeerthi Lasantha
>>>>>> Software Engineer Trainee, WSO2
>>>>>> Mobile 0774928852
>>>>>>
>>>>>> ___
>>>>>> Dev mailing list
>>>>>> Dev@wso2.org
>>>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> Best Regards,
>>>>>
>>>>> *Thilini Cooray*
>>>>> Software Engineer
>>>>> Mobile : +94 (0) 774 570 112 <%2B94%20%280%29%20773%20451194>
>>>>> E-mail : thili...@wso2.com
>>>>>
>>>>> WSO2 Inc. www.wso2.com
>>>>> lean.enterprise.middleware
>>>>>
>>>>> ___
>>>>> Dev mailing list
>>>>> Dev@wso2.org
>>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>> Jenananthan Yogendran
>>>> *Software Engineer,*
>>>> *WSO2 inc., http://wso2.com <http://wso2.com>*
>>>>
>>>>
>>>
>>>
>>> --
>>> Jenananthan Yogendran
>>> *Software Engineer,*
>>> *WSO2 inc., http://wso2.com <http://wso2.com>*
>>>
>>>
>>
>>
>> --
>> Dharmakeerthi Lasantha
>> Software Engineer Trainee, WSO2
>> Mobile 0774928852
>>
>
>
>
> --
> Best Regards,
>
> *Thilini Cooray*
> Software Engineer
> Mobile : +94 (0) 774 570 112 <%2B94%20%280%29%20773%20451194>
> E-mail : thili...@wso2.com
>
> WSO2 Inc. www.wso2.com
> lean.enterprise.middleware
>



-- 
Dharmakeerthi Lasantha
Software Engineer Trainee, WSO2
Mobile 0774928852
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [APIM] Exporting an API

2015-09-08 Thread Lasantha Dharmakeerthi
hi

Thank you for giving help. Still couldn't solve the problem

is this command correct??

curl -H "Authorization:Basic YWRtaW46:YWRtaW46" -X GET "
http://10.100.4.139:9767/api-import-export-v0.9.1/export-api?name=WeatherAPI=1.0.0=admin;
-k > myExportedAPI.zip

I log as admin user.

Thank You

On Tue, Sep 8, 2015 at 3:21 PM, Jenananthan Yogendran <jenanant...@wso2.com>
wrote:

> HI
>
> Also your api url missing the version (api-import-export-
> <https://localhost:9443/api-import-export->*v0.9.1*)
>
> https://localhost:9443/api-import-export-*v0.9.1*
> /export-api?name=xxx=xxx
>
> On Tue, Sep 8, 2015 at 2:38 PM, Jenananthan Yogendran <
> jenanant...@wso2.com> wrote:
>
>> Hi Lasantha,
>>
>> You need to use Basic auth where user credentials (username and password
>> ) should be base 64 encoded separated by colon (). But
>> in your case you have encoded only user name "admin".
>> decode of "YWRtaW4" is admin[1] 1.https://www.base64decode.org/
>>
>> On Tue, Sep 8, 2015 at 2:07 PM, Thilini Cooray <thili...@wso2.com> wrote:
>>
>>> Hi,
>>>
>>> Can you please make sure whether the API call is a success by using
>>> "curl -v" option?
>>>
>>> Thanks,
>>> ThiliniC.
>>>
>>> On Tue, Sep 8, 2015 at 1:46 PM, Lasantha Dharmakeerthi <
>>> lasant...@wso2.com> wrote:
>>>
>>>> Hi Devs,
>>>>
>>>> I followed the API Manager documentation to Migrate APIs to a different
>>>> environment. Downloaded the WSO2 API import/export tool v0.9.1 and tried to
>>>> export API. But I got 0 byte zip file. So what will be the reason for that?
>>>>
>>>> used command
>>>>
>>>> curl -H "Authorization:Basic YWRtaW4=" -X GET 
>>>> "http://10.100.4.139:9767/api-import-export/export-api?name=WeatherAPI=1.0.0=admin;
>>>>  -k > myExportedAPI.zip
>>>>
>>>>
>>>> --
>>>> Dharmakeerthi Lasantha
>>>> Software Engineer Trainee, WSO2
>>>> Mobile 0774928852
>>>>
>>>> ___
>>>> Dev mailing list
>>>> Dev@wso2.org
>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>
>>>>
>>>
>>>
>>> --
>>> Best Regards,
>>>
>>> *Thilini Cooray*
>>> Software Engineer
>>> Mobile : +94 (0) 774 570 112 <%2B94%20%280%29%20773%20451194>
>>> E-mail : thili...@wso2.com
>>>
>>> WSO2 Inc. www.wso2.com
>>> lean.enterprise.middleware
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Jenananthan Yogendran
>> *Software Engineer,*
>> *WSO2 inc., http://wso2.com <http://wso2.com>*
>>
>>
>
>
> --
> Jenananthan Yogendran
> *Software Engineer,*
> *WSO2 inc., http://wso2.com <http://wso2.com>*
>
>


-- 
Dharmakeerthi Lasantha
Software Engineer Trainee, WSO2
Mobile 0774928852
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev