[Dev] [DEV] [IS] Setting up IDP using Configuration Files

2015-11-17 Thread Nadeesha Meegoda
Hi all,

In IS 5.1.0 documentation listed in [1] only lists how to add an IDP as
SAML via the configuration files. What about the other Federated
Authenticator configurations such as Google/Yahoo/MSN/Open Id-Connect etc?
(Jira regarding this created in [2])

Also enabling the JIT provisioning via the IDP configured in file system
doesn't really seem to work. Added the property as the following :

 true

How can we configure to which User-store these users should be provisioned
to?

[1] -
https://docs.wso2.com/display/IS510/Configuring+a+SP+and+IdP+Using+Configuration+Files
[2] - https://wso2.org/jira/browse/DOCUMENTATION-2723

Thanks

-- 
*Nadeesha Meegoda*
Software Engineer - QA
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware
email : nadees...@wso2.com
mobile: +94783639540
<%2B94%2077%202273555>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] OAuth clientId in SP_INBOUND_AUTH

2015-11-17 Thread Pushpalanka Jayawardhana
Hi Nuwan,

We have done a immediate fix for the issue(by Darshana) with PR :
https://github.com/wso2/carbon-identity/pull/1432.

Thanks,
Pushpalanka.
-- 
Pushpalanka Jayawardhana, B.Sc.Eng.(Hons).
Senior Software Engineer, WSO2 Lanka (pvt) Ltd;  wso2.com/
Mobile: +94779716248
Blog: pushpalankajaya.blogspot.com/ | LinkedIn:
lk.linkedin.com/in/pushpalanka/ | Twitter: @pushpalanka


On Tue, Nov 17, 2015 at 3:30 PM, Pushpalanka Jayawardhana 
wrote:

> Hi Nuwan,
>
> We are going forward with not encrypting the consumer key.  Started
> working on this will be tracked via [1].
> There are few more encryption concerns related to session store and
> authorization code storage as well. Will provide the details of the
> approach to be taken ASAP.
>
> [1] - https://wso2.org/jira/browse/IDENTITY-4088
>
> Thanks,
> Pushpalanka.
> --
> Pushpalanka Jayawardhana, B.Sc.Eng.(Hons).
> Senior Software Engineer, WSO2 Lanka (pvt) Ltd;  wso2.com/
> Mobile: +94779716248
> Blog: pushpalankajaya.blogspot.com/ | LinkedIn:
> lk.linkedin.com/in/pushpalanka/ | Twitter: @pushpalanka
>
>
> On Tue, Nov 17, 2015 at 10:39 AM, Nuwan Dias  wrote:
>
>> Hi IS folks,
>>
>> We talked about avoiding the encryption of the consumer key to avoid the
>> issue originally raised on this mail thread. Are we going ahead with that
>> decision? It still encrypts it on carbon-identity_5.0.2 release.
>>
>> Please note that this results in a blocking issue for the release of API
>> Manager 1.10.0. Therefore we either need to stop encrypting it altogether
>> or find another solution for this problem. And we need it ASAP :)
>>
>> Thanks,
>> NuwanD.
>>
>> On Tue, Oct 20, 2015 at 2:38 PM, Nuwan Dias  wrote:
>>
>>> Hi,
>>>
>>> When we enable key encryption for OAuth keys, the clientId is encrypted
>>> in the IDN_OAUTH_CONSUMER_APPS table. But it is left in plain text in the
>>> INBOUND_AUTH_KEY column of the SP_INBOUND_AUTH table. This happens in
>>> carbon-identity_4.6.0-M2 release. Should not values in both columns be
>>> encrypted?
>>>
>>> Thanks,
>>> NuwanD.
>>>
>>> --
>>> Nuwan Dias
>>>
>>> Technical Lead - WSO2, Inc. http://wso2.com
>>> email : nuw...@wso2.com
>>> Phone : +94 777 775 729
>>>
>>
>>
>>
>> --
>> Nuwan Dias
>>
>> Technical Lead - WSO2, Inc. http://wso2.com
>> email : nuw...@wso2.com
>> Phone : +94 777 775 729
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Releasing carbon-appmgt 1.1.1

2015-11-17 Thread Dinusha Senanayaka
Adding Supun/ Maheshika.

On Tue, Nov 17, 2015 at 6:21 PM, Dinusha Senanayaka 
wrote:

> Hi Kasun,
>
> Can you please close the repo [1] and send the staging url.
>
> [1] -
> http://maven.wso2.org/nexus/service/local/staging/deploy/maven2/org/wso2/
> carbon/appmgt
>
> Regards,
> Dinusha.
>
> --
> Dinusha Dilrukshi
> Associate Technical Lead
> WSO2 Inc.: http://wso2.com/
> Mobile: +94725255071
> Blog: http://dinushasblog.blogspot.com/
>



-- 
Dinusha Dilrukshi
Associate Technical Lead
WSO2 Inc.: http://wso2.com/
Mobile: +94725255071
Blog: http://dinushasblog.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Installing WSO2 product as a service on Red Hat

2015-11-17 Thread Udara Rathnayake
Hi,

We have docs on "installing as a service on linux and windows"[1][2]. But
the way we have to set run-levels in Red Hat is different from debian based
distributions. (update-rc.d vs chkconfig).

Shouldn't we update docs with this?

[1]
https://docs.wso2.com/display/AM190/Installing+as+a+Linux+Service#InstallingasaLinuxService-RunningtheproductasaLinuxservice
[2] https://docs.wso2.com/display/Carbon420/Installing+as+a+Linux+Service

-- 
Regards,
UdaraR
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Updating data-publisher agents in carbon-multitenancy

2015-11-17 Thread Nipuni Perera
Hi,

I am trying to update carbon-deployment with new data publishers introduced
with carbon-commons 4.5.0 and carbon-analytics-common 5.0.6. I have
rewritten the data publishers in carbon-deployment and need to test the
changes with a AS pack, publishing webapp statistics.
While building product-as I could see that carbon-multitenancy need to be
updated with the new data publishers as well. I am working on updating
carbon-multitenancy to use carbon-commons 4.5.0 and carbon-analytics-common
5.0.6. I am updating methods in : org.wso2.carbon.usage.agent.util.
PublisherUtils.

Will updating carbon-multitenancy a productive effort? Are we still using
this utility methods to publish usage statistics?

Thanks,
Nipuni

-- 
Nipuni Perera
Software Engineer; WSO2 Inc.; http://wso2.com
Email: nip...@wso2.com
Git hub profile: https://github.com/nipuni
Blog : http://nipunipererablog.blogspot.com/
Mobile: +94 (71) 5626680

___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Communicating between two services

2015-11-17 Thread Menaka Jayawardena
Hello,

I'm creating an Android application which reads the sensor data and publish
them to the IOT server.

Here I need to display the sensor data in my Activity.
The sensor reading is done separately in a service.

My code files are attached herewith.

When I run the application it gives the following exception.


11-17 19:54:42.842 5484-5484/iot.carbon.wso2.org.androidsenseanget
E/AndroidRuntime: FATAL EXCEPTION: main
11-17 19:54:42.842 5484-5484/iot.carbon.wso2.org.androidsenseanget
E/AndroidRuntime: Process: iot.carbon.wso2.org.androidsenseanget, PID: 5484
11-17 19:54:42.842 5484-5484/iot.carbon.wso2.org.androidsenseanget
E/AndroidRuntime: java.lang.RuntimeException: Error receiving broadcast
Intent {
act=iot.carbon.wso2.org.androidsenseagent.util.SensorsDrawerActivity.displayData
flg=0x10 (has extras) } in
iot.carbon.wso2.org.androidsenseagent.util.SensorsDrawerActivity$2@772125a
11-17 19:54:42.842 5484-5484/iot.carbon.wso2.org.androidsenseanget
E/AndroidRuntime: at
android.app.LoadedApk$ReceiverDispatcher$Args.run(LoadedApk.java:882)
11-17 19:54:42.842 5484-5484/iot.carbon.wso2.org.androidsenseanget
E/AndroidRuntime: at android.os.Handler.handleCallback(Handler.java:739)
11-17 19:54:42.842 5484-5484/iot.carbon.wso2.org.androidsenseanget
E/AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:95)
11-17 19:54:42.842 5484-5484/iot.carbon.wso2.org.androidsenseanget
E/AndroidRuntime: at android.os.Looper.loop(Looper.java:211)
11-17 19:54:42.842 5484-5484/iot.carbon.wso2.org.androidsenseanget
E/AndroidRuntime: at
android.app.ActivityThread.main(ActivityThread.java:5373)
11-17 19:54:42.842 5484-5484/iot.carbon.wso2.org.androidsenseanget
E/AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)
11-17 19:54:42.842 5484-5484/iot.carbon.wso2.org.androidsenseanget
E/AndroidRuntime: at java.lang.reflect.Method.invoke(Method.java:372)
11-17 19:54:42.842 5484-5484/iot.carbon.wso2.org.androidsenseanget
E/AndroidRuntime: at
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1020)
11-17 19:54:42.842 5484-5484/iot.carbon.wso2.org.androidsenseanget
E/AndroidRuntime: at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:815)
11-17 19:54:42.842 5484-5484/iot.carbon.wso2.org.androidsenseanget
E/AndroidRuntime:  Caused by: java.lang.NullPointerException: println needs
a message
11-17 19:54:42.842 5484-5484/iot.carbon.wso2.org.androidsenseanget
E/AndroidRuntime: at android.util.Log.println_native(Native Method)
11-17 19:54:42.842 5484-5484/iot.carbon.wso2.org.androidsenseanget
E/AndroidRuntime: at android.util.Log.d(Log.java:139)
11-17 19:54:42.842 5484-5484/iot.carbon.wso2.org.androidsenseanget
E/AndroidRuntime: at
iot.carbon.wso2.org.androidsenseagent.util.SensorsDrawerActivity.updateUI(SensorsDrawerActivity.java:264)
11-17 19:54:42.842 5484-5484/iot.carbon.wso2.org.androidsenseanget
E/AndroidRuntime: at
iot.carbon.wso2.org.androidsenseagent.util.SensorsDrawerActivity$2.onReceive(SensorsDrawerActivity.java:258)
11-17 19:54:42.842 5484-5484/iot.carbon.wso2.org.androidsenseanget
E/AndroidRuntime: at
android.app.LoadedApk$ReceiverDispatcher$Args.run(LoadedApk.java:872)
11-17 19:54:42.842 5484-5484/iot.carbon.wso2.org.androidsenseanget
E/AndroidRuntime: at
android.os.Handler.handleCallback(Handler.java:739)
11-17 19:54:42.842 5484-5484/iot.carbon.wso2.org.androidsenseanget
E/AndroidRuntime: at
android.os.Handler.dispatchMessage(Handler.java:95)
11-17 19:54:42.842 5484-5484/iot.carbon.wso2.org.androidsenseanget
E/AndroidRuntime: at android.os.Looper.loop(Looper.java:211)
11-17 19:54:42.842 5484-5484/iot.carbon.wso2.org.androidsenseanget
E/AndroidRuntime: at
android.app.ActivityThread.main(ActivityThread.java:5373)
11-17 19:54:42.842 5484-5484/iot.carbon.wso2.org.androidsenseanget
E/AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)
11-17 19:54:42.842 5484-5484/iot.carbon.wso2.org.androidsenseanget
E/AndroidRuntime: at java.lang.reflect.Method.invoke(Method.java:372)
11-17 19:54:42.842 5484-5484/iot.carbon.wso2.org.androidsenseanget
E/AndroidRuntime: at
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1020)

11-17 19:54:42.842 5484-5484/iot.carbon.wso2.org.androidsenseanget
E/AndroidRuntime: at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:815)


Some one could help me to figure out what the problem is.

Thank you
Best Regards
Menaka Madushanka

-- 
Menaka Madushanka Jayawardena
Software Engineering Intern
men...@wso2.com
Mobile:- +94 71 8851183/ +94 71 3505470
LinkedIn - Menaka Jayawardena 
package iot.carbon.wso2.org.androidsenseagent.service;

import android.app.Service;
import android.content.Intent;
import android.content.IntentFilter;
import android.nfc.Tag;
import android.os.Handler;
import android.os.IBinder;
import android.support.annotation.Nullable;
import android.util.Log;

import 

Re: [Dev] [DEV] [IS] [OAuth] Could not generate access token with token encryption

2015-11-17 Thread Pushpalanka Jayawardhana
Hi Kavitha,

I tried the scenario with both the token processors and it worked fine for
me while encrytpting as expected.
There are no specific configuration needed other than what you have done.

*Note:* After doing the config change in identity.xml we should create a
new Service provider and try. This is because we generate and store the
client id and secret at the time of service provider creation and store.
Changing the token processor after this does not affect the values already
stored in dtabase.

Thanks,
Pushpalanka.
-- 
Pushpalanka Jayawardhana, B.Sc.Eng.(Hons).
Senior Software Engineer, WSO2 Lanka (pvt) Ltd;  wso2.com/
Mobile: +94779716248
Blog: pushpalankajaya.blogspot.com/ | LinkedIn:
lk.linkedin.com/in/pushpalanka/ | Twitter: @pushpalanka


On Tue, Nov 17, 2015 at 3:46 PM, Kavitha Subramaniyam 
wrote:

> Hi IS team,
>
> I have tried access token generation with token encryption as below and I
> couldn't generate a token: jira raised for this issue[1]
>
> Can you please let me know if there are any more configuration needs to be
> done ?
>
> Steps:
> --
>
> - Modify the configuration for TokenPersistenceProcessor in the
> identity.xml.
> change this
>
> org.wso2.carbon.identity.oauth.tokenprocessor.PlainTextPersistenceProcessor
>
> to this
>
> org.wso2.carbon.identity.oauth.tokenprocessor.EncryptionDecryptionPersistenceProcessor
>
>
> - Run the server and create a SP
> - Configure OAuth/OpenID connect configuration with OAuth-2.0
> - Try access token generation by curl
>
> curl -v -X POST --basic -u
> jW5fQYoSfdhzrnGVXTjmnPW23EMa:sZ3M13Bjdd3zWvR6vfdE5qaJZjEa -H
> "Content-Type:application/x-www-form-urlencoded;charset=UTF-8" -k -d
> "grant_type=password=openid=admin=admin"
> https://localhost:9443/oauth2/token
>
>
>
> There is no description in IS doc for token encryption: a documentation
> jira raised for this[2]
>
>
> [1] https://wso2.org/jira/browse/IDENTITY-4089
>
> [2] https://wso2.org/jira/browse/DOCUMENTATION-2719
>
>
> --
> Kavitha.S
> *Software Engineer -QA*
> Mobile : +94 (0) 771538811 <%2B94%20%280%29%20773%20451194>
> kavi...@wso2.com 
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Releasing carbon-appmgt 1.1.1

2015-11-17 Thread Dinusha Senanayaka
Hi Kasun,

Can you please close the repo [1] and send the staging url.

[1] -
http://maven.wso2.org/nexus/service/local/staging/deploy/maven2/org/wso2/
carbon/appmgt

Regards,
Dinusha.

-- 
Dinusha Dilrukshi
Associate Technical Lead
WSO2 Inc.: http://wso2.com/
Mobile: +94725255071
Blog: http://dinushasblog.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Releasing carbon-appmgt 1.1.1

2015-11-17 Thread Rushmin Fernando
On Tue, Nov 17, 2015 at 4:04 PM, Dinusha Senanayaka 
wrote:

> Adding Supun/ Maheshika.
>
> On Tue, Nov 17, 2015 at 6:21 PM, Dinusha Senanayaka 
> wrote:
>
>> Hi Kasun,
>>
>> Can you please close the repo [1] and send the staging url.
>>
>> [1] -
>> http://maven.wso2.org/nexus/service/local/staging/deploy/maven2/org/wso2/
>> carbon/appmgt
>>
>> Regards,
>> Dinusha.
>>
>> --
>> Dinusha Dilrukshi
>> Associate Technical Lead
>> WSO2 Inc.: http://wso2.com/
>> Mobile: +94725255071
>> Blog: http://dinushasblog.blogspot.com/
>>
>
>
>
> --
> Dinusha Dilrukshi
> Associate Technical Lead
> WSO2 Inc.: http://wso2.com/
> Mobile: +94725255071
> Blog: http://dinushasblog.blogspot.com/
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*Rushmin Fernando*
*Technical Lead*

WSO2 Inc.  - Lean . Enterprise . Middleware

email : rush...@wso2.com
mobile : +94772310855
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Clustering Governance Registry 5.1.0

2015-11-17 Thread Pubudu Fernando
Hi,

I'm trying to create a cluster for Governance Registry 5.1.0, following the
instructions given at (the documentation for GR 5.1.0 [1] points to [2])
[2]. In step 2 of [3], it says to use a file at
$GREG_HOME/dbscripts/apimgt/mysql.sql.
However, in GR 5.1.0, there isn't any folder called apimgt in dbscripts
folder. How should I proceed with this?

[1] https://docs.wso2.com/display/Governance510/Clustered+Deployment
[2]
https://docs.wso2.com/display/CLUSTER44x/Clustering+Governance+Registry+5.0.0

[3]
https://docs.wso2.com/display/CLUSTER44x/Clustering+Governance+Registry+5.0.0#ClusteringGovernanceRegistry5.0.0-CreatingtheDBmountsforthecluster

Thanks.

*Pubudu Fernando*
Software Engineering Intern
WSO2 Inc.
mobile: +94 77 888 2543
skype: pubudu.fernando
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] EC2 clustering guide- Security group name or ID

2015-11-17 Thread Udara Liyanage
Hi,

EC2 only allows creating security group with the same name in different
regions, not in the same region. In that case it won't be an issue.
Thanks Azeez for pointing this.

On Wed, Nov 18, 2015 at 10:15 AM, Udara Liyanage  wrote:

> Hi,
>
> Ec2 clustering guide ask for the name of the security group for
> configuration. I tried this and it works.
>
>  However should the members discovered by security group id rather than
> name. Because AFAIK we can create two security groups with the same name,
> but different rules.
>
> [1]
> https://docs.wso2.com/display/CLUSTER420/Setting+up+a+Cluster+in+AWS+Mode
>
> --
>
> Udara Liyanage
> Software Engineer
> WSO2, Inc.: http://wso2.com
> lean. enterprise. middleware
>
> web: http://udaraliyanage.wordpress.com
> phone: +94 71 443 6897
>



-- 

Udara Liyanage
Software Engineer
WSO2, Inc.: http://wso2.com
lean. enterprise. middleware

web: http://udaraliyanage.wordpress.com
phone: +94 71 443 6897
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Releasing carbon-appmgt 1.1.1

2015-11-17 Thread Maheshika Goonetilleke
Hi Dinusha

Staged :
http://maven.wso2.org/nexus/content/repositories/orgwso2carbonappmgt-129/

On Wed, Nov 18, 2015 at 12:04 AM, Rushmin Fernando  wrote:

>
> On Tue, Nov 17, 2015 at 4:04 PM, Dinusha Senanayaka 
> wrote:
>
>> Adding Supun/ Maheshika.
>>
>> On Tue, Nov 17, 2015 at 6:21 PM, Dinusha Senanayaka 
>> wrote:
>>
>>> Hi Kasun,
>>>
>>> Can you please close the repo [1] and send the staging url.
>>>
>>> [1] -
>>> http://maven.wso2.org/nexus/service/local/staging/deploy/maven2/org/wso2/
>>> carbon/appmgt
>>>
>>> Regards,
>>> Dinusha.
>>>
>>> --
>>> Dinusha Dilrukshi
>>> Associate Technical Lead
>>> WSO2 Inc.: http://wso2.com/
>>> Mobile: +94725255071
>>> Blog: http://dinushasblog.blogspot.com/
>>>
>>
>>
>>
>> --
>> Dinusha Dilrukshi
>> Associate Technical Lead
>> WSO2 Inc.: http://wso2.com/
>> Mobile: +94725255071
>> Blog: http://dinushasblog.blogspot.com/
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> *Rushmin Fernando*
> *Technical Lead*
>
> WSO2 Inc.  - Lean . Enterprise . Middleware
>
> email : rush...@wso2.com
> mobile : +94772310855
>
>
>


-- 

Thanks & Best Regards,

Maheshika Goonetilleke
Engineering Process Coordinator

*WSO2 Inc*
*email   : mahesh...@wso2.com *
*mobile : +94 773 596707*
*www: :http://wso2.com *lean . enterprise . middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] OAuth clientId in SP_INBOUND_AUTH

2015-11-17 Thread Nuwan Dias
Thanks, we will update to carbon-identity_5.0.3-SNAPSHOT and check.

On Tue, Nov 17, 2015 at 5:07 PM, Pushpalanka Jayawardhana 
wrote:

> Hi Nuwan,
>
> We have done a immediate fix for the issue(by Darshana) with PR :
> https://github.com/wso2/carbon-identity/pull/1432.
>
> Thanks,
> Pushpalanka.
> --
> Pushpalanka Jayawardhana, B.Sc.Eng.(Hons).
> Senior Software Engineer, WSO2 Lanka (pvt) Ltd;  wso2.com/
> Mobile: +94779716248
> Blog: pushpalankajaya.blogspot.com/ | LinkedIn:
> lk.linkedin.com/in/pushpalanka/ | Twitter: @pushpalanka
>
>
> On Tue, Nov 17, 2015 at 3:30 PM, Pushpalanka Jayawardhana 
> wrote:
>
>> Hi Nuwan,
>>
>> We are going forward with not encrypting the consumer key.  Started
>> working on this will be tracked via [1].
>> There are few more encryption concerns related to session store and
>> authorization code storage as well. Will provide the details of the
>> approach to be taken ASAP.
>>
>> [1] - https://wso2.org/jira/browse/IDENTITY-4088
>>
>> Thanks,
>> Pushpalanka.
>> --
>> Pushpalanka Jayawardhana, B.Sc.Eng.(Hons).
>> Senior Software Engineer, WSO2 Lanka (pvt) Ltd;  wso2.com/
>> Mobile: +94779716248
>> Blog: pushpalankajaya.blogspot.com/ | LinkedIn:
>> lk.linkedin.com/in/pushpalanka/ | Twitter: @pushpalanka
>>
>>
>> On Tue, Nov 17, 2015 at 10:39 AM, Nuwan Dias  wrote:
>>
>>> Hi IS folks,
>>>
>>> We talked about avoiding the encryption of the consumer key to avoid the
>>> issue originally raised on this mail thread. Are we going ahead with that
>>> decision? It still encrypts it on carbon-identity_5.0.2 release.
>>>
>>> Please note that this results in a blocking issue for the release of API
>>> Manager 1.10.0. Therefore we either need to stop encrypting it altogether
>>> or find another solution for this problem. And we need it ASAP :)
>>>
>>> Thanks,
>>> NuwanD.
>>>
>>> On Tue, Oct 20, 2015 at 2:38 PM, Nuwan Dias  wrote:
>>>
 Hi,

 When we enable key encryption for OAuth keys, the clientId is encrypted
 in the IDN_OAUTH_CONSUMER_APPS table. But it is left in plain text in the
 INBOUND_AUTH_KEY column of the SP_INBOUND_AUTH table. This happens in
 carbon-identity_4.6.0-M2 release. Should not values in both columns be
 encrypted?

 Thanks,
 NuwanD.

 --
 Nuwan Dias

 Technical Lead - WSO2, Inc. http://wso2.com
 email : nuw...@wso2.com
 Phone : +94 777 775 729

>>>
>>>
>>>
>>> --
>>> Nuwan Dias
>>>
>>> Technical Lead - WSO2, Inc. http://wso2.com
>>> email : nuw...@wso2.com
>>> Phone : +94 777 775 729
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>


-- 
Nuwan Dias

Technical Lead - WSO2, Inc. http://wso2.com
email : nuw...@wso2.com
Phone : +94 777 775 729
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Releasing carbon-appmgt 1.1.1

2015-11-17 Thread Dinusha Senanayaka
Thanks Maheshika.

@MDM team: Can you update to use staging repo and confirm that it's good to
go.

Regards,
Dinusha.

On Wed, Nov 18, 2015 at 9:02 AM, Maheshika Goonetilleke 
wrote:

> Hi Dinusha
>
> Staged :
> http://maven.wso2.org/nexus/content/repositories/orgwso2carbonappmgt-129/
>
> On Wed, Nov 18, 2015 at 12:04 AM, Rushmin Fernando 
> wrote:
>
>>
>> On Tue, Nov 17, 2015 at 4:04 PM, Dinusha Senanayaka 
>> wrote:
>>
>>> Adding Supun/ Maheshika.
>>>
>>> On Tue, Nov 17, 2015 at 6:21 PM, Dinusha Senanayaka 
>>> wrote:
>>>
 Hi Kasun,

 Can you please close the repo [1] and send the staging url.

 [1] -
 http://maven.wso2.org/nexus/service/local/staging/deploy/maven2/org/wso2/
 carbon/appmgt

 Regards,
 Dinusha.

 --
 Dinusha Dilrukshi
 Associate Technical Lead
 WSO2 Inc.: http://wso2.com/
 Mobile: +94725255071
 Blog: http://dinushasblog.blogspot.com/

>>>
>>>
>>>
>>> --
>>> Dinusha Dilrukshi
>>> Associate Technical Lead
>>> WSO2 Inc.: http://wso2.com/
>>> Mobile: +94725255071
>>> Blog: http://dinushasblog.blogspot.com/
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> *Rushmin Fernando*
>> *Technical Lead*
>>
>> WSO2 Inc.  - Lean . Enterprise . Middleware
>>
>> email : rush...@wso2.com
>> mobile : +94772310855
>>
>>
>>
>
>
> --
>
> Thanks & Best Regards,
>
> Maheshika Goonetilleke
> Engineering Process Coordinator
>
> *WSO2 Inc*
> *email   : mahesh...@wso2.com *
> *mobile : +94 773 596707 <%2B94%20773%20596707>*
> *www: :http://wso2.com *lean . enterprise . middleware
>
>
>
>
>


-- 
Dinusha Dilrukshi
Associate Technical Lead
WSO2 Inc.: http://wso2.com/
Mobile: +94725255071
Blog: http://dinushasblog.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [ES] Has to login again for the store even after logged in to the publisher

2015-11-17 Thread Nadeesha Meegoda
Hi Nadeeshan,

That is actually a limitation in ES 2.0, you have to click Sign In for SSO
to work at the moment. When you click Sign In the user will be logged in
automatically without prompting for authentication. This behavior is not
the expected but it is tracked in STORE-1056



On Wed, Nov 18, 2015 at 9:30 AM, Nadeeshaan Gunasinghe 
wrote:

> @Nadeesha
> That particular ticket address the same issue I am talking about.
>
> Regards,
>
> *Nadeeshaan Gunasinghe*
> Software Engineer, WSO2 Inc. http://wso2.com
> +94770596754 | nadeesh...@wso2.com | Skype: nadeeshaan.gunasinghe
> <#15118c0670ff756e_>
> 
>   
> 
> Get a signature like this: Click here!
> 
>
> On Tue, Nov 17, 2015 at 3:19 PM, Nadeesha Meegoda 
> wrote:
>
>> May be Nadeeshaan is talking about the issue in [1]
>>
>> [1] - https://wso2.org/jira/browse/STORE-1056
>>
>> On Tue, Nov 17, 2015 at 2:56 PM, Manuranga Perera  wrote:
>>
>>> no this is not the correct behavior. can you please attach the saml
>>> tracer logs
>>>
>>> On Tue, Nov 17, 2015 at 2:43 PM, Nadeeshaan Gunasinghe <
>>> nadeesh...@wso2.com> wrote:
>>>
 Adding Manuranga

 *Nadeeshaan Gunasinghe*
 Software Engineer, WSO2 Inc. http://wso2.com
 +94770596754 | nadeesh...@wso2.com | Skype: nadeeshaan.gunasinghe
 <#15118c0670ff756e_15114da2e90e77b8_15114c499dbda932_15114b80339f5e9b_>
 
   
   
 Get a signature like this: Click here!
 

 On Tue, Nov 17, 2015 at 2:39 PM, Nadeeshaan Gunasinghe <
 nadeesh...@wso2.com> wrote:

> Hi all,
>
> I am using wso2es-2.0.0, wso2is-5.0.0 to manage SSO. First login to
> the publisher and then try to login to the store. Then I need to login
> again for the store. Is this the default behavior or otherwise how can I
> solve this?
>
> Regards
> *Nadeeshaan Gunasinghe*
> Software Engineer, WSO2 Inc. http://wso2.com
> +94770596754 | nadeesh...@wso2.com | Skype: nadeeshaan.gunasinghe
> <#15118c0670ff756e_15114da2e90e77b8_15114c499dbda932_15114b80339f5e9b_15114b457040984e_>
> 
> 
>   
> Get a signature like this: Click here!
> 
>


>>>
>>>
>>> --
>>> With regards,
>>> *Manu*ranga Perera.
>>>
>>> phone : 071 7 70 20 50
>>> mail : m...@wso2.com
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> *Nadeesha Meegoda*
>> Software Engineer - QA
>> WSO2 Inc.; http://wso2.com
>> lean.enterprise.middleware
>> email : nadees...@wso2.com
>> mobile: +94783639540
>> <%2B94%2077%202273555>
>>
>
>


-- 
*Nadeesha Meegoda*
Software Engineer - QA
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware
email : nadees...@wso2.com
mobile: +94783639540
<%2B94%2077%202273555>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] EC2 clustering guide- Security group name or ID

2015-11-17 Thread Udara Liyanage
Hi,

Ec2 clustering guide ask for the name of the security group for
configuration. I tried this and it works.

 However should the members discovered by security group id rather than
name. Because AFAIK we can create two security groups with the same name,
but different rules.

[1]
https://docs.wso2.com/display/CLUSTER420/Setting+up+a+Cluster+in+AWS+Mode

-- 

Udara Liyanage
Software Engineer
WSO2, Inc.: http://wso2.com
lean. enterprise. middleware

web: http://udaraliyanage.wordpress.com
phone: +94 71 443 6897
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [ES] Has to login again for the store even after logged in to the publisher

2015-11-17 Thread Nadeeshaan Gunasinghe
@Nadeesha
That particular ticket address the same issue I am talking about.

Regards,

*Nadeeshaan Gunasinghe*
Software Engineer, WSO2 Inc. http://wso2.com
+94770596754 | nadeesh...@wso2.com | Skype: nadeeshaan.gunasinghe <#>

  

Get a signature like this: Click here!


On Tue, Nov 17, 2015 at 3:19 PM, Nadeesha Meegoda 
wrote:

> May be Nadeeshaan is talking about the issue in [1]
>
> [1] - https://wso2.org/jira/browse/STORE-1056
>
> On Tue, Nov 17, 2015 at 2:56 PM, Manuranga Perera  wrote:
>
>> no this is not the correct behavior. can you please attach the saml
>> tracer logs
>>
>> On Tue, Nov 17, 2015 at 2:43 PM, Nadeeshaan Gunasinghe <
>> nadeesh...@wso2.com> wrote:
>>
>>> Adding Manuranga
>>>
>>> *Nadeeshaan Gunasinghe*
>>> Software Engineer, WSO2 Inc. http://wso2.com
>>> +94770596754 | nadeesh...@wso2.com | Skype: nadeeshaan.gunasinghe
>>> <#15114da2e90e77b8_15114c499dbda932_15114b80339f5e9b_>
>>> 
>>>   
>>> 
>>> Get a signature like this: Click here!
>>> 
>>>
>>> On Tue, Nov 17, 2015 at 2:39 PM, Nadeeshaan Gunasinghe <
>>> nadeesh...@wso2.com> wrote:
>>>
 Hi all,

 I am using wso2es-2.0.0, wso2is-5.0.0 to manage SSO. First login to the
 publisher and then try to login to the store. Then I need to login again
 for the store. Is this the default behavior or otherwise how can I solve
 this?

 Regards
 *Nadeeshaan Gunasinghe*
 Software Engineer, WSO2 Inc. http://wso2.com
 +94770596754 | nadeesh...@wso2.com | Skype: nadeeshaan.gunasinghe
 <#15114da2e90e77b8_15114c499dbda932_15114b80339f5e9b_15114b457040984e_>
 
   
   
 Get a signature like this: Click here!
 

>>>
>>>
>>
>>
>> --
>> With regards,
>> *Manu*ranga Perera.
>>
>> phone : 071 7 70 20 50
>> mail : m...@wso2.com
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> *Nadeesha Meegoda*
> Software Engineer - QA
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
> email : nadees...@wso2.com
> mobile: +94783639540
> <%2B94%2077%202273555>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Communicating between two services

2015-11-17 Thread Chamara Philips
Hi Menaka,
 Can you please check the manifest file also, whether it has the action
defined by the name
"iot.carbon.wso2.org.androidsenseagent.util.SensorsDrawerActivity.displayData".
This will be helpful to a conclusion.

Thanks.

On Tue, Nov 17, 2015 at 8:15 PM, Menaka Jayawardena  wrote:

> Hello,
>
> I'm creating an Android application which reads the sensor data and
> publish them to the IOT server.
>
> Here I need to display the sensor data in my Activity.
> The sensor reading is done separately in a service.
>
> My code files are attached herewith.
>
> When I run the application it gives the following exception.
>
>
> 11-17 19:54:42.842 5484-5484/iot.carbon.wso2.org.androidsenseanget
> E/AndroidRuntime: FATAL EXCEPTION: main
> 11-17 19:54:42.842 5484-5484/iot.carbon.wso2.org.androidsenseanget
> E/AndroidRuntime: Process: iot.carbon.wso2.org.androidsenseanget, PID: 5484
> 11-17 19:54:42.842 5484-5484/iot.carbon.wso2.org.androidsenseanget
> E/AndroidRuntime: java.lang.RuntimeException: Error receiving broadcast
> Intent {
> act=iot.carbon.wso2.org.androidsenseagent.util.SensorsDrawerActivity.displayData
> flg=0x10 (has extras) } in
> iot.carbon.wso2.org.androidsenseagent.util.SensorsDrawerActivity$2@772125a
> 11-17 19:54:42.842 5484-5484/iot.carbon.wso2.org.androidsenseanget
> E/AndroidRuntime: at
> android.app.LoadedApk$ReceiverDispatcher$Args.run(LoadedApk.java:882)
> 11-17 19:54:42.842 5484-5484/iot.carbon.wso2.org.androidsenseanget
> E/AndroidRuntime: at android.os.Handler.handleCallback(Handler.java:739)
> 11-17 19:54:42.842 5484-5484/iot.carbon.wso2.org.androidsenseanget
> E/AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:95)
> 11-17 19:54:42.842 5484-5484/iot.carbon.wso2.org.androidsenseanget
> E/AndroidRuntime: at android.os.Looper.loop(Looper.java:211)
> 11-17 19:54:42.842 5484-5484/iot.carbon.wso2.org.androidsenseanget
> E/AndroidRuntime: at
> android.app.ActivityThread.main(ActivityThread.java:5373)
> 11-17 19:54:42.842 5484-5484/iot.carbon.wso2.org.androidsenseanget
> E/AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)
> 11-17 19:54:42.842 5484-5484/iot.carbon.wso2.org.androidsenseanget
> E/AndroidRuntime: at java.lang.reflect.Method.invoke(Method.java:372)
> 11-17 19:54:42.842 5484-5484/iot.carbon.wso2.org.androidsenseanget
> E/AndroidRuntime: at
> com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1020)
> 11-17 19:54:42.842 5484-5484/iot.carbon.wso2.org.androidsenseanget
> E/AndroidRuntime: at
> com.android.internal.os.ZygoteInit.main(ZygoteInit.java:815)
> 11-17 19:54:42.842 5484-5484/iot.carbon.wso2.org.androidsenseanget
> E/AndroidRuntime:  Caused by: java.lang.NullPointerException: println needs
> a message
> 11-17 19:54:42.842 5484-5484/iot.carbon.wso2.org.androidsenseanget
> E/AndroidRuntime: at android.util.Log.println_native(Native Method)
> 11-17 19:54:42.842 5484-5484/iot.carbon.wso2.org.androidsenseanget
> E/AndroidRuntime: at android.util.Log.d(Log.java:139)
> 11-17 19:54:42.842 5484-5484/iot.carbon.wso2.org.androidsenseanget
> E/AndroidRuntime: at
> iot.carbon.wso2.org.androidsenseagent.util.SensorsDrawerActivity.updateUI(SensorsDrawerActivity.java:264)
> 11-17 19:54:42.842 5484-5484/iot.carbon.wso2.org.androidsenseanget
> E/AndroidRuntime: at
> iot.carbon.wso2.org.androidsenseagent.util.SensorsDrawerActivity$2.onReceive(SensorsDrawerActivity.java:258)
> 11-17 19:54:42.842 5484-5484/iot.carbon.wso2.org.androidsenseanget
> E/AndroidRuntime: at
> android.app.LoadedApk$ReceiverDispatcher$Args.run(LoadedApk.java:872)
> 11-17 19:54:42.842 5484-5484/iot.carbon.wso2.org.androidsenseanget
> E/AndroidRuntime: at
> android.os.Handler.handleCallback(Handler.java:739)
> 11-17 19:54:42.842 5484-5484/iot.carbon.wso2.org.androidsenseanget
> E/AndroidRuntime: at
> android.os.Handler.dispatchMessage(Handler.java:95)
> 11-17 19:54:42.842 5484-5484/iot.carbon.wso2.org.androidsenseanget
> E/AndroidRuntime: at android.os.Looper.loop(Looper.java:211)
> 11-17 19:54:42.842 5484-5484/iot.carbon.wso2.org.androidsenseanget
> E/AndroidRuntime: at
> android.app.ActivityThread.main(ActivityThread.java:5373)
> 11-17 19:54:42.842 5484-5484/iot.carbon.wso2.org.androidsenseanget
> E/AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)
> 11-17 19:54:42.842 5484-5484/iot.carbon.wso2.org.androidsenseanget
> E/AndroidRuntime: at java.lang.reflect.Method.invoke(Method.java:372)
> 11-17 19:54:42.842 5484-5484/iot.carbon.wso2.org.androidsenseanget
> E/AndroidRuntime: at
> com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1020)
>
> 11-17 19:54:42.842 5484-5484/iot.carbon.wso2.org.androidsenseanget
> E/AndroidRuntime: at
> com.android.internal.os.ZygoteInit.main(ZygoteInit.java:815)
>
>
> Some one could help me to figure out what the problem is.
>
> Thank you
> Best Regards
> Menaka Madushanka
>
> --
> Menaka 

Re: [Dev] US Election 2016 Tweet Analyze System

2015-11-17 Thread Yasara Dissanayake
Hi,
Currently we are considering only retweets, favorites count and the life
time of the tweet as a factors to select most popular tweets at a
particular time. Can't we consider  friends or followers count as an impact
to become a tweet popular ? Thought because when tweet is produce it will
publish only on the friends account.

Regards,
Yasara

On Tue, Nov 17, 2015 at 1:04 PM, Yasara Dissanayake  wrote:

> Hi Nipuna,
> For our part we have to analyze tweets real time. For that currently we
> are planed to filter retweets by considering presence of retweeted_status
> attribute of a json massage which send by tweet object, within the CEP.
> Does it seems to be a proper method? Do you have any better idea ?
>
> regards,
> Yasara
>
> On Tue, Nov 17, 2015 at 11:12 AM, Nipuna Chandradasa 
> wrote:
>
>> Hi,
>>
>> Is this connector the api provided by twitter?... Then there are few
>> things u have to keep in mind...
>>
>> 1. Twitter api gives each app 15 min waiting period once app collect the
>> data from api So basically you have to wait 15 min to get data again
>>
>> 2. There are no filter system to filter retweets What you can do is
>> get data using search query with date periods And filter retweets in
>> your app
>>
>> Hope you find this helpful
>>
>> Regards,
>> On 17 Nov 2015 10:11 a.m., "Dinali Dabarera"  wrote:
>>
>>> Hi,
>>>
>>> I collected tweets which has hash tag of Trump
>>> #trump,#donaldtrump,#trump2016,#makeamericagreatagain
>>> from ESB through a twitter connector  to SPARK SQL tables in DAS.
>>>
>>> The tweets are seems to be most probably retweets. Is there any issue
>>> with the twitter connector,is it collecting only retweets?
>>>
>>> Cheers!!
>>>
>>> On Tue, Nov 17, 2015 at 8:49 AM, Yasara Dissanayake 
>>> wrote:
>>>


>>>
>>>
>>> --
>>> Dinali Rosemin
>>> University of Peradeniya (Computer Engineering)
>>> WSO2 Intern
>>> 077-0198933
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [Orbit] Adding Spark MLlib 1.4.1wso2v2

2015-11-17 Thread Fazlan Nazeem
Hi,

Can you please review and merge the PR [1] for wso2v2 of the Spark MLlib
1.4.1 orbit bundle?

[1] https://github.com/wso2/orbit/pull/147

-- 
Thanks & Regards,

Fazlan Nazeem

*Software Engineer*

*WSO2 Inc*
Mobile : +94772338839
<%2B94%20%280%29%20773%20451194>
fazl...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] US Election 2016 Tweet Analyze System

2015-11-17 Thread Nipuna Chandradasa
HI Madhawa

Context analysis in the sense we have to perform Natural language
processing right? I think this require additional libraries ... and this is
not yet accurate most of the time if we don't get a right model... as we
dealing with natural languages ..

Regards,

On Tue, Nov 17, 2015 at 2:23 PM, Madhawa Gunasekara 
wrote:

> Hi All,
>
> IMO It's better to do a context analysis on these tweet texts and draw
> separate two graphs, (positive / negative)
>
> Thanks,
> Madhawa
>
> On Tue, Nov 17, 2015 at 2:13 PM, Nipuna Chandradasa 
> wrote:
>
>> Hi,
>>
>> I suggested above for if you are using tweeter API directly  i don't
>> know whether these can be done using wso2 twitter connector.  ... i'll look
>> in to it ..
>> Sorry for the misdirection if above replies are not helpful.
>>
>> Regards,
>>
>> On Tue, Nov 17, 2015 at 2:10 PM, Nipuna Chandradasa 
>> wrote:
>>
>>> Hi Yasara,
>>>
>>> yeah you can check the retweets using retweeted_status as retweets
>>> contains slightly different json structure than tweets. But you have to
>>> keep track of whether your system already analyzed the original tweets of
>>> this retweets ... Because there can be a scenario where your system meet
>>> the retweet before the original tweet you are going to filter out that
>>> tweet and that data is loss..
>>>
>>> [1] link has some answer to this that a way you can edit the search
>>> query to filter out retweets 
>>>
>>> 1.
>>> http://stackoverflow.com/questions/21748880/exclude-retweets-in-twitter-search-api-1-1
>>>
>>> But the i don't know whether this solve the above scenario i mentioned
>>>   But the above mentioned scenario is less likely to happen if it is a
>>> live stream and there are no waiting periods included
>>>
>>> (You both replied while i'm typing the reply so ... following is the new
>>> suggestions .. but please go through above factors. those will help you
>>> understand how tweeter API's work )
>>>
>>> @ Dinali ...
>>>
>>> +1 for your idea ..
>>>
>>> @ Yasara ..
>>>
>>> I think the favorites_count is calculated based on followers and
>>> retweets count ...
>>>
>>> https://dev.twitter.com/faq/finding-%26-counting-things
>>>
>>> Check before you do the same thing in your code.
>>>
>>> Regards,
>>>
>>> On Tue, Nov 17, 2015 at 1:04 PM, Yasara Dissanayake 
>>> wrote:
>>>
 Hi Nipuna,
 For our part we have to analyze tweets real time. For that currently we
 are planed to filter retweets by considering presence of retweeted_status
 attribute of a json massage which send by tweet object, within the CEP.
 Does it seems to be a proper method? Do you have any better idea ?

 regards,
 Yasara

 On Tue, Nov 17, 2015 at 11:12 AM, Nipuna Chandradasa 
 wrote:

> Hi,
>
> Is this connector the api provided by twitter?... Then there are few
> things u have to keep in mind...
>
> 1. Twitter api gives each app 15 min waiting period once app collect
> the data from api So basically you have to wait 15 min to get data
> again
>
> 2. There are no filter system to filter retweets What you can do
> is get data using search query with date periods And filter retweets 
> in
> your app
>
> Hope you find this helpful
>
> Regards,
> On 17 Nov 2015 10:11 a.m., "Dinali Dabarera"  wrote:
>
>> Hi,
>>
>> I collected tweets which has hash tag of Trump
>> #trump,#donaldtrump,#trump2016,#makeamericagreatagain
>> from ESB through a twitter connector  to SPARK SQL tables in DAS.
>>
>> The tweets are seems to be most probably retweets. Is there any issue
>> with the twitter connector,is it collecting only retweets?
>>
>> Cheers!!
>>
>> On Tue, Nov 17, 2015 at 8:49 AM, Yasara Dissanayake 
>> wrote:
>>
>>>
>>>
>>
>>
>> --
>> Dinali Rosemin
>> University of Peradeniya (Computer Engineering)
>> WSO2 Intern
>> 077-0198933
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>

>>>
>>>
>>> --
>>> Nipuna Marcus
>>> *Software Engineer*
>>> WSO2 Inc.
>>> http://wso2.com/ - "lean . enterprise . middleware"
>>> Mobile : +94 (0) 713 667906
>>> nipu...@wso2.com
>>>
>>
>>
>>
>> --
>> Nipuna Marcus
>> *Software Engineer*
>> WSO2 Inc.
>> http://wso2.com/ - "lean . enterprise . middleware"
>> Mobile : +94 (0) 713 667906
>> nipu...@wso2.com
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> *Madhawa Gunasekara*
> Software Engineer
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
>
> mobile: +94 719411002 <+94+719411002>
> blog: 

[Dev] [ES] Has to login again for the store even after logged in to the publisher

2015-11-17 Thread Nadeeshaan Gunasinghe
Hi all,

I am using wso2es-2.0.0, wso2is-5.0.0 to manage SSO. First login to the
publisher and then try to login to the store. Then I need to login again
for the store. Is this the default behavior or otherwise how can I solve
this?

Regards
*Nadeeshaan Gunasinghe*
Software Engineer, WSO2 Inc. http://wso2.com
+94770596754 | nadeesh...@wso2.com | Skype: nadeeshaan.gunasinghe <#>

  

Get a signature like this: Click here!

___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [EMM] Doubt on Server Url to be taken from carbon.xml HostName value or some other configuration.

2015-11-17 Thread Chamara Ariyarathne
Hi Azeez,

Agree with that. However the precedence should be to use the HostName value
in the carbon.xml which is ultimately the deployment's exposed host name,
hence the constructed url in the email would be the correct access url from
outside.

My argument is, this url shouldn't be kept in some other configuration file
repeatedly.

Thanks.

On Wed, Nov 11, 2015 at 7:04 PM, Afkham Azeez  wrote:

> This is for information purposes only. The mail says the URL we send to
> the users in the email contains local host. May be you can get the IP
> address/host from the incoming request and use that.
>
> On Wed, Nov 11, 2015 at 3:59 AM, Geeth Munasinghe  wrote:
>
>> Hi Azeez,
>>
>> In case of URL rewrite by LB, can we handle that by the proxy settings on
>> catalina-server.xml ?
>>
>> Thanks
>> Geeth
>>
>>
>>
>>
>>
>>
>> *G. K. S. Munasinghe*
>> *Senior Software Engineer,*
>> *WSO2, Inc. http://wso2.com  *
>> *lean.enterprise.middleware.*
>>
>> email: ge...@wso2.com
>> phone:(+94) 777911226
>>
>> On Wed, Nov 11, 2015 at 2:10 PM, Afkham Azeez  wrote:
>>
>>> proxy host name
>>>
>>> On Wed, Nov 11, 2015 at 12:28 AM, Chamara Ariyarathne >> > wrote:
>>>
 Hi All,

 When a new user is added to EMM, the user will be notified with an
 email to subscribe a device to MDM domain. The email contains the server
 url to be accessed from the device.

 https://localhost:9443/mdm/enrollment

 In a usual deployment when a EMM cluster is fronted by a LB, this url
 should be changed to the particular gateway host of the deployment. Now a
 doubt arose whether to create this url by taking the value in HostName
 element in carbon.xml or somewhere else.

 So the real doubt here is what is the correct way to configure the
 HostName attribute in the carbon.xml in a carbon server. Is it going to be
 the LB host's url which the deployment is exposed with or is it some local
 host name internal to the deployment?

 --
 *Chamara Ariyarathne*
 Associate Technical Lead - QA
 WSO2 Inc; http://www.wso2.com/
 Mobile; *+94772786766 <%2B94772786766>*

>>>
>>>
>>>
>>> --
>>> *Afkham Azeez*
>>> Director of Architecture; WSO2, Inc.; http://wso2.com
>>> Member; Apache Software Foundation; http://www.apache.org/
>>> * *
>>> *email: **az...@wso2.com* 
>>> * cell: +94 77 3320919 <%2B94%2077%203320919>blog: *
>>> *http://blog.afkham.org* 
>>> *twitter: **http://twitter.com/afkham_azeez*
>>> 
>>> *linked-in: **http://lk.linkedin.com/in/afkhamazeez
>>> *
>>>
>>> *Lean . Enterprise . Middleware*
>>>
>>
>>
>
>
> --
> *Afkham Azeez*
> Director of Architecture; WSO2, Inc.; http://wso2.com
> Member; Apache Software Foundation; http://www.apache.org/
> * *
> *email: **az...@wso2.com* 
> * cell: +94 77 3320919 <%2B94%2077%203320919>blog: *
> *http://blog.afkham.org* 
> *twitter: **http://twitter.com/afkham_azeez*
> 
> *linked-in: **http://lk.linkedin.com/in/afkhamazeez
> *
>
> *Lean . Enterprise . Middleware*
>



-- 
*Chamara Ariyarathne*
Associate Technical Lead - QA
WSO2 Inc; http://www.wso2.com/
Mobile; *+94772786766*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] US Election 2016 Tweet Analyze System

2015-11-17 Thread Yasara Dissanayake
@yudhanjaya
Ok.Now it's working.Popular tweets are now saved to on database base on
that rank from CEP. Wrote custom window for siddi to calculate that rank
and sort them. Currently working with design web page using jaggery server.

Regards
Yasara

On Tue, Nov 17, 2015 at 3:11 PM, Yudhanjaya Wijeratne 
wrote:

> We'll have to talk to Srinath about that, I'm afraid. Let's get the RT
> system rolling first. Whatever we come up with the replies will also have
> to be displayed as part of that graph, so let's get the simpler stuff out
> of the way.
>
> On Tue, Nov 17, 2015 at 2:54 PM, Yasara Dissanayake 
> wrote:
>
>> hi,
>>
>> @Nipuna,
>> Dinali and me both are collecting retweets in same manner which she
>> explained earlier. Since I also consider the details original tweets of
>> retweets. Thank you for comments and link it would be very useful. And
>> about favorite count, isn't it a separate option something like like to the
>> post which can do even non friends? Here I mean the publicity of tweet.
>> that is initially when tweet are published it will be on friends wall. But
>> it has not impact as much as retweet and favorite count.
>>
>> @yudhanjaya
>> And what about the replies? if we consider them there can be +1, 0 and -1
>> support for that tweet. do we have to consider them ? if so do we have to
>> do some analysis?
>>
>> regards,
>> Yasara
>>
>> On Tue, Nov 17, 2015 at 2:38 PM, Yudhanjaya Wijeratne <
>> yudhanj...@wso2.com> wrote:
>>
>>> Hi Madhawa, Nipuna,
>>>
>>> We'll be doing a bit of sentiment analysis later down the line using the
>>> stanford NLP implementation, but for now what we're trying to replicate in
>>> real-time is to
>>> a) rank tweets by freshness and popularity, which can give us some clue
>>> as to opinion influence and b) to basically do this
>>> https://iwringer.wordpress.com/2015/08/25/analysis-of-retweeting-patterns-in-sri-lankan-general-election/
>>>
>>> Best,
>>> Yudha
>>>
>>> On Tue, Nov 17, 2015 at 2:27 PM, Nipuna Chandradasa 
>>> wrote:
>>>
 HI Madhawa

 Context analysis in the sense we have to perform Natural language
 processing right? I think this require additional libraries ... and this is
 not yet accurate most of the time if we don't get a right model... as we
 dealing with natural languages ..

 Regards,

 On Tue, Nov 17, 2015 at 2:23 PM, Madhawa Gunasekara 
 wrote:

> Hi All,
>
> IMO It's better to do a context analysis on these tweet texts and draw
> separate two graphs, (positive / negative)
>
> Thanks,
> Madhawa
>
> On Tue, Nov 17, 2015 at 2:13 PM, Nipuna Chandradasa 
> wrote:
>
>> Hi,
>>
>> I suggested above for if you are using tweeter API directly  i
>> don't know whether these can be done using wso2 twitter connector.  ...
>> i'll look in to it ..
>> Sorry for the misdirection if above replies are not helpful.
>>
>> Regards,
>>
>> On Tue, Nov 17, 2015 at 2:10 PM, Nipuna Chandradasa > > wrote:
>>
>>> Hi Yasara,
>>>
>>> yeah you can check the retweets using retweeted_status as retweets
>>> contains slightly different json structure than tweets. But you have to
>>> keep track of whether your system already analyzed the original tweets 
>>> of
>>> this retweets ... Because there can be a scenario where your system meet
>>> the retweet before the original tweet you are going to filter out that
>>> tweet and that data is loss..
>>>
>>> [1] link has some answer to this that a way you can edit the
>>> search query to filter out retweets 
>>>
>>> 1.
>>> http://stackoverflow.com/questions/21748880/exclude-retweets-in-twitter-search-api-1-1
>>>
>>> But the i don't know whether this solve the above scenario i
>>> mentioned   But the above mentioned scenario is less likely to 
>>> happen
>>> if it is a live stream and there are no waiting periods included
>>>
>>> (You both replied while i'm typing the reply so ... following is the
>>> new suggestions .. but please go through above factors. those will help 
>>> you
>>> understand how tweeter API's work )
>>>
>>> @ Dinali ...
>>>
>>> +1 for your idea ..
>>>
>>> @ Yasara ..
>>>
>>> I think the favorites_count is calculated based on followers and
>>> retweets count ...
>>>
>>> https://dev.twitter.com/faq/finding-%26-counting-things
>>>
>>> Check before you do the same thing in your code.
>>>
>>> Regards,
>>>
>>> On Tue, Nov 17, 2015 at 1:04 PM, Yasara Dissanayake >> > wrote:
>>>
 Hi Nipuna,
 For our part we have to analyze tweets real time. For that
 currently we are planed to filter retweets by considering presence of
 

[Dev] [DEV] [IS] [OAuth] Could not generate access token with token encryption

2015-11-17 Thread Kavitha Subramaniyam
Hi IS team,

I have tried access token generation with token encryption as below and I
couldn't generate a token: jira raised for this issue[1]

Can you please let me know if there are any more configuration needs to be
done ?

Steps:
--

- Modify the configuration for TokenPersistenceProcessor in the
identity.xml.
change this
org.wso2.carbon.identity.oauth.tokenprocessor.PlainTextPersistenceProcessor

to this
org.wso2.carbon.identity.oauth.tokenprocessor.EncryptionDecryptionPersistenceProcessor


- Run the server and create a SP
- Configure OAuth/OpenID connect configuration with OAuth-2.0
- Try access token generation by curl

curl -v -X POST --basic -u
jW5fQYoSfdhzrnGVXTjmnPW23EMa:sZ3M13Bjdd3zWvR6vfdE5qaJZjEa -H
"Content-Type:application/x-www-form-urlencoded;charset=UTF-8" -k -d
"grant_type=password=openid=admin=admin"
https://localhost:9443/oauth2/token



There is no description in IS doc for token encryption: a documentation
jira raised for this[2]


[1] https://wso2.org/jira/browse/IDENTITY-4089

[2] https://wso2.org/jira/browse/DOCUMENTATION-2719


-- 
Kavitha.S
*Software Engineer -QA*
Mobile : +94 (0) 771538811 <%2B94%20%280%29%20773%20451194>
kavi...@wso2.com 
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] US Election 2016 Tweet Analyze System

2015-11-17 Thread Yasara Dissanayake
hi,

@Nipuna,
Dinali and me both are collecting retweets in same manner which she
explained earlier. Since I also consider the details original tweets of
retweets. Thank you for comments and link it would be very useful. And
about favorite count, isn't it a separate option something like like to the
post which can do even non friends? Here I mean the publicity of tweet.
that is initially when tweet are published it will be on friends wall. But
it has not impact as much as retweet and favorite count.

@yudhanjaya
And what about the replies? if we consider them there can be +1, 0 and -1
support for that tweet. do we have to consider them ? if so do we have to
do some analysis?

regards,
Yasara

On Tue, Nov 17, 2015 at 2:38 PM, Yudhanjaya Wijeratne 
wrote:

> Hi Madhawa, Nipuna,
>
> We'll be doing a bit of sentiment analysis later down the line using the
> stanford NLP implementation, but for now what we're trying to replicate in
> real-time is to
> a) rank tweets by freshness and popularity, which can give us some clue as
> to opinion influence and b) to basically do this
> https://iwringer.wordpress.com/2015/08/25/analysis-of-retweeting-patterns-in-sri-lankan-general-election/
>
> Best,
> Yudha
>
> On Tue, Nov 17, 2015 at 2:27 PM, Nipuna Chandradasa 
> wrote:
>
>> HI Madhawa
>>
>> Context analysis in the sense we have to perform Natural language
>> processing right? I think this require additional libraries ... and this is
>> not yet accurate most of the time if we don't get a right model... as we
>> dealing with natural languages ..
>>
>> Regards,
>>
>> On Tue, Nov 17, 2015 at 2:23 PM, Madhawa Gunasekara 
>> wrote:
>>
>>> Hi All,
>>>
>>> IMO It's better to do a context analysis on these tweet texts and draw
>>> separate two graphs, (positive / negative)
>>>
>>> Thanks,
>>> Madhawa
>>>
>>> On Tue, Nov 17, 2015 at 2:13 PM, Nipuna Chandradasa 
>>> wrote:
>>>
 Hi,

 I suggested above for if you are using tweeter API directly  i
 don't know whether these can be done using wso2 twitter connector.  ...
 i'll look in to it ..
 Sorry for the misdirection if above replies are not helpful.

 Regards,

 On Tue, Nov 17, 2015 at 2:10 PM, Nipuna Chandradasa 
 wrote:

> Hi Yasara,
>
> yeah you can check the retweets using retweeted_status as retweets
> contains slightly different json structure than tweets. But you have to
> keep track of whether your system already analyzed the original tweets of
> this retweets ... Because there can be a scenario where your system meet
> the retweet before the original tweet you are going to filter out that
> tweet and that data is loss..
>
> [1] link has some answer to this that a way you can edit the
> search query to filter out retweets 
>
> 1.
> http://stackoverflow.com/questions/21748880/exclude-retweets-in-twitter-search-api-1-1
>
> But the i don't know whether this solve the above scenario i mentioned
>   But the above mentioned scenario is less likely to happen if it is a
> live stream and there are no waiting periods included
>
> (You both replied while i'm typing the reply so ... following is the
> new suggestions .. but please go through above factors. those will help 
> you
> understand how tweeter API's work )
>
> @ Dinali ...
>
> +1 for your idea ..
>
> @ Yasara ..
>
> I think the favorites_count is calculated based on followers and
> retweets count ...
>
> https://dev.twitter.com/faq/finding-%26-counting-things
>
> Check before you do the same thing in your code.
>
> Regards,
>
> On Tue, Nov 17, 2015 at 1:04 PM, Yasara Dissanayake 
> wrote:
>
>> Hi Nipuna,
>> For our part we have to analyze tweets real time. For that currently
>> we are planed to filter retweets by considering presence of
>> retweeted_status attribute of a json massage which send by tweet object,
>> within the CEP. Does it seems to be a proper method? Do you have any 
>> better
>> idea ?
>>
>> regards,
>> Yasara
>>
>> On Tue, Nov 17, 2015 at 11:12 AM, Nipuna Chandradasa <
>> nipu...@wso2.com> wrote:
>>
>>> Hi,
>>>
>>> Is this connector the api provided by twitter?... Then there are few
>>> things u have to keep in mind...
>>>
>>> 1. Twitter api gives each app 15 min waiting period once app collect
>>> the data from api So basically you have to wait 15 min to get data
>>> again
>>>
>>> 2. There are no filter system to filter retweets What you can do
>>> is get data using search query with date periods And filter 
>>> retweets in
>>> your app
>>>
>>> Hope you find this helpful
>>>
>>> Regards,
>>> On 17 Nov 2015 

Re: [Dev] wso2esb 4.8.1 and 4.9.0 different behaviour onError

2015-11-17 Thread Nariman Abdullayev (TD)
Hi Madhuranga,

Thank you for the sample. There is actually full envelope body in your example. 
Using your sample I was able to understand what cause an empty envelope in 
onError sequence.

if you add just two additional parameters to the endpoint:


5000
fault
 

So that endpoint timeout becomes 5 seconds and after timeout an error must be 
thrown (otherwise error sequence is not called)

and point an endpoint to some url which is actually reply after more than 5 
seconds...
For example, I achieve timeout using this simple php script:

XXX';
ob_end_flush();
?>

In this case, when timeout occurs, I get empty envelope...

log file sample, with configured timeout:

[2015-11-16 22:15:10,982]  INFO - LogMediator To: 
/services/InOnlyProxy.InOnlyProxyHttpSoap12Endpoint, MessageID: 
urn:uuid:90c7f86d-d11a-4b13-a058-82c9900fefc4, Direction: request,
 retry_count = null, Envelope: http://schemas.xmlsoap.org/soap/envelope/;>
[2015-11-16 22:15:10,987]  WARN - TimeoutHandler Expiring message ID : 
urn:uuid:8358adc3-08e7-425b-ab62-3419a477439a; dropping message after timeout 
of : 5 seconds
[2015-11-16 22:15:25,978]  INFO - LogMediator To: 
/services/InOnlyProxy.InOnlyProxyHttpSoap12Endpoint, MessageID: 
urn:uuid:01b3c6df-ed0d-4ab5-82fd-5630fb24a115, Direction: request,
 retry_count = 1, Envelope: http://schemas.xmlsoap.org/soap/envelope/;>
[2015-11-16 22:15:25,980]  WARN - TimeoutHandler Expiring message ID : 
urn:uuid:caacc0ec-5750-4580-9eb6-27be7b593be2; dropping message after timeout 
of : 5 seconds
[2015-11-16 22:15:37,416]  WARN - SynapseCallbackReceiver Synapse received a 
response for the request with message Id : 
urn:uuid:8358adc3-08e7-425b-ab62-3419a477439a But a callback
 is not registered (anymore) to process this response
[2015-11-16 22:15:40,978]  INFO - LogMediator To: 
/services/InOnlyProxy.InOnlyProxyHttpSoap12Endpoint, MessageID: 
urn:uuid:9561bc27-15aa-4523-bf26-404761983f11, Direction: request,
 retry_count = 2.0, Envelope: http://schemas.xmlsoap.org/soap/envelope/;>
[2015-11-16 22:15:40,979]  WARN - TimeoutHandler Expiring message ID : 
urn:uuid:80fdc5ae-b31f-42c6-9be6-358c93d8bb4a; dropping message after timeout 
of : 5 seconds

If I deploy the same project to 4.8.1 the SOAP body is not lost. However, in 
4.9.0 SOAP body is not available.. So the question is why there is such a 
difference? is it done on purpose?

for the reference, my endpoint xml:
http://ws.apache.org/ns/synapse;>
  http://localhost/index.php;>
  
  5000
 fault


-1
1.0


-1





Thanks in advance,

Nariman.


On 11/15/2015 08:53 AM, Madhuranga Bandara wrote:
Hi Nariman,

I have tried this in a ESB 4.9.0 fresh pack. Given below is my ESB 
configuration. I could access the SOAP envelop from
"SimpleSQFault" onError sequence.


http://ws.apache.org/ns/synapse;>

15000














http://127.0.0.1:9000/services/SimpleStockQuoteService;>

-1
1.0


-1





http://org.apache.synapse/xsd; 
xmlns:ns3="http://org.apache.synapse/xsd"/>

http://org.apache.synapse/xsd;
xmlns:ns3="http://org.apache.synapse/xsd; 
xpath="get-property('retry_count')">

















http://www.w3.org/2003/05/soap-envelope"/>






































http://localhost:9000.*; source="get-property('To')">







The main sequence for the message mediation



3000
SimpleSQSender





Given below is the ESB Console output. You can see that the soap envelop can be 
access 

Re: [Dev] [Orbit] Adding Spark MLlib 1.4.1wso2v2

2015-11-17 Thread Nirmal Fernando
[Looping Nipuni]

On Tue, Nov 17, 2015 at 1:58 PM, Fazlan Nazeem  wrote:

> Hi,
>
> Can you please review and merge the PR [1] for wso2v2 of the Spark MLlib
> 1.4.1 orbit bundle?
>
> [1] https://github.com/wso2/orbit/pull/147
>
> --
> Thanks & Regards,
>
> Fazlan Nazeem
>
> *Software Engineer*
>
> *WSO2 Inc*
> Mobile : +94772338839
> <%2B94%20%280%29%20773%20451194>
> fazl...@wso2.com
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 

Thanks & regards,
Nirmal

Team Lead - WSO2 Machine Learner
Associate Technical Lead - Data Technologies Team, WSO2 Inc.
Mobile: +94715779733
Blog: http://nirmalfdo.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] is there any issue in adding classloder to connector

2015-11-17 Thread Rajjaz Mohammed
Hi,
for my ejb2 Connector I’m using method[1] to prevent glassfish classloading
issues but according to my Code review i removed the method[1] but I’m
getting error[2]. is there any issue to platform due to keep the method in
my connector? please advice me to solve the issue.

[1]

public void connect(MessageContext messageContext) {
Thread currentThread = Thread.currentThread();
ClassLoader oldClassLoader = currentThread.getContextClassLoader();
try {
currentThread.setContextClassLoader(getClass().getClassLoader());
callEJBStateless(messageContext);
} catch (Exception e) {
handleException("Error in calling EJB Service from
EJB2Connector", e, messageContext);
} finally {
if (oldClassLoader != null) {
currentThread.setContextClassLoader(oldClassLoader);
}
}
}

[2]
javax.naming.NameNotFoundException: Name [HelloBean] is not bound in this
Context. Unable to find [HelloBean].
at org.apache.naming.NamingContext.lookup(NamingContext.java:819)
at org.apache.naming.NamingContext.lookup(NamingContext.java:167)
at
org.wso2.carbon.context.internal.CarbonContextDataHolder$CarbonInitialJNDIContext.lookup(CarbonContextDataHolder.java:705)
at javax.naming.InitialContext.lookup(InitialContext.java:411)
at
org.wso2.carbon.custom.connector.EJBUtil.getEJBObject(EJBUtil.java:197)
at
org.wso2.carbon.custom.connector.EJBStatelessBean.callEJB(EJBStatelessBean.java:61)
at
org.wso2.carbon.custom.connector.EJBStatelessBean.connect(EJBStatelessBean.java:40)
at
org.wso2.carbon.connector.core.AbstractConnector.mediate(AbstractConnector.java:32)
at
org.apache.synapse.mediators.ext.ClassMediator.mediate(ClassMediator.java:78)
at
org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:81)
at
org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:48)
at
org.apache.synapse.mediators.template.TemplateMediator.mediate(TemplateMediator.java:97)
at
org.apache.synapse.mediators.template.InvokeMediator.mediate(InvokeMediator.java:129)
at
org.apache.synapse.mediators.template.InvokeMediator.mediate(InvokeMediator.java:78)
at
org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:81)
at
org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:48)
at
org.apache.synapse.mediators.base.SequenceMediator.mediate(SequenceMediator.java:149)
at
org.apache.synapse.core.axis2.ProxyServiceMessageReceiver.receive(ProxyServiceMessageReceiver.java:185)
at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180)
at
org.apache.synapse.transport.passthru.ServerWorker.processNonEntityEnclosingRESTHandler(ServerWorker.java:317)
at
org.apache.synapse.transport.passthru.ServerWorker.run(ServerWorker.java:149)
at
org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:172)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)






-- 
Thank you
Best Regards

*Rajjaz HM*
Associate Software Engineer
WSO2 Inc. 
lean | enterprise | middleware
Mobile | +94752833834
Email   | raj...@wso2.com
LinkedIn | Blogger | WSO2 Profile

___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] US Election 2016 Tweet Analyze System

2015-11-17 Thread Nipuna Chandradasa
Hi,

I suggested above for if you are using tweeter API directly  i don't
know whether these can be done using wso2 twitter connector.  ... i'll look
in to it ..
Sorry for the misdirection if above replies are not helpful.

Regards,

On Tue, Nov 17, 2015 at 2:10 PM, Nipuna Chandradasa 
wrote:

> Hi Yasara,
>
> yeah you can check the retweets using retweeted_status as retweets
> contains slightly different json structure than tweets. But you have to
> keep track of whether your system already analyzed the original tweets of
> this retweets ... Because there can be a scenario where your system meet
> the retweet before the original tweet you are going to filter out that
> tweet and that data is loss..
>
> [1] link has some answer to this that a way you can edit the search
> query to filter out retweets 
>
> 1.
> http://stackoverflow.com/questions/21748880/exclude-retweets-in-twitter-search-api-1-1
>
> But the i don't know whether this solve the above scenario i mentioned
>   But the above mentioned scenario is less likely to happen if it is a
> live stream and there are no waiting periods included
>
> (You both replied while i'm typing the reply so ... following is the new
> suggestions .. but please go through above factors. those will help you
> understand how tweeter API's work )
>
> @ Dinali ...
>
> +1 for your idea ..
>
> @ Yasara ..
>
> I think the favorites_count is calculated based on followers and retweets
> count ...
>
> https://dev.twitter.com/faq/finding-%26-counting-things
>
> Check before you do the same thing in your code.
>
> Regards,
>
> On Tue, Nov 17, 2015 at 1:04 PM, Yasara Dissanayake 
> wrote:
>
>> Hi Nipuna,
>> For our part we have to analyze tweets real time. For that currently we
>> are planed to filter retweets by considering presence of retweeted_status
>> attribute of a json massage which send by tweet object, within the CEP.
>> Does it seems to be a proper method? Do you have any better idea ?
>>
>> regards,
>> Yasara
>>
>> On Tue, Nov 17, 2015 at 11:12 AM, Nipuna Chandradasa 
>> wrote:
>>
>>> Hi,
>>>
>>> Is this connector the api provided by twitter?... Then there are few
>>> things u have to keep in mind...
>>>
>>> 1. Twitter api gives each app 15 min waiting period once app collect the
>>> data from api So basically you have to wait 15 min to get data again
>>>
>>> 2. There are no filter system to filter retweets What you can do is
>>> get data using search query with date periods And filter retweets in
>>> your app
>>>
>>> Hope you find this helpful
>>>
>>> Regards,
>>> On 17 Nov 2015 10:11 a.m., "Dinali Dabarera"  wrote:
>>>
 Hi,

 I collected tweets which has hash tag of Trump
 #trump,#donaldtrump,#trump2016,#makeamericagreatagain
 from ESB through a twitter connector  to SPARK SQL tables in DAS.

 The tweets are seems to be most probably retweets. Is there any issue
 with the twitter connector,is it collecting only retweets?

 Cheers!!

 On Tue, Nov 17, 2015 at 8:49 AM, Yasara Dissanayake 
 wrote:

>
>


 --
 Dinali Rosemin
 University of Peradeniya (Computer Engineering)
 WSO2 Intern
 077-0198933

 ___
 Dev mailing list
 Dev@wso2.org
 http://wso2.org/cgi-bin/mailman/listinfo/dev


>>
>
>
> --
> Nipuna Marcus
> *Software Engineer*
> WSO2 Inc.
> http://wso2.com/ - "lean . enterprise . middleware"
> Mobile : +94 (0) 713 667906
> nipu...@wso2.com
>



-- 
Nipuna Marcus
*Software Engineer*
WSO2 Inc.
http://wso2.com/ - "lean . enterprise . middleware"
Mobile : +94 (0) 713 667906
nipu...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [ES] Has to login again for the store even after logged in to the publisher

2015-11-17 Thread Manuranga Perera
no this is not the correct behavior. can you please attach the saml tracer
logs

On Tue, Nov 17, 2015 at 2:43 PM, Nadeeshaan Gunasinghe 
wrote:

> Adding Manuranga
>
> *Nadeeshaan Gunasinghe*
> Software Engineer, WSO2 Inc. http://wso2.com
> +94770596754 | nadeesh...@wso2.com | Skype: nadeeshaan.gunasinghe
> <#15114b80339f5e9b_>
> 
>   
> 
> Get a signature like this: Click here!
> 
>
> On Tue, Nov 17, 2015 at 2:39 PM, Nadeeshaan Gunasinghe <
> nadeesh...@wso2.com> wrote:
>
>> Hi all,
>>
>> I am using wso2es-2.0.0, wso2is-5.0.0 to manage SSO. First login to the
>> publisher and then try to login to the store. Then I need to login again
>> for the store. Is this the default behavior or otherwise how can I solve
>> this?
>>
>> Regards
>> *Nadeeshaan Gunasinghe*
>> Software Engineer, WSO2 Inc. http://wso2.com
>> +94770596754 | nadeesh...@wso2.com | Skype: nadeeshaan.gunasinghe
>> <#15114b80339f5e9b_15114b457040984e_>
>> 
>>   
>> 
>> Get a signature like this: Click here!
>> 
>>
>
>


-- 
With regards,
*Manu*ranga Perera.

phone : 071 7 70 20 50
mail : m...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] US Election 2016 Tweet Analyze System

2015-11-17 Thread Nipuna Chandradasa
Hi Yasara,

yeah you can check the retweets using retweeted_status as retweets contains
slightly different json structure than tweets. But you have to keep track
of whether your system already analyzed the original tweets of this
retweets ... Because there can be a scenario where your system meet the
retweet before the original tweet you are going to filter out that tweet
and that data is loss..

[1] link has some answer to this that a way you can edit the search
query to filter out retweets 

1.
http://stackoverflow.com/questions/21748880/exclude-retweets-in-twitter-search-api-1-1

But the i don't know whether this solve the above scenario i mentioned
  But the above mentioned scenario is less likely to happen if it is a
live stream and there are no waiting periods included

(You both replied while i'm typing the reply so ... following is the new
suggestions .. but please go through above factors. those will help you
understand how tweeter API's work )

@ Dinali ...

+1 for your idea ..

@ Yasara ..

I think the favorites_count is calculated based on followers and retweets
count ...

https://dev.twitter.com/faq/finding-%26-counting-things

Check before you do the same thing in your code.

Regards,

On Tue, Nov 17, 2015 at 1:04 PM, Yasara Dissanayake  wrote:

> Hi Nipuna,
> For our part we have to analyze tweets real time. For that currently we
> are planed to filter retweets by considering presence of retweeted_status
> attribute of a json massage which send by tweet object, within the CEP.
> Does it seems to be a proper method? Do you have any better idea ?
>
> regards,
> Yasara
>
> On Tue, Nov 17, 2015 at 11:12 AM, Nipuna Chandradasa 
> wrote:
>
>> Hi,
>>
>> Is this connector the api provided by twitter?... Then there are few
>> things u have to keep in mind...
>>
>> 1. Twitter api gives each app 15 min waiting period once app collect the
>> data from api So basically you have to wait 15 min to get data again
>>
>> 2. There are no filter system to filter retweets What you can do is
>> get data using search query with date periods And filter retweets in
>> your app
>>
>> Hope you find this helpful
>>
>> Regards,
>> On 17 Nov 2015 10:11 a.m., "Dinali Dabarera"  wrote:
>>
>>> Hi,
>>>
>>> I collected tweets which has hash tag of Trump
>>> #trump,#donaldtrump,#trump2016,#makeamericagreatagain
>>> from ESB through a twitter connector  to SPARK SQL tables in DAS.
>>>
>>> The tweets are seems to be most probably retweets. Is there any issue
>>> with the twitter connector,is it collecting only retweets?
>>>
>>> Cheers!!
>>>
>>> On Tue, Nov 17, 2015 at 8:49 AM, Yasara Dissanayake 
>>> wrote:
>>>


>>>
>>>
>>> --
>>> Dinali Rosemin
>>> University of Peradeniya (Computer Engineering)
>>> WSO2 Intern
>>> 077-0198933
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>


-- 
Nipuna Marcus
*Software Engineer*
WSO2 Inc.
http://wso2.com/ - "lean . enterprise . middleware"
Mobile : +94 (0) 713 667906
nipu...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] US Election 2016 Tweet Analyze System

2015-11-17 Thread Dinali Dabarera
hi,
 Thanks for the vote.

On Tue, Nov 17, 2015 at 2:13 PM, Nipuna Chandradasa 
wrote:

> Hi,
>
> I suggested above for if you are using tweeter API directly  i don't
> know whether these can be done using wso2 twitter connector.  ... i'll look
> in to it ..
> Sorry for the misdirection if above replies are not helpful.
>
> Regards,
>
> On Tue, Nov 17, 2015 at 2:10 PM, Nipuna Chandradasa 
> wrote:
>
>> Hi Yasara,
>>
>> yeah you can check the retweets using retweeted_status as retweets
>> contains slightly different json structure than tweets. But you have to
>> keep track of whether your system already analyzed the original tweets of
>> this retweets ... Because there can be a scenario where your system meet
>> the retweet before the original tweet you are going to filter out that
>> tweet and that data is loss..
>>
>> [1] link has some answer to this that a way you can edit the search
>> query to filter out retweets 
>>
>> 1.
>> http://stackoverflow.com/questions/21748880/exclude-retweets-in-twitter-search-api-1-1
>>
>> But the i don't know whether this solve the above scenario i mentioned
>>   But the above mentioned scenario is less likely to happen if it is a
>> live stream and there are no waiting periods included
>>
>> (You both replied while i'm typing the reply so ... following is the new
>> suggestions .. but please go through above factors. those will help you
>> understand how tweeter API's work )
>>
>> @ Dinali ...
>>
>> +1 for your idea ..
>>
>> @ Yasara ..
>>
>> I think the favorites_count is calculated based on followers and retweets
>> count ...
>>
>> https://dev.twitter.com/faq/finding-%26-counting-things
>>
>> Check before you do the same thing in your code.
>>
>> Regards,
>>
>> On Tue, Nov 17, 2015 at 1:04 PM, Yasara Dissanayake 
>> wrote:
>>
>>> Hi Nipuna,
>>> For our part we have to analyze tweets real time. For that currently we
>>> are planed to filter retweets by considering presence of retweeted_status
>>> attribute of a json massage which send by tweet object, within the CEP.
>>> Does it seems to be a proper method? Do you have any better idea ?
>>>
>>> regards,
>>> Yasara
>>>
>>> On Tue, Nov 17, 2015 at 11:12 AM, Nipuna Chandradasa 
>>> wrote:
>>>
 Hi,

 Is this connector the api provided by twitter?... Then there are few
 things u have to keep in mind...

 1. Twitter api gives each app 15 min waiting period once app collect
 the data from api So basically you have to wait 15 min to get data
 again

 2. There are no filter system to filter retweets What you can do is
 get data using search query with date periods And filter retweets in
 your app

 Hope you find this helpful

 Regards,
 On 17 Nov 2015 10:11 a.m., "Dinali Dabarera"  wrote:

> Hi,
>
> I collected tweets which has hash tag of Trump
> #trump,#donaldtrump,#trump2016,#makeamericagreatagain
> from ESB through a twitter connector  to SPARK SQL tables in DAS.
>
> The tweets are seems to be most probably retweets. Is there any issue
> with the twitter connector,is it collecting only retweets?
>
> Cheers!!
>
> On Tue, Nov 17, 2015 at 8:49 AM, Yasara Dissanayake 
> wrote:
>
>>
>>
>
>
> --
> Dinali Rosemin
> University of Peradeniya (Computer Engineering)
> WSO2 Intern
> 077-0198933
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>
>>>
>>
>>
>> --
>> Nipuna Marcus
>> *Software Engineer*
>> WSO2 Inc.
>> http://wso2.com/ - "lean . enterprise . middleware"
>> Mobile : +94 (0) 713 667906
>> nipu...@wso2.com
>>
>
>
>
> --
> Nipuna Marcus
> *Software Engineer*
> WSO2 Inc.
> http://wso2.com/ - "lean . enterprise . middleware"
> Mobile : +94 (0) 713 667906
> nipu...@wso2.com
>



-- 
Dinali Rosemin
University of Peradeniya (Computer Engineering)
WSO2 Intern
077-0198933
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [ES] Has to login again for the store even after logged in to the publisher

2015-11-17 Thread Nadeeshaan Gunasinghe
Adding Manuranga

*Nadeeshaan Gunasinghe*
Software Engineer, WSO2 Inc. http://wso2.com
+94770596754 | nadeesh...@wso2.com | Skype: nadeeshaan.gunasinghe <#>

  

Get a signature like this: Click here!


On Tue, Nov 17, 2015 at 2:39 PM, Nadeeshaan Gunasinghe 
wrote:

> Hi all,
>
> I am using wso2es-2.0.0, wso2is-5.0.0 to manage SSO. First login to the
> publisher and then try to login to the store. Then I need to login again
> for the store. Is this the default behavior or otherwise how can I solve
> this?
>
> Regards
> *Nadeeshaan Gunasinghe*
> Software Engineer, WSO2 Inc. http://wso2.com
> +94770596754 | nadeesh...@wso2.com | Skype: nadeeshaan.gunasinghe
> <#15114b457040984e_>
> 
>   
> 
> Get a signature like this: Click here!
> 
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [ES] Has to login again for the store even after logged in to the publisher

2015-11-17 Thread Nadeesha Meegoda
May be Nadeeshaan is talking about the issue in [1]

[1] - https://wso2.org/jira/browse/STORE-1056

On Tue, Nov 17, 2015 at 2:56 PM, Manuranga Perera  wrote:

> no this is not the correct behavior. can you please attach the saml tracer
> logs
>
> On Tue, Nov 17, 2015 at 2:43 PM, Nadeeshaan Gunasinghe <
> nadeesh...@wso2.com> wrote:
>
>> Adding Manuranga
>>
>> *Nadeeshaan Gunasinghe*
>> Software Engineer, WSO2 Inc. http://wso2.com
>> +94770596754 | nadeesh...@wso2.com | Skype: nadeeshaan.gunasinghe
>> <#15114c499dbda932_15114b80339f5e9b_>
>> 
>>   
>> 
>> Get a signature like this: Click here!
>> 
>>
>> On Tue, Nov 17, 2015 at 2:39 PM, Nadeeshaan Gunasinghe <
>> nadeesh...@wso2.com> wrote:
>>
>>> Hi all,
>>>
>>> I am using wso2es-2.0.0, wso2is-5.0.0 to manage SSO. First login to the
>>> publisher and then try to login to the store. Then I need to login again
>>> for the store. Is this the default behavior or otherwise how can I solve
>>> this?
>>>
>>> Regards
>>> *Nadeeshaan Gunasinghe*
>>> Software Engineer, WSO2 Inc. http://wso2.com
>>> +94770596754 | nadeesh...@wso2.com | Skype: nadeeshaan.gunasinghe
>>> <#15114c499dbda932_15114b80339f5e9b_15114b457040984e_>
>>> 
>>>   
>>> 
>>> Get a signature like this: Click here!
>>> 
>>>
>>
>>
>
>
> --
> With regards,
> *Manu*ranga Perera.
>
> phone : 071 7 70 20 50
> mail : m...@wso2.com
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*Nadeesha Meegoda*
Software Engineer - QA
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware
email : nadees...@wso2.com
mobile: +94783639540
<%2B94%2077%202273555>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] OAuth clientId in SP_INBOUND_AUTH

2015-11-17 Thread Pushpalanka Jayawardhana
Hi Nuwan,

We are going forward with not encrypting the consumer key.  Started working
on this will be tracked via [1].
There are few more encryption concerns related to session store and
authorization code storage as well. Will provide the details of the
approach to be taken ASAP.

[1] - https://wso2.org/jira/browse/IDENTITY-4088

Thanks,
Pushpalanka.
-- 
Pushpalanka Jayawardhana, B.Sc.Eng.(Hons).
Senior Software Engineer, WSO2 Lanka (pvt) Ltd;  wso2.com/
Mobile: +94779716248
Blog: pushpalankajaya.blogspot.com/ | LinkedIn:
lk.linkedin.com/in/pushpalanka/ | Twitter: @pushpalanka


On Tue, Nov 17, 2015 at 10:39 AM, Nuwan Dias  wrote:

> Hi IS folks,
>
> We talked about avoiding the encryption of the consumer key to avoid the
> issue originally raised on this mail thread. Are we going ahead with that
> decision? It still encrypts it on carbon-identity_5.0.2 release.
>
> Please note that this results in a blocking issue for the release of API
> Manager 1.10.0. Therefore we either need to stop encrypting it altogether
> or find another solution for this problem. And we need it ASAP :)
>
> Thanks,
> NuwanD.
>
> On Tue, Oct 20, 2015 at 2:38 PM, Nuwan Dias  wrote:
>
>> Hi,
>>
>> When we enable key encryption for OAuth keys, the clientId is encrypted
>> in the IDN_OAUTH_CONSUMER_APPS table. But it is left in plain text in the
>> INBOUND_AUTH_KEY column of the SP_INBOUND_AUTH table. This happens in
>> carbon-identity_4.6.0-M2 release. Should not values in both columns be
>> encrypted?
>>
>> Thanks,
>> NuwanD.
>>
>> --
>> Nuwan Dias
>>
>> Technical Lead - WSO2, Inc. http://wso2.com
>> email : nuw...@wso2.com
>> Phone : +94 777 775 729
>>
>
>
>
> --
> Nuwan Dias
>
> Technical Lead - WSO2, Inc. http://wso2.com
> email : nuw...@wso2.com
> Phone : +94 777 775 729
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] wso2esb 4.8.1 and 4.9.0 different behaviour onError

2015-11-17 Thread Nariman Abdullayev (TD)
Hi Madhuranga,

Thank you for the sample. There is actually full envelope body in your example. 
Using your sample I was able to understand what cause an empty envelope in 
onError sequence.

if you add just two additional parameters to the endpoint:


5000
fault
 

So that endpoint timeout becomes 5 seconds and after timeout an error must be 
thrown (otherwise error sequence is not called)

and point an endpoint to some url which is actually reply after more than 5 
seconds...
For example, I achieve timeout using this simple php script:

XXX';
ob_end_flush();
?>

In this case, when timeout occurs, I get empty envelope...

log file sample, with configured timeout:

[2015-11-16 22:15:10,982]  INFO - LogMediator To: 
/services/InOnlyProxy.InOnlyProxyHttpSoap12Endpoint, MessageID: 
urn:uuid:90c7f86d-d11a-4b13-a058-82c9900fefc4, Direction: request,
 retry_count = null, Envelope: http://schemas.xmlsoap.org/soap/envelope/;>
[2015-11-16 22:15:10,987]  WARN - TimeoutHandler Expiring message ID : 
urn:uuid:8358adc3-08e7-425b-ab62-3419a477439a; dropping message after timeout 
of : 5 seconds
[2015-11-16 22:15:25,978]  INFO - LogMediator To: 
/services/InOnlyProxy.InOnlyProxyHttpSoap12Endpoint, MessageID: 
urn:uuid:01b3c6df-ed0d-4ab5-82fd-5630fb24a115, Direction: request,
 retry_count = 1, Envelope: http://schemas.xmlsoap.org/soap/envelope/;>
[2015-11-16 22:15:25,980]  WARN - TimeoutHandler Expiring message ID : 
urn:uuid:caacc0ec-5750-4580-9eb6-27be7b593be2; dropping message after timeout 
of : 5 seconds
[2015-11-16 22:15:37,416]  WARN - SynapseCallbackReceiver Synapse received a 
response for the request with message Id : 
urn:uuid:8358adc3-08e7-425b-ab62-3419a477439a But a callback
 is not registered (anymore) to process this response
[2015-11-16 22:15:40,978]  INFO - LogMediator To: 
/services/InOnlyProxy.InOnlyProxyHttpSoap12Endpoint, MessageID: 
urn:uuid:9561bc27-15aa-4523-bf26-404761983f11, Direction: request,
 retry_count = 2.0, Envelope: http://schemas.xmlsoap.org/soap/envelope/;>
[2015-11-16 22:15:40,979]  WARN - TimeoutHandler Expiring message ID : 
urn:uuid:80fdc5ae-b31f-42c6-9be6-358c93d8bb4a; dropping message after timeout 
of : 5 seconds

If I deploy the same project to 4.8.1 the SOAP body is not lost. However, in 
4.9.0 SOAP body is not available.. So the question is why there is such a 
difference? is it done on purpose?

for the reference, my endpoint xml:
http://ws.apache.org/ns/synapse>"http://ws.apache.org/ns/synapse;>
  http://localhost/index.php;>
  
  5000
 fault


-1
1.0


-1





Thanks in advance,

Nariman.


On 11/15/2015 08:53 AM, Madhuranga Bandara wrote:
Hi Nariman,

I have tried this in a ESB 4.9.0 fresh pack. Given below is my ESB 
configuration. I could access the SOAP envelop from
"SimpleSQFault" onError sequence.


http://ws.apache.org/ns/synapse;>

15000














http://127.0.0.1:9000/services/SimpleStockQuoteService;>

-1
1.0


-1





http://org.apache.synapse/xsd; 
xmlns:ns3="http://org.apache.synapse/xsd"/>

http://org.apache.synapse/xsd;
xmlns:ns3="http://org.apache.synapse/xsd; 
xpath="get-property('retry_count')">

















http://www.w3.org/2003/05/soap-envelope"/>






































http://localhost:9000.*; source="get-property('To')">







The main sequence for the message mediation



3000
SimpleSQSender





Given below is the ESB Console output. You can see 

Re: [Dev] US Election 2016 Tweet Analyze System

2015-11-17 Thread Dinali Dabarera
Hi ,
Me and Yasara working on the same project but she is using WSO2 twitter
connector with  CEP  and I am with DAS through ESB. When I collect tweets
to the persistent tabel in DAS they are mostly retweets. I have not found
any original tweet or replies.

I am collecting all tweets on hash tags of trump and calculating no of re
tweets in order to draw a community graph. Because of this problem  i am
getting the tweet count of the parent twee, irrespective of the re-tweet as
a solution for this matter.

So does anybody have any solutions for this problems or any other comments
on my decision.?


Cheers!


On Tue, Nov 17, 2015 at 1:04 PM, Yasara Dissanayake  wrote:

> Hi Nipuna,
> For our part we have to analyze tweets real time. For that currently we
> are planed to filter retweets by considering presence of retweeted_status
> attribute of a json massage which send by tweet object, within the CEP.
> Does it seems to be a proper method? Do you have any better idea ?
>
> regards,
> Yasara
>
> On Tue, Nov 17, 2015 at 11:12 AM, Nipuna Chandradasa 
> wrote:
>
>> Hi,
>>
>> Is this connector the api provided by twitter?... Then there are few
>> things u have to keep in mind...
>>
>> 1. Twitter api gives each app 15 min waiting period once app collect the
>> data from api So basically you have to wait 15 min to get data again
>>
>> 2. There are no filter system to filter retweets What you can do is
>> get data using search query with date periods And filter retweets in
>> your app
>>
>> Hope you find this helpful
>>
>> Regards,
>> On 17 Nov 2015 10:11 a.m., "Dinali Dabarera"  wrote:
>>
>>> Hi,
>>>
>>> I collected tweets which has hash tag of Trump
>>> #trump,#donaldtrump,#trump2016,#makeamericagreatagain
>>> from ESB through a twitter connector  to SPARK SQL tables in DAS.
>>>
>>> The tweets are seems to be most probably retweets. Is there any issue
>>> with the twitter connector,is it collecting only retweets?
>>>
>>> Cheers!!
>>>
>>> On Tue, Nov 17, 2015 at 8:49 AM, Yasara Dissanayake 
>>> wrote:
>>>


>>>
>>>
>>> --
>>> Dinali Rosemin
>>> University of Peradeniya (Computer Engineering)
>>> WSO2 Intern
>>> 077-0198933
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>


-- 
Dinali Rosemin
University of Peradeniya (Computer Engineering)
WSO2 Intern
077-0198933
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] US Election 2016 Tweet Analyze System

2015-11-17 Thread Madhawa Gunasekara
Hi All,

IMO It's better to do a context analysis on these tweet texts and draw
separate two graphs, (positive / negative)

Thanks,
Madhawa

On Tue, Nov 17, 2015 at 2:13 PM, Nipuna Chandradasa 
wrote:

> Hi,
>
> I suggested above for if you are using tweeter API directly  i don't
> know whether these can be done using wso2 twitter connector.  ... i'll look
> in to it ..
> Sorry for the misdirection if above replies are not helpful.
>
> Regards,
>
> On Tue, Nov 17, 2015 at 2:10 PM, Nipuna Chandradasa 
> wrote:
>
>> Hi Yasara,
>>
>> yeah you can check the retweets using retweeted_status as retweets
>> contains slightly different json structure than tweets. But you have to
>> keep track of whether your system already analyzed the original tweets of
>> this retweets ... Because there can be a scenario where your system meet
>> the retweet before the original tweet you are going to filter out that
>> tweet and that data is loss..
>>
>> [1] link has some answer to this that a way you can edit the search
>> query to filter out retweets 
>>
>> 1.
>> http://stackoverflow.com/questions/21748880/exclude-retweets-in-twitter-search-api-1-1
>>
>> But the i don't know whether this solve the above scenario i mentioned
>>   But the above mentioned scenario is less likely to happen if it is a
>> live stream and there are no waiting periods included
>>
>> (You both replied while i'm typing the reply so ... following is the new
>> suggestions .. but please go through above factors. those will help you
>> understand how tweeter API's work )
>>
>> @ Dinali ...
>>
>> +1 for your idea ..
>>
>> @ Yasara ..
>>
>> I think the favorites_count is calculated based on followers and retweets
>> count ...
>>
>> https://dev.twitter.com/faq/finding-%26-counting-things
>>
>> Check before you do the same thing in your code.
>>
>> Regards,
>>
>> On Tue, Nov 17, 2015 at 1:04 PM, Yasara Dissanayake 
>> wrote:
>>
>>> Hi Nipuna,
>>> For our part we have to analyze tweets real time. For that currently we
>>> are planed to filter retweets by considering presence of retweeted_status
>>> attribute of a json massage which send by tweet object, within the CEP.
>>> Does it seems to be a proper method? Do you have any better idea ?
>>>
>>> regards,
>>> Yasara
>>>
>>> On Tue, Nov 17, 2015 at 11:12 AM, Nipuna Chandradasa 
>>> wrote:
>>>
 Hi,

 Is this connector the api provided by twitter?... Then there are few
 things u have to keep in mind...

 1. Twitter api gives each app 15 min waiting period once app collect
 the data from api So basically you have to wait 15 min to get data
 again

 2. There are no filter system to filter retweets What you can do is
 get data using search query with date periods And filter retweets in
 your app

 Hope you find this helpful

 Regards,
 On 17 Nov 2015 10:11 a.m., "Dinali Dabarera"  wrote:

> Hi,
>
> I collected tweets which has hash tag of Trump
> #trump,#donaldtrump,#trump2016,#makeamericagreatagain
> from ESB through a twitter connector  to SPARK SQL tables in DAS.
>
> The tweets are seems to be most probably retweets. Is there any issue
> with the twitter connector,is it collecting only retweets?
>
> Cheers!!
>
> On Tue, Nov 17, 2015 at 8:49 AM, Yasara Dissanayake 
> wrote:
>
>>
>>
>
>
> --
> Dinali Rosemin
> University of Peradeniya (Computer Engineering)
> WSO2 Intern
> 077-0198933
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>
>>>
>>
>>
>> --
>> Nipuna Marcus
>> *Software Engineer*
>> WSO2 Inc.
>> http://wso2.com/ - "lean . enterprise . middleware"
>> Mobile : +94 (0) 713 667906
>> nipu...@wso2.com
>>
>
>
>
> --
> Nipuna Marcus
> *Software Engineer*
> WSO2 Inc.
> http://wso2.com/ - "lean . enterprise . middleware"
> Mobile : +94 (0) 713 667906
> nipu...@wso2.com
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*Madhawa Gunasekara*
Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware

mobile: +94 719411002 <+94+719411002>
blog: *http://madhawa-gunasekara.blogspot.com
*
linkedin: *http://lk.linkedin.com/in/mgunasekara
*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] "400 text : Bad Request" When trying to provision a previously deleted user from Sales force

2015-11-17 Thread Harsha Thirimanna
Hi Gayan,

Is that right to use existing salesforce user account for some other users
even though the user name is the same ? There can be some more information
updated in that profile after create this account. If it is not a problem
then no issue.

There was an one suggestion in there community site [1]

[1]
https://help.salesforce.com/apex/HTViewSolution?id=000175924=en_US


*Harsha Thirimanna*
Senior Software Engineer; WSO2, Inc.; http://wso2.com
* *
*email: **hars...@wso2.com* * cell: +94 71 5186770 *
*twitter: **http://twitter.com/ *
*harshathirimannlinked-in: **http:
**//www.linkedin.com/pub/harsha-thirimanna/10/ab8/122
*

*Lean . Enterprise . Middleware*


On Wed, Nov 18, 2015 at 11:40 AM, Gayan Gunawardana  wrote:

> $subject regarding reported jira [a]
>
> Use Case : Configure Sales force as Outbound provisioning connector. In
> resident Identity Provider select Sales force configured IDP for Outbound
> Provisioning Configuration. When users are added through management console
> or SCIM users will be provisioned to Sales force while adding to Identity
> Server.
>
> Special Case : With above configuration add a user to identity server
> (from management console). User will be added to Identity Server as well as
> Sales force.
> Delete the user from management console now user will be deleted from
> Identity Server and in Sales force user will be marked as Inactive. Up to
> now this is expected behavior.
> Once we try to add, deleted user again user will be added to Identity
> Server but Sales force provisioning will be failed. Sales force
> provisioning connector receive "400 Bad request" response from sales force
> side. Basically if we try to provision a user with same name as previously
> provisioned inactive user sales force send "400 Bad request" back to client
> without activating inactive user or without creating new user.
>
> Possible Resolution:
>
> 1. Provisioning create user should be modified to check if user previously
> provisioned do user active operation and if not do a user create operation.
> There is a negative impact of by doing so because different users may have
> same username.
>
> 2. Restrict adding previously deleted users when Outbound Provisioning is
> configured.
>
> Also do we need to abort user adding process when Outbound Provisioning is
> failed ?
>
> WDYT ?
>
> [a] https://wso2.org/jira/browse/IDENTITY-4074
> --
> Gayan Gunawardana
> Software Engineer; WSO2 Inc.; http://wso2.com/
> Email: ga...@wso2.com
> Mobile: +94 (71) 8020933
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [ESB][Connector] Redmine Connector - Adding getVersion Operation

2015-11-17 Thread Lakmini Chathurika
Hi,

 I want to get list of the versions available for the project of given id
or identifier (:project_id). The response may include shared versions from
other projects. Current connector does not support this requirement. I have
created the JIRA[1] and add the PR[2]. Could you please review and merge
this.

[1]https://wso2.org/jira/browse/ESBCONNECT-72
[2]https://github.com/wso2/esb-connectors/pull/417

Thanks & Regards,
Lakmini.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [DEV] [IS] Setting up IDP using Configuration Files

2015-11-17 Thread Chamara Philips
Hi Nadeesha,

true seems not
the correct way to set the element. It should be set as follows.


theUserStoreClaimUri
theUserStoreName
true


Please give the correct values. Can you please check with this
configuration.

Thanks.

On Tue, Nov 17, 2015 at 6:33 PM, Nadeesha Meegoda 
wrote:

> Hi all,
>
> In IS 5.1.0 documentation listed in [1] only lists how to add an IDP as
> SAML via the configuration files. What about the other Federated
> Authenticator configurations such as Google/Yahoo/MSN/Open Id-Connect etc?
> (Jira regarding this created in [2])
>
> Also enabling the JIT provisioning via the IDP configured in file system
> doesn't really seem to work. Added the property as the following :
>
>  true
>
> How can we configure to which User-store these users should be provisioned
> to?
>
> [1] -
> https://docs.wso2.com/display/IS510/Configuring+a+SP+and+IdP+Using+Configuration+Files
> [2] - https://wso2.org/jira/browse/DOCUMENTATION-2723
>
> Thanks
>
> --
> *Nadeesha Meegoda*
> Software Engineer - QA
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
> email : nadees...@wso2.com
> mobile: +94783639540
> <%2B94%2077%202273555>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Hareendra Chamara Philips
*Software  Engineer*
Mobile : +94 (0) 767 184161 <%2B94%20%280%29%20773%20451194>
chama...@wso2.com 
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] "400 text : Bad Request" When trying to provision a previously deleted user from Sales force

2015-11-17 Thread Gayan Gunawardana
$subject regarding reported jira [a]

Use Case : Configure Sales force as Outbound provisioning connector. In
resident Identity Provider select Sales force configured IDP for Outbound
Provisioning Configuration. When users are added through management console
or SCIM users will be provisioned to Sales force while adding to Identity
Server.

Special Case : With above configuration add a user to identity server (from
management console). User will be added to Identity Server as well as Sales
force.
Delete the user from management console now user will be deleted from
Identity Server and in Sales force user will be marked as Inactive. Up to
now this is expected behavior.
Once we try to add, deleted user again user will be added to Identity
Server but Sales force provisioning will be failed. Sales force
provisioning connector receive "400 Bad request" response from sales force
side. Basically if we try to provision a user with same name as previously
provisioned inactive user sales force send "400 Bad request" back to client
without activating inactive user or without creating new user.

Possible Resolution:

1. Provisioning create user should be modified to check if user previously
provisioned do user active operation and if not do a user create operation.
There is a negative impact of by doing so because different users may have
same username.

2. Restrict adding previously deleted users when Outbound Provisioning is
configured.

Also do we need to abort user adding process when Outbound Provisioning is
failed ?

WDYT ?

[a] https://wso2.org/jira/browse/IDENTITY-4074
-- 
Gayan Gunawardana
Software Engineer; WSO2 Inc.; http://wso2.com/
Email: ga...@wso2.com
Mobile: +94 (71) 8020933
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Clustering Governance Registry 5.1.0

2015-11-17 Thread Praneesha Chandrasiri
Copying Samuel for any clustering doc updates.

On Wed, Nov 18, 2015 at 10:48 AM, Pubudu Fernando  wrote:

> Hi,
>
> I'm trying to create a cluster for Governance Registry 5.1.0, following
> the instructions given at (the documentation for GR 5.1.0 [1] points to
> [2]) [2]. In step 2 of [3], it says to use a file at 
> $GREG_HOME/dbscripts/apimgt/mysql.sql.
> However, in GR 5.1.0, there isn't any folder called apimgt in dbscripts
> folder. How should I proceed with this?
>
> [1] https://docs.wso2.com/display/Governance510/Clustered+Deployment
> [2]
> https://docs.wso2.com/display/CLUSTER44x/Clustering+Governance+Registry+5.0.0
>
> [3]
> https://docs.wso2.com/display/CLUSTER44x/Clustering+Governance+Registry+5.0.0#ClusteringGovernanceRegistry5.0.0-CreatingtheDBmountsforthecluster
>
> Thanks.
>
> *Pubudu Fernando*
> Software Engineering Intern
> WSO2 Inc.
> mobile: +94 77 888 2543
> skype: pubudu.fernando
>
> --
> You received this message because you are subscribed to the Google Groups
> "WSO2 Documentation Group" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to documentation+unsubscr...@wso2.com.
> For more options, visit https://groups.google.com/a/wso2.com/d/optout.
>



-- 
Thanks & Best Regards,
*Praneesha Chandrasiri*
*Technical Writer*
*WSO2 Inc. *
*Mobile: +(94) 718156888*
*E-mail: pranee...@wso2.com *
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Clustering Governance Registry 5.1.0

2015-11-17 Thread Dharshana Warusavitharana
Hi Samuel,

Seems like G-Reg clustering documentation was not updated from 4.6.0 to
5.x.x . These file paths were not used since apim features being installed
to G-Reg

Thank you,
Dharshana.

On Wed, Nov 18, 2015 at 12:00 PM, Praneesha Chandrasiri 
wrote:

> Copying Samuel for any clustering doc updates.
>
> On Wed, Nov 18, 2015 at 10:48 AM, Pubudu Fernando 
> wrote:
>
>> Hi,
>>
>> I'm trying to create a cluster for Governance Registry 5.1.0, following
>> the instructions given at (the documentation for GR 5.1.0 [1] points to
>> [2]) [2]. In step 2 of [3], it says to use a file at 
>> $GREG_HOME/dbscripts/apimgt/mysql.sql.
>> However, in GR 5.1.0, there isn't any folder called apimgt in dbscripts
>> folder. How should I proceed with this?
>>
>> [1] https://docs.wso2.com/display/Governance510/Clustered+Deployment
>> [2]
>> https://docs.wso2.com/display/CLUSTER44x/Clustering+Governance+Registry+5.0.0
>>
>> [3]
>> https://docs.wso2.com/display/CLUSTER44x/Clustering+Governance+Registry+5.0.0#ClusteringGovernanceRegistry5.0.0-CreatingtheDBmountsforthecluster
>>
>> Thanks.
>>
>> *Pubudu Fernando*
>> Software Engineering Intern
>> WSO2 Inc.
>> mobile: +94 77 888 2543
>> skype: pubudu.fernando
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "WSO2 Documentation Group" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to documentation+unsubscr...@wso2.com.
>> For more options, visit https://groups.google.com/a/wso2.com/d/optout.
>>
>
>
>
> --
> Thanks & Best Regards,
> *Praneesha Chandrasiri*
> *Technical Writer*
> *WSO2 Inc. *
> *Mobile: +(94) 718156888 <%2B%2894%29%20718156888>*
> *E-mail: pranee...@wso2.com *
>
>


-- 

Dharshana Warusavitharana
Senior Software Engineer , Test Automation
WSO2 Inc. http://wso2.com
email : dharsha...@wso2.com 
Tel  : +94 11 214 5345
Fax :+94 11 2145300
cell : +94770342233
blog : http://dharshanaw.blogspot.com

lean . enterprise . middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Clustering Governance Registry 5.1.0

2015-11-17 Thread Samuel Gnaniah
Will talk to the team and update this.

Thanks,
Sam

*Samuel Gnaniah*
Lead Technical Writer

WSO2 (pvt.) Ltd.
Colombo, Sri Lanka
(+94) 773131798

On Wed, Nov 18, 2015 at 12:11 PM, Dharshana Warusavitharana <
dharsha...@wso2.com> wrote:

> Hi Samuel,
>
> Seems like G-Reg clustering documentation was not updated from 4.6.0 to
> 5.x.x . These file paths were not used since apim features being installed
> to G-Reg
>
> Thank you,
> Dharshana.
>
> On Wed, Nov 18, 2015 at 12:00 PM, Praneesha Chandrasiri <
> pranee...@wso2.com> wrote:
>
>> Copying Samuel for any clustering doc updates.
>>
>> On Wed, Nov 18, 2015 at 10:48 AM, Pubudu Fernando 
>> wrote:
>>
>>> Hi,
>>>
>>> I'm trying to create a cluster for Governance Registry 5.1.0, following
>>> the instructions given at (the documentation for GR 5.1.0 [1] points to
>>> [2]) [2]. In step 2 of [3], it says to use a file at 
>>> $GREG_HOME/dbscripts/apimgt/mysql.sql.
>>> However, in GR 5.1.0, there isn't any folder called apimgt in dbscripts
>>> folder. How should I proceed with this?
>>>
>>> [1] https://docs.wso2.com/display/Governance510/Clustered+Deployment
>>> [2]
>>> https://docs.wso2.com/display/CLUSTER44x/Clustering+Governance+Registry+5.0.0
>>>
>>> [3]
>>> https://docs.wso2.com/display/CLUSTER44x/Clustering+Governance+Registry+5.0.0#ClusteringGovernanceRegistry5.0.0-CreatingtheDBmountsforthecluster
>>>
>>> Thanks.
>>>
>>> *Pubudu Fernando*
>>> Software Engineering Intern
>>> WSO2 Inc.
>>> mobile: +94 77 888 2543
>>> skype: pubudu.fernando
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "WSO2 Documentation Group" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to documentation+unsubscr...@wso2.com.
>>> For more options, visit https://groups.google.com/a/wso2.com/d/optout.
>>>
>>
>>
>>
>> --
>> Thanks & Best Regards,
>> *Praneesha Chandrasiri*
>> *Technical Writer*
>> *WSO2 Inc. *
>> *Mobile: +(94) 718156888 <%2B%2894%29%20718156888>*
>> *E-mail: pranee...@wso2.com *
>>
>>
>
>
> --
>
> Dharshana Warusavitharana
> Senior Software Engineer , Test Automation
> WSO2 Inc. http://wso2.com
> email : dharsha...@wso2.com 
> Tel  : +94 11 214 5345
> Fax :+94 11 2145300
> cell : +94770342233
> blog : http://dharshanaw.blogspot.com
>
> lean . enterprise . middleware
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] "400 text : Bad Request" When trying to provision a previously deleted user from Sales force

2015-11-17 Thread Chamara Ariyarathne
On Wed, Nov 18, 2015 at 11:40 AM, Gayan Gunawardana  wrote:

> $subject regarding reported jira [a]
>
> Use Case : Configure Sales force as Outbound provisioning connector. In
> resident Identity Provider select Sales force configured IDP for Outbound
> Provisioning Configuration. When users are added through management console
> or SCIM users will be provisioned to Sales force while adding to Identity
> Server.
>
> Special Case : With above configuration add a user to identity server
> (from management console). User will be added to Identity Server as well as
> Sales force.
> Delete the user from management console now user will be deleted from
> Identity Server and in Sales force user will be marked as Inactive. Up to
> now this is expected behavior.
> Once we try to add, deleted user again user will be added to Identity
> Server but Sales force provisioning will be failed. Sales force
> provisioning connector receive "400 Bad request" response from sales force
> side. Basically if we try to provision a user with same name as previously
> provisioned inactive user sales force send "400 Bad request" back to client
> without activating inactive user or without creating new user.
>
> Possible Resolution:
>
> 1. Provisioning create user should be modified to check if user previously
> provisioned do user active operation and if not do a user create operation.
> There is a negative impact of by doing so because different users may have
> same username.
>

This sounds more like a good approach. What is the possibility of different
user having same username? Is it happening as in different domains?

>
> 2. Restrict adding previously deleted users when Outbound Provisioning is
> configured.
>

This may turn out to be a limitation in Identity Server.

>
> Also do we need to abort user adding process when Outbound Provisioning is
> failed ?
>
> WDYT ?
>
> [a] https://wso2.org/jira/browse/IDENTITY-4074
> --
> Gayan Gunawardana
> Software Engineer; WSO2 Inc.; http://wso2.com/
> Email: ga...@wso2.com
> Mobile: +94 (71) 8020933
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*Chamara Ariyarathne*
Associate Technical Lead - QA
WSO2 Inc; http://www.wso2.com/
Mobile; *+94772786766*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev