Re: [Dev] [Orbit] Request to merge eclipse-paho-mqtt 1.0.2.wso2v1 orbit

2016-01-22 Thread Shabir Mohamed
Hi All,

Please note both the PRs have been dropped and closed due to the newest
eclipse-paho-mqtt version (1.0.2) already being OSGI ready.

In the IoTS, we were using an older version of the library (0.4.0) which
was NOT OSGI-ready and required to be orbitted.
Whilst trying to integrate MB features into the IoTS, we realised that the
latest paho-mqtt version was 1.0.2, hence we also had to change our version
to this newest one.

However, I was in the impression that this new version was also NOT
OSGI-ready like the older one which we had used. Since, the move to the new
version was essential and given my wrong-assumption that it was NOT
OSGI-ready I created this orbit bundle.

Sorry for all inconveniences caused.


Thanks

-
*Shabir Mohamed*
*Software Engineer*
WSO2 Inc.; http://wso2.com
Email: sha...@wso2.com 
Mobile: +94 77 3516019 | +94 71 6583393

On Fri, Jan 22, 2016 at 4:32 PM, Shabir Mohamed  wrote:

> Hi,
>
> I had to recreate the PR from another new branch since updating the
> indentation from "tab" to "spaces" would not get reflected.
> Please close earlier PR [1] and merger this new one with the suggested
> changes [2]:
>
> Old PR [1]: https://github.com/wso2/orbit/pull/164
> New PR [2]: https://github.com/wso2/orbit/pull/167
>
> Thanks
>
> -
> *Shabir Mohamed*
> *Software Engineer*
> WSO2 Inc.; http://wso2.com
> Email: sha...@wso2.com 
> Mobile: +94 77 3516019 | +94 71 6583393
>
> On Fri, Jan 22, 2016 at 12:05 PM, Shabir Mohamed  wrote:
>
>> Hi,
>>
>> Please review and merge the PR [1].
>> [1] https://github.com/wso2/orbit/pull/164
>>
>> *Find library approval request mail with subject:*
>> *"Please Approve 3rd party library Eclipse-Paho-MQTT for MQTT support in
>> CDMF"*
>>
>> Thanks
>> -
>> *Shabir Mohamed*
>> *Software Engineer*
>> WSO2 Inc.; http://wso2.com
>> Email: sha...@wso2.com 
>> Mobile: +94 77 3516019 | +94 71 6583393
>>
>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [VOTE] Release WSO2 Microservices Server 1.0.0 RC4

2016-01-22 Thread Isuru Perera
+1
[x] Stable

I tested following samples.

   - helloworld
   - metrics-httpmon-mss-lite
   - metrics-httpmon-mss-bundle
   - metrics-httpmon-mss-deployable-jar


Tested WSO2 DAS configuration and HTTP Monitoring Dashboard. I used WSO2
DAS 3.0.0.

All HTTP events were shown in the dashboard.
All Metrics data were available in DAS. I checked using the Data Explorer
in DAS.

On Tue, Jan 19, 2016 at 5:49 PM, Samiyuru Senarathne 
wrote:

> Hi Devs,
>
> This is the 4th Release Candidate of WSO2 Microservices Server 1.0.0.
>
> Please download, test the product and vote.
>
> *​Source and binary distribution files:*
> *https://github.com/wso2/product-mss/releases/tag/v1.0.0-RC4
> *
>
> *Maven staging repository:*
> http://maven.wso2.org/nexus/content/repositories/orgwso2carbonmss-298/
>
> *The tag to be voted upon:*
> *https://github.com/wso2/product-mss/tree/v1.0.0-RC4
> *
>
>
> [ ] Broken - do not release (explain why)
> [ ] Stable - go ahead and release
>
> Note: Since the artifacts that have to be uploaded to the maven central
> are not yet uploaded, please make sure to first build the project from the
> source in order to make all artifacts available in the maven local
> repository.
>
> Thank you,
> Carbon Team
>
> --
> Samiyuru Senarathne
> *Software Engineer*
> Mobile : +94 (0) 71 134 6087
> samiy...@wso2.com
>



-- 
Isuru Perera
Associate Technical Lead | WSO2, Inc. | http://wso2.com/
Lean . Enterprise . Middleware

about.me/chrishantha
Contact: +IsuruPereraWSO2 
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] US Election 2016 Tweet Analyze System

2016-01-22 Thread Yasara Dissanayake
Hi Yudhayaja,
This is more zoomed view.
Regards,
Yasara

On Fri, Jan 22, 2016 at 4:39 PM, Yudhanjaya Wijeratne 
wrote:

> Thanks for the update, Yasara. Due to the very small scale that I used the
> human line may appear almost horizontal to 0. I noticed every other
> algorithm used larger figures. So we may not be seeing the variations
> (relatively). Could you use a 5x multiplier and let me know what happens?
>
> Thanks,
> Yudha
>
> On Fri, Jan 22, 2016 at 4:34 PM, Yasara Dissanayake 
> wrote:
>
>> Hi,
>> Graph compare with human manual read rates.
>>
>> Regards
>> Yasara.
>>
>> On Fri, Jan 22, 2016 at 4:26 PM, Yasara Dissanayake 
>> wrote:
>>
>>> Hi Yudhanjaya,
>>> This the sentiment results[1][2] for above articles using following
>>> sentimental algorithms
>>>
>>>1. Using Naive Bayes Algorithm
>>>2. Standard sentimental analysis: Using positive negative word bucket
>>>3. Afinn sentimental analysis: Using positive negative value for
>>>each word
>>>4. Stanford NLP in 3 forms
>>>
>>> *Stanford Sentiment Method A:Predict each sentence positivity ,
>>> negativity and  getting summation.** And for score use deducting 2 from
>>> originally return sentiment score from library*
>>>
>>> Score for each sentence=-2: "Very Negative"
>>>
>>> Score for each sentence=-1: "Negative"
>>>
>>> Score for each sentence=0: "Neutral"
>>>
>>> Score for each sentence=1: "Positive"
>>>
>>> Score for each sentence=2: "Very Positive"
>>>
>>> *Stanford Sentiment Method B:Use main sentiment as longest sentence.And 
>>> took Rank as longest_sentence_score*length_of_longest_sentence*
>>>
>>> *Stanford Sentiment Method C: **Predict each sentence positivity ,
>>> negativity and  getting summation. And for score use originally return
>>> sentiment score from library*
>>> Score for each sentence=0: "Very Negative"
>>> Score for each sentence=1:"Negative"
>>> Score for each sentence=2:"Neutral"
>>> Score for each sentence=3:"Positive"
>>> Score for each sentence=4: "Very Positive"
>>>
>>> Regards,
>>>
>>> Yasara.
>>>
>>>
>>>
>>>
>>
>
>
> --
> Yudhanjaya Wijeratne
> Marketing Officer, WSO2 Inc 
> +94775496911 | @yudhanjaya
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [DEV][AS] Ideas and ways to integrate with Hot Swap Agent

2016-01-22 Thread Clovis Wichoski
Hi Kishanthan,

The redeploy all of a small system its ok, but for a big one, its a
problem, just a change in one class you must redeploy, loose sessions,
restart the system from scratch, to reach the point of test again, with the
ideas used by HotSwapAgent they act on reloading only that one class
changed, this way speeds the development time, these ideas are well
defended by JRebel tool, that HotSwapAgent tends to be a choice as an open
source solution. Please note that this feature is only needed for
development phase, in production, the scheduled task its ok.

I mean time I tested with AS 5.3.0, JRebel and HotSwapAgent, JRebel trial
worked as expected, but HotSwapAgent not (see exception bellow [1]), I will
check these problems with HotSwapAgent devs, and try to discover why dont
works with WSO2 AS as with HotSwapAgent active none of webapps load, all
get that exception, as we see a NPE in class CarbonWebappClassLoader maybe
its the way they initialize the dependent class loaders.

[1] Exception when HotSwapAgent is active:
[2016-01-22 09:14:18,467] ERROR {org.apache.catalina.core.ContainerBase} -
ContainerBase.addChild: start:
org.apache.catalina.LifecycleException: Failed to start component
[StandardEngine[Catalina].StandardHost[localhost].StandardContext[/example]]
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:649)
at
org.wso2.carbon.tomcat.internal.CarbonTomcat.addWebApp(CarbonTomcat.java:344)
at
org.wso2.carbon.tomcat.internal.CarbonTomcat.addWebApp(CarbonTomcat.java:252)
at
org.wso2.carbon.webapp.mgt.TomcatGenericWebappsDeployer.handleWebappDeployment(TomcatGenericWebappsDeployer.java:314)
at
org.wso2.carbon.webapp.mgt.TomcatGenericWebappsDeployer.handleWarWebappDeployment(TomcatGenericWebappsDeployer.java:212)
at
org.wso2.carbon.webapp.mgt.TomcatGenericWebappsDeployer.handleHotDeployment(TomcatGenericWebappsDeployer.java:179)
at
org.wso2.carbon.webapp.mgt.TomcatGenericWebappsDeployer.deploy(TomcatGenericWebappsDeployer.java:144)
at
org.wso2.carbon.webapp.mgt.AbstractWebappDeployer.deployThisWebApp(AbstractWebappDeployer.java:224)
at
org.wso2.carbon.webapp.mgt.AbstractWebappDeployer.deploy(AbstractWebappDeployer.java:114)
at
org.wso2.carbon.webapp.deployer.WebappDeployer.deploy(WebappDeployer.java:42)
at
org.apache.axis2.deployment.repository.util.DeploymentFileData.deploy(DeploymentFileData.java:136)
at
org.apache.axis2.deployment.DeploymentEngine.doDeploy(DeploymentEngine.java:807)
at
org.apache.axis2.deployment.repository.util.WSInfoList.update(WSInfoList.java:144)
at
org.apache.axis2.deployment.RepositoryListener.update(RepositoryListener.java:377)
at
org.apache.axis2.deployment.RepositoryListener.checkServices(RepositoryListener.java:254)
at
org.apache.axis2.deployment.DeploymentEngine.loadServices(DeploymentEngine.java:135)
at
org.wso2.carbon.core.CarbonAxisConfigurator.deployServices(CarbonAxisConfigurator.java:567)
at
org.wso2.carbon.core.internal.DeploymentServerStartupObserver.completingServerStartup(DeploymentServerStartupObserver.java:51)
at
org.wso2.carbon.core.internal.CarbonCoreServiceComponent.notifyBefore(CarbonCoreServiceComponent.java:235)
at
org.wso2.carbon.core.internal.StartupFinalizerServiceComponent.completeInitialization(StartupFinalizerServiceComponent.java:185)
at
org.wso2.carbon.core.internal.StartupFinalizerServiceComponent.serviceChanged(StartupFinalizerServiceComponent.java:288)
at
org.eclipse.osgi.internal.serviceregistry.FilteredServiceListener.serviceChanged(FilteredServiceListener.java:107)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent(BundleContextImpl.java:861)
at
org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
at
org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148)
at
org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEventPrivileged(ServiceRegistry.java:819)
at
org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEvent(ServiceRegistry.java:771)
at
org.eclipse.osgi.internal.serviceregistry.ServiceRegistrationImpl.register(ServiceRegistrationImpl.java:130)
at
org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.registerService(ServiceRegistry.java:214)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(BundleContextImpl.java:433)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(BundleContextImpl.java:451)
at
org.wso2.carbon.throttling.agent.internal.ThrottlingAgentServiceComponent.registerThrottlingAgent(ThrottlingAgentServiceComponent.java:123)
at
org.wso2.car

Re: [Dev] [VOTE] Release WSO2 Microservices Server 1.0.0 RC4

2016-01-22 Thread Lakmal Warusawithana
Hi,

Petstore sample is failing to me. :(

Setting up k8s and docker images work as expected. But front end admin UI
not allowed to add pet categories. Its re directing to login page. I have
tested with chrome in mac.

@Dakshika, did you changed something in login/redirect ?




On Tue, Jan 19, 2016 at 5:49 PM, Samiyuru Senarathne 
wrote:

> Hi Devs,
>
> This is the 4th Release Candidate of WSO2 Microservices Server 1.0.0.
>
> Please download, test the product and vote.
>
> *​Source and binary distribution files:*
> *https://github.com/wso2/product-mss/releases/tag/v1.0.0-RC4
> *
>
> *Maven staging repository:*
> http://maven.wso2.org/nexus/content/repositories/orgwso2carbonmss-298/
>
> *The tag to be voted upon:*
> *https://github.com/wso2/product-mss/tree/v1.0.0-RC4
> *
>
>
> [ ] Broken - do not release (explain why)
> [ ] Stable - go ahead and release
>
> Note: Since the artifacts that have to be uploaded to the maven central
> are not yet uploaded, please make sure to first build the project from the
> source in order to make all artifacts available in the maven local
> repository.
>
> Thank you,
> Carbon Team
>
> --
> Samiyuru Senarathne
> *Software Engineer*
> Mobile : +94 (0) 71 134 6087
> samiy...@wso2.com
>



-- 
Lakmal Warusawithana
Director - Cloud Architecture; WSO2 Inc.
Mobile : +94714289692
Blog : http://lakmalsview.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] US Election 2016 Tweet Analyze System

2016-01-22 Thread Yasara Dissanayake
Hi,
Graph compare with human manual read rates.

Regards
Yasara.

On Fri, Jan 22, 2016 at 4:26 PM, Yasara Dissanayake  wrote:

> Hi Yudhanjaya,
> This the sentiment results[1][2] for above articles using following
> sentimental algorithms
>
>1. Using Naive Bayes Algorithm
>2. Standard sentimental analysis: Using positive negative word bucket
>3. Afinn sentimental analysis: Using positive negative value for each
>word
>4. Stanford NLP in 3 forms
>
> *Stanford Sentiment Method A:Predict each sentence positivity , negativity
> and  getting summation.** And for score use deducting 2 from originally
> return sentiment score from library*
>
> Score for each sentence=-2: "Very Negative"
>
> Score for each sentence=-1: "Negative"
>
> Score for each sentence=0: "Neutral"
>
> Score for each sentence=1: "Positive"
>
> Score for each sentence=2: "Very Positive"
>
> *Stanford Sentiment Method B:Use main sentiment as longest sentence.And took 
> Rank as longest_sentence_score*length_of_longest_sentence*
>
> *Stanford Sentiment Method C: **Predict each sentence positivity ,
> negativity and  getting summation. And for score use originally return
> sentiment score from library*
> Score for each sentence=0: "Very Negative"
> Score for each sentence=1:"Negative"
> Score for each sentence=2:"Neutral"
> Score for each sentence=3:"Positive"
> Score for each sentence=4: "Very Positive"
>
> Regards,
>
> Yasara.
>
>
>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Orbit] Request to merge eclipse-paho-mqtt 1.0.2.wso2v1 orbit

2016-01-22 Thread Shabir Mohamed
Hi,

I had to recreate the PR from another new branch since updating the
indentation from "tab" to "spaces" would not get reflected.
Please close earlier PR [1] and merger this new one with the suggested
changes [2]:

Old PR [1]: https://github.com/wso2/orbit/pull/164
New PR [2]: https://github.com/wso2/orbit/pull/167

Thanks

-
*Shabir Mohamed*
*Software Engineer*
WSO2 Inc.; http://wso2.com
Email: sha...@wso2.com 
Mobile: +94 77 3516019 | +94 71 6583393

On Fri, Jan 22, 2016 at 12:05 PM, Shabir Mohamed  wrote:

> Hi,
>
> Please review and merge the PR [1].
> [1] https://github.com/wso2/orbit/pull/164
>
> *Find library approval request mail with subject:*
> *"Please Approve 3rd party library Eclipse-Paho-MQTT for MQTT support in
> CDMF"*
>
> Thanks
> -
> *Shabir Mohamed*
> *Software Engineer*
> WSO2 Inc.; http://wso2.com
> Email: sha...@wso2.com 
> Mobile: +94 77 3516019 | +94 71 6583393
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] How to select Leader/Contributer node in a cluster

2016-01-22 Thread Amila Maha Arachchi
Cool.

On Fri, Jan 22, 2016 at 3:10 PM, Nipuna Prashan  wrote:

> Hi Amila,
>
> I tried in a clustered environment with two nodes, but
> ClusteringAgent#isCoordinator method didn't work in 4.2.0. I found a
> patch for this. Now it's working.
>
> Thanks all.
>
> On Fri, Jan 22, 2016 at 10:52 AM, Ramith Jayasinghe 
> wrote:
> > MB also elects a leader/coordinator for the cluster (based on hezelcast.)
> >
> > On Fri, Jan 22, 2016 at 10:48 AM, Amila Maha Arachchi 
> > wrote:
> >>
> >> Nipun,
> >>
> >> May be you need to try it in a clustered environment or at least
> >> clustering enabled. I assume you tried this with a single server.
> >>
> >> On Wed, Jan 20, 2016 at 9:42 AM, Nipuna Prashan 
> wrote:
> >>>
> >>> Hi Krishanthan,
> >>>
> >>> Cloud team has developed three osgi components to delete tenants, but
> >>> tenant deletion has to be done manually by adding components to
> >>> dropping folder when we want to start tenant deletion. Now, my project
> >>> is to automate this process by making one osgi component for every
> >>> server and the component will be in the server every time.
> >>>
> >>> AxisConfiguration serverAxisConfig =
> >>>
> >>>
> ServiceHolder.getConfigurationContextService().getServerConfigContext().getAxisConfiguration();
> >>> ClusteringAgent agent = serverAxisConfig.getClusteringAgent();
> >>> boolean isCoordinator = agent.isCoordinator();
> >>>
> >>> I tried this, but this always returns false.
> >>>
> >>> On Tue, Jan 19, 2016 at 9:08 PM, Kishanthan Thangarajah
> >>>  wrote:
> >>> > IIRC, we already have a way (tool) to delete tenants in a cluster
> which
> >>> > is
> >>> > used by cloud team. So what's the requirement for this component
> here?
> >>> >
> >>> > With hazelcast based clustering, we assume that the first (oldest)
> >>> > member as
> >>> > the coordinator for the cluster. We set this member as the
> coordinator
> >>> > and
> >>> > you can check whether the current node is the coordinator using
> >>> > ClusteringAgent#isCoordinator method.
> >>> >
> >>> > On Mon, Jan 18, 2016 at 6:24 PM, Nipuna Prashan 
> >>> > wrote:
> >>> >>
> >>> >> Hi all,
> >>> >>
> >>> >> I am building an osgi component for tenant deletion task. This will
> be
> >>> >> deployed in every server (APIM, AS, AF, BAM, IS..). I have a
> >>> >> requirement to
> >>> >> do this task in one node in the cluster while there is no single
> point
> >>> >> of
> >>> >> failure. Only one node should start deletion while other nodes
> waiting
> >>> >> on
> >>> >> the same server.
> >>> >> Is there a way to find the leader node/ contributor in a cluster?
> Any
> >>> >> help
> >>> >> would be appreciated.
> >>> >>
> >>> >>
> >>> >>
> >>> >> --
> >>> >> Nipuna Prashan
> >>> >> Software Engineering Intern
> >>> >> +94711852792
> >>> >
> >>> >
> >>> >
> >>> >
> >>> > --
> >>> > Kishanthan Thangarajah
> >>> > Associate Technical Lead,
> >>> > Platform Technologies Team,
> >>> > WSO2, Inc.
> >>> > lean.enterprise.middleware
> >>> >
> >>> > Mobile - +94773426635
> >>> > Blog - http://kishanthan.wordpress.com
> >>> > Twitter - http://twitter.com/kishanthan
> >>>
> >>>
> >>>
> >>> --
> >>> Nipuna Prashan
> >>> Software Engineering Intern
> >>> +94711852792
> >>
> >>
> >>
> >>
> >> --
> >> Amila Maharachchi
> >> Senior Technical Lead
> >> WSO2, Inc.; http://wso2.com
> >>
> >> Blog: http://maharachchi.blogspot.com
> >> Mobile: +94719371446
> >>
> >>
> >> ___
> >> Dev mailing list
> >> Dev@wso2.org
> >> http://wso2.org/cgi-bin/mailman/listinfo/dev
> >>
> >
> >
> >
> > --
> > Ramith Jayasinghe
> > Technical Lead
> > WSO2 Inc., http://wso2.com
> > lean.enterprise.middleware
> >
> > E: ram...@wso2.com
> > P: +94 777542851
> >
>
>
>
> --
> Nipuna Prashan
> Software Engineering Intern
> +94711852792
>



-- 
*Amila Maharachchi*
Senior Technical Lead
WSO2, Inc.; http://wso2.com

Blog: http://maharachchi.blogspot.com
Mobile: +94719371446
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [VOTE] Release WSO2 Microservices Server 1.0.0 RC4

2016-01-22 Thread Thusitha Thilina Dayaratne
Hi,

Tested few samples in the pack. Didn't found any issues.

[x] - Stable - Go ahead and release.

Thanks
Thusitha

On Fri, Jan 22, 2016 at 3:31 PM, Samiyuru Senarathne 
wrote:

> Hi
>
> [x] Stable - go ahead and release.
>
> I tested,
> - MSS-Lite, Deployable-Jar, Bundle deployment methods
> - JSON, XML bean conversions
> - Http monitoring dashboard
> - Compression
>
> Did not find issues.
>
> Best regards,
> Samiyuru
>
> On Tue, Jan 19, 2016 at 5:49 PM, Samiyuru Senarathne 
> wrote:
>
>> Hi Devs,
>>
>> This is the 4th Release Candidate of WSO2 Microservices Server 1.0.0.
>>
>> Please download, test the product and vote.
>>
>> *​Source and binary distribution files:*
>> *https://github.com/wso2/product-mss/releases/tag/v1.0.0-RC4
>> *
>>
>> *Maven staging repository:*
>> http://maven.wso2.org/nexus/content/repositories/orgwso2carbonmss-298/
>>
>> *The tag to be voted upon:*
>> *https://github.com/wso2/product-mss/tree/v1.0.0-RC4
>> *
>>
>>
>> [ ] Broken - do not release (explain why)
>> [ ] Stable - go ahead and release
>>
>> Note: Since the artifacts that have to be uploaded to the maven central
>> are not yet uploaded, please make sure to first build the project from the
>> source in order to make all artifacts available in the maven local
>> repository.
>>
>> Thank you,
>> Carbon Team
>>
>> --
>> Samiyuru Senarathne
>> *Software Engineer*
>> Mobile : +94 (0) 71 134 6087
>> samiy...@wso2.com
>>
>
>
>
> --
> Samiyuru Senarathne
> *Software Engineer*
> Mobile : +94 (0) 71 134 6087
> samiy...@wso2.com
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Thusitha Dayaratne
Software Engineer
WSO2 Inc. - lean . enterprise . middleware |  wso2.com

Mobile  +94712756809
Blog  alokayasoya.blogspot.com
Abouthttp://about.me/thusithathilina
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [VOTE] Release WSO2 Microservices Server 1.0.0 RC4

2016-01-22 Thread Samiyuru Senarathne
Hi

[x] Stable - go ahead and release.

I tested,
- MSS-Lite, Deployable-Jar, Bundle deployment methods
- JSON, XML bean conversions
- Http monitoring dashboard
- Compression

Did not find issues.

Best regards,
Samiyuru

On Tue, Jan 19, 2016 at 5:49 PM, Samiyuru Senarathne 
wrote:

> Hi Devs,
>
> This is the 4th Release Candidate of WSO2 Microservices Server 1.0.0.
>
> Please download, test the product and vote.
>
> *​Source and binary distribution files:*
> *https://github.com/wso2/product-mss/releases/tag/v1.0.0-RC4
> *
>
> *Maven staging repository:*
> http://maven.wso2.org/nexus/content/repositories/orgwso2carbonmss-298/
>
> *The tag to be voted upon:*
> *https://github.com/wso2/product-mss/tree/v1.0.0-RC4
> *
>
>
> [ ] Broken - do not release (explain why)
> [ ] Stable - go ahead and release
>
> Note: Since the artifacts that have to be uploaded to the maven central
> are not yet uploaded, please make sure to first build the project from the
> source in order to make all artifacts available in the maven local
> repository.
>
> Thank you,
> Carbon Team
>
> --
> Samiyuru Senarathne
> *Software Engineer*
> Mobile : +94 (0) 71 134 6087
> samiy...@wso2.com
>



-- 
Samiyuru Senarathne
*Software Engineer*
Mobile : +94 (0) 71 134 6087
samiy...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [VOTE] Release WSO2 Microservices Server 1.0.0 RC4

2016-01-22 Thread Kishanthan Thangarajah
[X] Stable - go ahead and release

Tested the security scenarios with WSO2 IS 5.1.0 and introspect endpoint
along with basic deployment scenarios on lite mode.

Thanks,
Kishanthan.

On Tue, Jan 19, 2016 at 5:49 PM, Samiyuru Senarathne 
wrote:

> Hi Devs,
>
> This is the 4th Release Candidate of WSO2 Microservices Server 1.0.0.
>
> Please download, test the product and vote.
>
> *​Source and binary distribution files:*
> *https://github.com/wso2/product-mss/releases/tag/v1.0.0-RC4
> *
>
> *Maven staging repository:*
> http://maven.wso2.org/nexus/content/repositories/orgwso2carbonmss-298/
>
> *The tag to be voted upon:*
> *https://github.com/wso2/product-mss/tree/v1.0.0-RC4
> *
>
>
> [ ] Broken - do not release (explain why)
> [ ] Stable - go ahead and release
>
> Note: Since the artifacts that have to be uploaded to the maven central
> are not yet uploaded, please make sure to first build the project from the
> source in order to make all artifacts available in the maven local
> repository.
>
> Thank you,
> Carbon Team
>
> --
> Samiyuru Senarathne
> *Software Engineer*
> Mobile : +94 (0) 71 134 6087
> samiy...@wso2.com
>



-- 
*Kishanthan Thangarajah*
Associate Technical Lead,
Platform Technologies Team,
WSO2, Inc.
lean.enterprise.middleware

Mobile - +94773426635
Blog - *http://kishanthan.wordpress.com *
Twitter - *http://twitter.com/kishanthan *
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] How to select Leader/Contributer node in a cluster

2016-01-22 Thread Nipuna Prashan
Hi Amila,

I tried in a clustered environment with two nodes, but
ClusteringAgent#isCoordinator method didn't work in 4.2.0. I found a
patch for this. Now it's working.

Thanks all.

On Fri, Jan 22, 2016 at 10:52 AM, Ramith Jayasinghe  wrote:
> MB also elects a leader/coordinator for the cluster (based on hezelcast.)
>
> On Fri, Jan 22, 2016 at 10:48 AM, Amila Maha Arachchi 
> wrote:
>>
>> Nipun,
>>
>> May be you need to try it in a clustered environment or at least
>> clustering enabled. I assume you tried this with a single server.
>>
>> On Wed, Jan 20, 2016 at 9:42 AM, Nipuna Prashan  wrote:
>>>
>>> Hi Krishanthan,
>>>
>>> Cloud team has developed three osgi components to delete tenants, but
>>> tenant deletion has to be done manually by adding components to
>>> dropping folder when we want to start tenant deletion. Now, my project
>>> is to automate this process by making one osgi component for every
>>> server and the component will be in the server every time.
>>>
>>> AxisConfiguration serverAxisConfig =
>>>
>>> ServiceHolder.getConfigurationContextService().getServerConfigContext().getAxisConfiguration();
>>> ClusteringAgent agent = serverAxisConfig.getClusteringAgent();
>>> boolean isCoordinator = agent.isCoordinator();
>>>
>>> I tried this, but this always returns false.
>>>
>>> On Tue, Jan 19, 2016 at 9:08 PM, Kishanthan Thangarajah
>>>  wrote:
>>> > IIRC, we already have a way (tool) to delete tenants in a cluster which
>>> > is
>>> > used by cloud team. So what's the requirement for this component here?
>>> >
>>> > With hazelcast based clustering, we assume that the first (oldest)
>>> > member as
>>> > the coordinator for the cluster. We set this member as the coordinator
>>> > and
>>> > you can check whether the current node is the coordinator using
>>> > ClusteringAgent#isCoordinator method.
>>> >
>>> > On Mon, Jan 18, 2016 at 6:24 PM, Nipuna Prashan 
>>> > wrote:
>>> >>
>>> >> Hi all,
>>> >>
>>> >> I am building an osgi component for tenant deletion task. This will be
>>> >> deployed in every server (APIM, AS, AF, BAM, IS..). I have a
>>> >> requirement to
>>> >> do this task in one node in the cluster while there is no single point
>>> >> of
>>> >> failure. Only one node should start deletion while other nodes waiting
>>> >> on
>>> >> the same server.
>>> >> Is there a way to find the leader node/ contributor in a cluster? Any
>>> >> help
>>> >> would be appreciated.
>>> >>
>>> >>
>>> >>
>>> >> --
>>> >> Nipuna Prashan
>>> >> Software Engineering Intern
>>> >> +94711852792
>>> >
>>> >
>>> >
>>> >
>>> > --
>>> > Kishanthan Thangarajah
>>> > Associate Technical Lead,
>>> > Platform Technologies Team,
>>> > WSO2, Inc.
>>> > lean.enterprise.middleware
>>> >
>>> > Mobile - +94773426635
>>> > Blog - http://kishanthan.wordpress.com
>>> > Twitter - http://twitter.com/kishanthan
>>>
>>>
>>>
>>> --
>>> Nipuna Prashan
>>> Software Engineering Intern
>>> +94711852792
>>
>>
>>
>>
>> --
>> Amila Maharachchi
>> Senior Technical Lead
>> WSO2, Inc.; http://wso2.com
>>
>> Blog: http://maharachchi.blogspot.com
>> Mobile: +94719371446
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>
>
>
> --
> Ramith Jayasinghe
> Technical Lead
> WSO2 Inc., http://wso2.com
> lean.enterprise.middleware
>
> E: ram...@wso2.com
> P: +94 777542851
>



-- 
Nipuna Prashan
Software Engineering Intern
+94711852792
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Getting ML model (1.1.0) working with DAS (3.0.0)

2016-01-22 Thread Nirmal Fernando
Hi Iranga,


On Fri, Jan 22, 2016 at 3:00 PM, Iranga Muthuthanthri 
wrote:

> Hi,
>
> In order to build an integrated  analytics scenario (Batch, Realtime and
> Predictive)  with DAS 3.0.0 tried the following steps in a local server
> though by installing and using CEP-ML extension in DAS. The steps followed
> are below.
>
> 1.) Installed ML 1.1.0  features in DAS 3.0.0.
> 2) Created a model through ML 1.1.0 .
> 3.)  Publish model to DAS registry .
> 4.) Use the ML extention through execution plan.
>
>  The following exceptions is observed at Server startup, possibly due to
> the  issue  of "supporting multiple Spark context in a jvm"[2].  Can start
> the server with command wso2server.sh -DdisableAnalyticsSparkCtx=true
>

Instead of doing this, do -DdisableMLSparkCtx=true this would disable ML
Spark Context creation but predictions should still work.



>
> However this prevents using the batch analytics features in DAS,
>
> Is there a  solution to get all three integrated analytics with DAS
> 3.0.0?Is there a way use the ML model to overcome issue[2]
>
>
>
>
>
> [1]2016-01-22 12:09:58,193] ERROR
> {org.wso2.carbon.analytics.spark.core.internal.AnalyticsComponent} -  Error
> initializing analytics executor: Only one SparkContext may be running in
> this JVM (see SPARK-2243). To ignore this error, set
> spark.driver.allowMultipleContexts = true. The currently running
> SparkContext was created 
>
>
> [2]https://issues.apache.org/jira/browse/SPARK-2243
>
> --
> Thanks & Regards
>
> Iranga Muthuthanthri
> (M) -0777-255773
> Team Product Management
>
>


-- 

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


Re: [Dev] SCIM missing members when list groups

2016-01-22 Thread Nadeesha Meegoda
Understood! Thanks for the explanation Chamila.

On Fri, Jan 22, 2016 at 2:52 PM, Chamila Wijayarathna 
wrote:

> Hi Nadeesha,
>
> Filtering operation is not extracting a specific group, its used to list
> groups, but filter it by username or any other attribute name of attribute
> pattern.
>
> To retrieve specific group we need to use following command.
>
> curl -k --user admin:admin --header "Content-Type:application/json"
> https://localhost:9443/wso2/scim/Groups/ad583049-0cad-4dc4-ab08-e520dbb4fec8
>
> There you will get the list of users with other attributes of the group as
> follows.
>
>
> {"id":"ad583049-0cad-4dc4-ab08-e520dbb4fec8","schemas":["urn:scim:schemas:core:1.0"],"displayName":"engineer","members":[{"value":"a5a564a4-5d63-416b-90bd-77fa2130cdc9","display":"hasinitg"}],"meta":{"lastModified":"2016-01-22T12:58:33","created":"2016-01-22T12:58:33","location":"
> https://localhost:9443/wso2/scim/Groups/ad583049-0cad-4dc4-ab08-e520dbb4fec8
> "}}
>
> So what you have observed is not a bug, it is how it suppose to work. For
> more information about requests and responses in SCIM 1.1, please refer
> specification at [1].
>
> [1]. http://www.simplecloud.info/specs/draft-scim-api-01.html
>
> Thank You!
>
> On Fri, Jan 22, 2016 at 2:14 PM, Nadeesha Meegoda 
> wrote:
>
>> Hi Chamila,
>>
>> Why doesn't the filer command return the member list?
>>
>> On Fri, Jan 22, 2016 at 2:09 PM, Nadeesha Meegoda 
>> wrote:
>>
>>> Hi Chamila,
>>>
>>> I checked this. Neither specifying an exact group is not returning the
>>> members of the Group. Seems this is a bug.
>>>
>>>
>>> curl -v -k --user admin:admin
>>> https://localhost:9443/wso2/scim/Groups?filter=displayName+Eq+%22engineer%22
>>>
>>>
>>>
>>> {"schemas":["urn:scim:schemas:core:1.0"],"totalResults":1,"Resources":[{"id":"0f13fb29-78b8-4eb4-832d-c7a6cf12e45f","displayName":"PRIMARY/engineer","meta":{"lastModified":"2016-01-22T13:38:13","created":"2016-01-22T13:38:13","location":"
>>> https://localhost:9443/wso2/scim/Groups/0f13fb29-78b8-4eb4-832d-c7a6cf12e45f
>>> "}}]}
>>>
>>> On Fri, Jan 22, 2016 at 1:59 PM, Chamila Wijayarathna 
>>> wrote:
>>>
 Hi Xavier,

 The result you are getting is the expected result. When you list
 groups, you will only receive the list of groups available with group ID,
 group name and their meta data.

 If you perform a GET request by specifying an exact group, you will
 receive response with list of group members.

 Seems like response in the doc you have mentioned is wrong. It needs to
 be corrected.

 Thank You!

 On Wed, Jan 20, 2016 at 7:22 PM, Xavier Pegenaute M2M <
 xavier.pegena...@m2mcloudfactory.com> wrote:

> Hi all,
>
> I've been trying to follow the SCIM documentation [1] to manage user
> and groups but apparently the groups members are not visualized after the
> group creation phase. These are my steps:
>
> 1) Create user
> curl -v -k --user admin:admin --data "{"schemas":[],"name":{"
> familyName":"gunasinghe","givenName":"hasinitg"},"userName":"hasinitg
> ","password":"hasinitg","emails":[{"primary":true,"value":"
> hasini_home.com","type":"home"},{"value":"hasini_work.com","type":"
> work"}]}" --header "Content-Type:application/json" 
> https://localhost:9443/wso2/scim/Users
> OUTPUT { "meta": { "created": "2016-01-20T13:41:51", "location":
> "https://localhost:9443/wso2/scim/Users/c3561007-5174-4b7d-9d6f-db523164a370";
> ,
> "lastModified": "2016-01-20T13:41:51" }, "emails": [ { "type": "home",
> "value": "hasini_home.com" }, { "type": "work", "value": "
> hasini_work.com" } ], "userName": "hasinitg", "name": { "givenName":
> "hasinitg", "familyName": "gunasinghe" }, "schemas": [
> "urn:scim:schemas:core:1.0" ], "id": 
> "c3561007-5174-4b7d-9d6f-db523164a370"
> } 2) Create group adding the user curl -k --user admin:admin --data
> "{"displayName": "engineer","members":
> [{"value":"c3561007-5174-4b7d-9d6f-db523164a370","display": "hasinitg"}]}"
> --header "Content-Type:application/json"
> https://localhost:9443/wso2/scim/Groups
>
> OUTPUT
> {
>   "meta": {
> "location":
> "https://localhost:9443/wso2/scim/Groups/b2e69f12-1b6a-4277-b3f5-b2536da1303a";
> 
> ,
> "created": "2016-01-20T13:47:20",
> "lastModified": "2016-01-20T13:47:20"
>   },
>   "members": [
> {
>   "display": "hasinitg",
>   "value": "c3561007-5174-4b7d-9d6f-db523164a370"
> }
>   ],
>   "displayName": "PRIMARY/engineer",
>   "schemas": [
> "urn:scim:schemas:core:1.0"
>   ],
>   "id": "b2e69f12-1b6a-4277-b3f5-b2536da1303a"
> }
>
> As you can notice, in member the hasinitg user is shown.
>
> 

Re: [Dev] [VOTE] Release WSO2 Microservices Server 1.0.0 RC4

2016-01-22 Thread Dinusha Boteju
Hi,

I tested following deployment scenarios;

- mss-lite
- deployable jar
- bundle

All works. So I vote [x] Stable - go ahead and release

BR,
Dinusha


On Tue, Jan 19, 2016 at 5:49 PM, Samiyuru Senarathne 
wrote:

> Hi Devs,
>
> This is the 4th Release Candidate of WSO2 Microservices Server 1.0.0.
>
> Please download, test the product and vote.
>
> *​Source and binary distribution files:*
> *https://github.com/wso2/product-mss/releases/tag/v1.0.0-RC4
> *
>
> *Maven staging repository:*
> http://maven.wso2.org/nexus/content/repositories/orgwso2carbonmss-298/
>
> *The tag to be voted upon:*
> *https://github.com/wso2/product-mss/tree/v1.0.0-RC4
> *
>
>
> [ ] Broken - do not release (explain why)
> [ ] Stable - go ahead and release
>
> Note: Since the artifacts that have to be uploaded to the maven central
> are not yet uploaded, please make sure to first build the project from the
> source in order to make all artifacts available in the maven local
> repository.
>
> Thank you,
> Carbon Team
>
> --
> Samiyuru Senarathne
> *Software Engineer*
> Mobile : +94 (0) 71 134 6087
> samiy...@wso2.com
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*Dinusha Boteju*
*WSO2, Inc. http://wso2.com  *
*lean.enterprise.middleware.*

email: dinus...@wso2.com 
phone:(+94) 779701986 <%28%2B94%29%2039736>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Getting ML model (1.1.0) working with DAS (3.0.0)

2016-01-22 Thread Iranga Muthuthanthri
Hi,

In order to build an integrated  analytics scenario (Batch, Realtime and
Predictive)  with DAS 3.0.0 tried the following steps in a local server
though by installing and using CEP-ML extension in DAS. The steps followed
are below.

1.) Installed ML 1.1.0  features in DAS 3.0.0.
2) Created a model through ML 1.1.0 .
3.)  Publish model to DAS registry .
4.) Use the ML extention through execution plan.

 The following exceptions is observed at Server startup, possibly due to
the  issue  of "supporting multiple Spark context in a jvm"[2].  Can start
the server with command wso2server.sh -DdisableAnalyticsSparkCtx=true

However this prevents using the batch analytics features in DAS,

Is there a  solution to get all three integrated analytics with DAS
3.0.0?Is there a way use the ML model to overcome issue[2]





[1]2016-01-22 12:09:58,193] ERROR
{org.wso2.carbon.analytics.spark.core.internal.AnalyticsComponent} -  Error
initializing analytics executor: Only one SparkContext may be running in
this JVM (see SPARK-2243). To ignore this error, set
spark.driver.allowMultipleContexts = true. The currently running
SparkContext was created 


[2]https://issues.apache.org/jira/browse/SPARK-2243

-- 
Thanks & Regards

Iranga Muthuthanthri
(M) -0777-255773
Team Product Management
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] SCIM missing members when list groups

2016-01-22 Thread Chamila Wijayarathna
Hi Nadeesha,

Filtering operation is not extracting a specific group, its used to list
groups, but filter it by username or any other attribute name of attribute
pattern.

To retrieve specific group we need to use following command.

curl -k --user admin:admin --header "Content-Type:application/json"
https://localhost:9443/wso2/scim/Groups/ad583049-0cad-4dc4-ab08-e520dbb4fec8

There you will get the list of users with other attributes of the group as
follows.

{"id":"ad583049-0cad-4dc4-ab08-e520dbb4fec8","schemas":["urn:scim:schemas:core:1.0"],"displayName":"engineer","members":[{"value":"a5a564a4-5d63-416b-90bd-77fa2130cdc9","display":"hasinitg"}],"meta":{"lastModified":"2016-01-22T12:58:33","created":"2016-01-22T12:58:33","location":"
https://localhost:9443/wso2/scim/Groups/ad583049-0cad-4dc4-ab08-e520dbb4fec8
"}}

So what you have observed is not a bug, it is how it suppose to work. For
more information about requests and responses in SCIM 1.1, please refer
specification at [1].

[1]. http://www.simplecloud.info/specs/draft-scim-api-01.html

Thank You!

On Fri, Jan 22, 2016 at 2:14 PM, Nadeesha Meegoda 
wrote:

> Hi Chamila,
>
> Why doesn't the filer command return the member list?
>
> On Fri, Jan 22, 2016 at 2:09 PM, Nadeesha Meegoda 
> wrote:
>
>> Hi Chamila,
>>
>> I checked this. Neither specifying an exact group is not returning the
>> members of the Group. Seems this is a bug.
>>
>>
>> curl -v -k --user admin:admin
>> https://localhost:9443/wso2/scim/Groups?filter=displayName+Eq+%22engineer%22
>>
>>
>>
>> {"schemas":["urn:scim:schemas:core:1.0"],"totalResults":1,"Resources":[{"id":"0f13fb29-78b8-4eb4-832d-c7a6cf12e45f","displayName":"PRIMARY/engineer","meta":{"lastModified":"2016-01-22T13:38:13","created":"2016-01-22T13:38:13","location":"
>> https://localhost:9443/wso2/scim/Groups/0f13fb29-78b8-4eb4-832d-c7a6cf12e45f
>> "}}]}
>>
>> On Fri, Jan 22, 2016 at 1:59 PM, Chamila Wijayarathna 
>> wrote:
>>
>>> Hi Xavier,
>>>
>>> The result you are getting is the expected result. When you list groups,
>>> you will only receive the list of groups available with group ID, group
>>> name and their meta data.
>>>
>>> If you perform a GET request by specifying an exact group, you will
>>> receive response with list of group members.
>>>
>>> Seems like response in the doc you have mentioned is wrong. It needs to
>>> be corrected.
>>>
>>> Thank You!
>>>
>>> On Wed, Jan 20, 2016 at 7:22 PM, Xavier Pegenaute M2M <
>>> xavier.pegena...@m2mcloudfactory.com> wrote:
>>>
 Hi all,

 I've been trying to follow the SCIM documentation [1] to manage user
 and groups but apparently the groups members are not visualized after the
 group creation phase. These are my steps:

 1) Create user
 curl -v -k --user admin:admin --data "{"schemas":[],"name":{"familyName
 ":"gunasinghe","givenName":"hasinitg"},"userName":"hasinitg","password
 ":"hasinitg","emails":[{"primary":true,"value":"hasini_home.com","type
 ":"home"},{"value":"hasini_work.com","type":"work"}]}" --header
 "Content-Type:application/json" https://localhost:9443/wso2/scim/Users
 OUTPUT { "meta": { "created": "2016-01-20T13:41:51", "location":
 "https://localhost:9443/wso2/scim/Users/c3561007-5174-4b7d-9d6f-db523164a370";
 ,
 "lastModified": "2016-01-20T13:41:51" }, "emails": [ { "type": "home",
 "value": "hasini_home.com" }, { "type": "work", "value": "
 hasini_work.com" } ], "userName": "hasinitg", "name": { "givenName":
 "hasinitg", "familyName": "gunasinghe" }, "schemas": [
 "urn:scim:schemas:core:1.0" ], "id": "c3561007-5174-4b7d-9d6f-db523164a370"
 } 2) Create group adding the user curl -k --user admin:admin --data
 "{"displayName": "engineer","members":
 [{"value":"c3561007-5174-4b7d-9d6f-db523164a370","display": "hasinitg"}]}"
 --header "Content-Type:application/json"
 https://localhost:9443/wso2/scim/Groups

 OUTPUT
 {
   "meta": {
 "location":
 "https://localhost:9443/wso2/scim/Groups/b2e69f12-1b6a-4277-b3f5-b2536da1303a";
 
 ,
 "created": "2016-01-20T13:47:20",
 "lastModified": "2016-01-20T13:47:20"
   },
   "members": [
 {
   "display": "hasinitg",
   "value": "c3561007-5174-4b7d-9d6f-db523164a370"
 }
   ],
   "displayName": "PRIMARY/engineer",
   "schemas": [
 "urn:scim:schemas:core:1.0"
   ],
   "id": "b2e69f12-1b6a-4277-b3f5-b2536da1303a"
 }

 As you can notice, in member the hasinitg user is shown.

 3) List groups (missing the members field)
 curl -k --user admin:admin --header "Content-Type:application/json"
 https://localhost:9443/wso2/scim/Groups


 OUTPUT
 {
   "Resources": [
 {
   "meta": {
 "location":
>>

Re: [Dev] SCIM missing members when list groups

2016-01-22 Thread Nadeesha Meegoda
Hi Chamila,

Why doesn't the filer command return the member list?

On Fri, Jan 22, 2016 at 2:09 PM, Nadeesha Meegoda 
wrote:

> Hi Chamila,
>
> I checked this. Neither specifying an exact group is not returning the
> members of the Group. Seems this is a bug.
>
>
> curl -v -k --user admin:admin
> https://localhost:9443/wso2/scim/Groups?filter=displayName+Eq+%22engineer%22
>
>
>
> {"schemas":["urn:scim:schemas:core:1.0"],"totalResults":1,"Resources":[{"id":"0f13fb29-78b8-4eb4-832d-c7a6cf12e45f","displayName":"PRIMARY/engineer","meta":{"lastModified":"2016-01-22T13:38:13","created":"2016-01-22T13:38:13","location":"
> https://localhost:9443/wso2/scim/Groups/0f13fb29-78b8-4eb4-832d-c7a6cf12e45f
> "}}]}
>
> On Fri, Jan 22, 2016 at 1:59 PM, Chamila Wijayarathna 
> wrote:
>
>> Hi Xavier,
>>
>> The result you are getting is the expected result. When you list groups,
>> you will only receive the list of groups available with group ID, group
>> name and their meta data.
>>
>> If you perform a GET request by specifying an exact group, you will
>> receive response with list of group members.
>>
>> Seems like response in the doc you have mentioned is wrong. It needs to
>> be corrected.
>>
>> Thank You!
>>
>> On Wed, Jan 20, 2016 at 7:22 PM, Xavier Pegenaute M2M <
>> xavier.pegena...@m2mcloudfactory.com> wrote:
>>
>>> Hi all,
>>>
>>> I've been trying to follow the SCIM documentation [1] to manage user and
>>> groups but apparently the groups members are not visualized after the group
>>> creation phase. These are my steps:
>>>
>>> 1) Create user
>>> curl -v -k --user admin:admin --data "{"schemas":[],"name":{"familyName
>>> ":"gunasinghe","givenName":"hasinitg"},"userName":"hasinitg","password
>>> ":"hasinitg","emails":[{"primary":true,"value":"hasini_home.com","type
>>> ":"home"},{"value":"hasini_work.com","type":"work"}]}" --header
>>> "Content-Type:application/json" https://localhost:9443/wso2/scim/Users
>>> OUTPUT { "meta": { "created": "2016-01-20T13:41:51", "location":
>>> "https://localhost:9443/wso2/scim/Users/c3561007-5174-4b7d-9d6f-db523164a370";
>>> ,
>>> "lastModified": "2016-01-20T13:41:51" }, "emails": [ { "type": "home",
>>> "value": "hasini_home.com" }, { "type": "work", "value": "
>>> hasini_work.com" } ], "userName": "hasinitg", "name": { "givenName":
>>> "hasinitg", "familyName": "gunasinghe" }, "schemas": [
>>> "urn:scim:schemas:core:1.0" ], "id": "c3561007-5174-4b7d-9d6f-db523164a370"
>>> } 2) Create group adding the user curl -k --user admin:admin --data
>>> "{"displayName": "engineer","members":
>>> [{"value":"c3561007-5174-4b7d-9d6f-db523164a370","display": "hasinitg"}]}"
>>> --header "Content-Type:application/json"
>>> https://localhost:9443/wso2/scim/Groups
>>>
>>> OUTPUT
>>> {
>>>   "meta": {
>>> "location":
>>> "https://localhost:9443/wso2/scim/Groups/b2e69f12-1b6a-4277-b3f5-b2536da1303a";
>>> 
>>> ,
>>> "created": "2016-01-20T13:47:20",
>>> "lastModified": "2016-01-20T13:47:20"
>>>   },
>>>   "members": [
>>> {
>>>   "display": "hasinitg",
>>>   "value": "c3561007-5174-4b7d-9d6f-db523164a370"
>>> }
>>>   ],
>>>   "displayName": "PRIMARY/engineer",
>>>   "schemas": [
>>> "urn:scim:schemas:core:1.0"
>>>   ],
>>>   "id": "b2e69f12-1b6a-4277-b3f5-b2536da1303a"
>>> }
>>>
>>> As you can notice, in member the hasinitg user is shown.
>>>
>>> 3) List groups (missing the members field)
>>> curl -k --user admin:admin --header "Content-Type:application/json"
>>> https://localhost:9443/wso2/scim/Groups
>>>
>>>
>>> OUTPUT
>>> {
>>>   "Resources": [
>>> {
>>>   "meta": {
>>> "location":
>>> "https://localhost:9443/wso2/scim/Groups/b2e69f12-1b6a-4277-b3f5-b2536da1303a";
>>> 
>>> ,
>>> "created": "2016-01-20T13:47:20",
>>> "lastModified": "2016-01-20T13:47:20"
>>>   },
>>>   "displayName": "PRIMARY/engineer",
>>>   "id": "b2e69f12-1b6a-4277-b3f5-b2536da1303a"
>>> }
>>>   ],
>>>   "totalResults": 1,
>>>   "schemas": [
>>> "urn:scim:schemas:core:1.0"
>>>   ]
>>> }
>>>
>>> Any one of you have any similar experience?, as it is stated in the
>>> documentation [1], this output should show the members field.
>>>
>>> Thanks & Regards,
>>>
>>> [1] - https://docs.wso2.com/display/IS510/SCIM+APIs
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> *Chamila Dilshan Wijayarathna,*
>> Software Engineer
>> Mobile:(+94)788193620
>> WSO2 Inc., http://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.enterpris

Re: [Dev] SCIM missing members when list groups

2016-01-22 Thread Nadeesha Meegoda
Hi Chamila,

I checked this. Neither specifying an exact group is not returning the
members of the Group. Seems this is a bug.


curl -v -k --user admin:admin
https://localhost:9443/wso2/scim/Groups?filter=displayName+Eq+%22engineer%22


{"schemas":["urn:scim:schemas:core:1.0"],"totalResults":1,"Resources":[{"id":"0f13fb29-78b8-4eb4-832d-c7a6cf12e45f","displayName":"PRIMARY/engineer","meta":{"lastModified":"2016-01-22T13:38:13","created":"2016-01-22T13:38:13","location":"
https://localhost:9443/wso2/scim/Groups/0f13fb29-78b8-4eb4-832d-c7a6cf12e45f
"}}]}

On Fri, Jan 22, 2016 at 1:59 PM, Chamila Wijayarathna 
wrote:

> Hi Xavier,
>
> The result you are getting is the expected result. When you list groups,
> you will only receive the list of groups available with group ID, group
> name and their meta data.
>
> If you perform a GET request by specifying an exact group, you will
> receive response with list of group members.
>
> Seems like response in the doc you have mentioned is wrong. It needs to be
> corrected.
>
> Thank You!
>
> On Wed, Jan 20, 2016 at 7:22 PM, Xavier Pegenaute M2M <
> xavier.pegena...@m2mcloudfactory.com> wrote:
>
>> Hi all,
>>
>> I've been trying to follow the SCIM documentation [1] to manage user and
>> groups but apparently the groups members are not visualized after the group
>> creation phase. These are my steps:
>>
>> 1) Create user
>> curl -v -k --user admin:admin --data "{"schemas":[],"name":{"familyName
>> ":"gunasinghe","givenName":"hasinitg"},"userName":"hasinitg","password":"
>> hasinitg","emails":[{"primary":true,"value":"hasini_home.com","type":"
>> home"},{"value":"hasini_work.com","type":"work"}]}" --header
>> "Content-Type:application/json" https://localhost:9443/wso2/scim/Users
>> OUTPUT { "meta": { "created": "2016-01-20T13:41:51", "location":
>> "https://localhost:9443/wso2/scim/Users/c3561007-5174-4b7d-9d6f-db523164a370";
>> ,
>> "lastModified": "2016-01-20T13:41:51" }, "emails": [ { "type": "home",
>> "value": "hasini_home.com" }, { "type": "work", "value": "hasini_work.com"
>> } ], "userName": "hasinitg", "name": { "givenName": "hasinitg",
>> "familyName": "gunasinghe" }, "schemas": [ "urn:scim:schemas:core:1.0" ],
>> "id": "c3561007-5174-4b7d-9d6f-db523164a370" } 2) Create group adding the
>> user curl -k --user admin:admin --data "{"displayName":
>> "engineer","members":
>> [{"value":"c3561007-5174-4b7d-9d6f-db523164a370","display": "hasinitg"}]}"
>> --header "Content-Type:application/json"
>> https://localhost:9443/wso2/scim/Groups
>>
>> OUTPUT
>> {
>>   "meta": {
>> "location":
>> "https://localhost:9443/wso2/scim/Groups/b2e69f12-1b6a-4277-b3f5-b2536da1303a";
>> 
>> ,
>> "created": "2016-01-20T13:47:20",
>> "lastModified": "2016-01-20T13:47:20"
>>   },
>>   "members": [
>> {
>>   "display": "hasinitg",
>>   "value": "c3561007-5174-4b7d-9d6f-db523164a370"
>> }
>>   ],
>>   "displayName": "PRIMARY/engineer",
>>   "schemas": [
>> "urn:scim:schemas:core:1.0"
>>   ],
>>   "id": "b2e69f12-1b6a-4277-b3f5-b2536da1303a"
>> }
>>
>> As you can notice, in member the hasinitg user is shown.
>>
>> 3) List groups (missing the members field)
>> curl -k --user admin:admin --header "Content-Type:application/json"
>> https://localhost:9443/wso2/scim/Groups
>>
>>
>> OUTPUT
>> {
>>   "Resources": [
>> {
>>   "meta": {
>> "location":
>> "https://localhost:9443/wso2/scim/Groups/b2e69f12-1b6a-4277-b3f5-b2536da1303a";
>> 
>> ,
>> "created": "2016-01-20T13:47:20",
>> "lastModified": "2016-01-20T13:47:20"
>>   },
>>   "displayName": "PRIMARY/engineer",
>>   "id": "b2e69f12-1b6a-4277-b3f5-b2536da1303a"
>> }
>>   ],
>>   "totalResults": 1,
>>   "schemas": [
>> "urn:scim:schemas:core:1.0"
>>   ]
>> }
>>
>> Any one of you have any similar experience?, as it is stated in the
>> documentation [1], this output should show the members field.
>>
>> Thanks & Regards,
>>
>> [1] - https://docs.wso2.com/display/IS510/SCIM+APIs
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> *Chamila Dilshan Wijayarathna,*
> Software Engineer
> Mobile:(+94)788193620
> WSO2 Inc., http://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] SCIM missing members when list groups

2016-01-22 Thread Chamila Wijayarathna
Hi Xavier,

The result you are getting is the expected result. When you list groups,
you will only receive the list of groups available with group ID, group
name and their meta data.

If you perform a GET request by specifying an exact group, you will receive
response with list of group members.

Seems like response in the doc you have mentioned is wrong. It needs to be
corrected.

Thank You!

On Wed, Jan 20, 2016 at 7:22 PM, Xavier Pegenaute M2M <
xavier.pegena...@m2mcloudfactory.com> wrote:

> Hi all,
>
> I've been trying to follow the SCIM documentation [1] to manage user and
> groups but apparently the groups members are not visualized after the group
> creation phase. These are my steps:
>
> 1) Create user
> curl -v -k --user admin:admin --data "{"schemas":[],"name":{"familyName":"
> gunasinghe","givenName":"hasinitg"},"userName":"hasinitg","password":"
> hasinitg","emails":[{"primary":true,"value":"hasini_home.com","type":"home
> "},{"value":"hasini_work.com","type":"work"}]}" --header
> "Content-Type:application/json" https://localhost:9443/wso2/scim/Users
> OUTPUT { "meta": { "created": "2016-01-20T13:41:51", "location":
> "https://localhost:9443/wso2/scim/Users/c3561007-5174-4b7d-9d6f-db523164a370";
> ,
> "lastModified": "2016-01-20T13:41:51" }, "emails": [ { "type": "home",
> "value": "hasini_home.com" }, { "type": "work", "value": "hasini_work.com"
> } ], "userName": "hasinitg", "name": { "givenName": "hasinitg",
> "familyName": "gunasinghe" }, "schemas": [ "urn:scim:schemas:core:1.0" ],
> "id": "c3561007-5174-4b7d-9d6f-db523164a370" } 2) Create group adding the
> user curl -k --user admin:admin --data "{"displayName":
> "engineer","members":
> [{"value":"c3561007-5174-4b7d-9d6f-db523164a370","display": "hasinitg"}]}"
> --header "Content-Type:application/json"
> https://localhost:9443/wso2/scim/Groups
>
> OUTPUT
> {
>   "meta": {
> "location":
> "https://localhost:9443/wso2/scim/Groups/b2e69f12-1b6a-4277-b3f5-b2536da1303a";
> 
> ,
> "created": "2016-01-20T13:47:20",
> "lastModified": "2016-01-20T13:47:20"
>   },
>   "members": [
> {
>   "display": "hasinitg",
>   "value": "c3561007-5174-4b7d-9d6f-db523164a370"
> }
>   ],
>   "displayName": "PRIMARY/engineer",
>   "schemas": [
> "urn:scim:schemas:core:1.0"
>   ],
>   "id": "b2e69f12-1b6a-4277-b3f5-b2536da1303a"
> }
>
> As you can notice, in member the hasinitg user is shown.
>
> 3) List groups (missing the members field)
> curl -k --user admin:admin --header "Content-Type:application/json"
> https://localhost:9443/wso2/scim/Groups
>
>
> OUTPUT
> {
>   "Resources": [
> {
>   "meta": {
> "location":
> "https://localhost:9443/wso2/scim/Groups/b2e69f12-1b6a-4277-b3f5-b2536da1303a";
> 
> ,
> "created": "2016-01-20T13:47:20",
> "lastModified": "2016-01-20T13:47:20"
>   },
>   "displayName": "PRIMARY/engineer",
>   "id": "b2e69f12-1b6a-4277-b3f5-b2536da1303a"
> }
>   ],
>   "totalResults": 1,
>   "schemas": [
> "urn:scim:schemas:core:1.0"
>   ]
> }
>
> Any one of you have any similar experience?, as it is stated in the
> documentation [1], this output should show the members field.
>
> Thanks & Regards,
>
> [1] - https://docs.wso2.com/display/IS510/SCIM+APIs
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*Chamila Dilshan Wijayarathna,*
Software Engineer
Mobile:(+94)788193620
WSO2 Inc., http://wso2.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev