Re: [Dev] "Error 403 - Forbidden" when session expires in admin console

2016-07-06 Thread Shavantha Weerasinghe
[+Dulanjan]

Hi All

When trying to add multiple roles to a user using a feature such as *Select
all from page 1 to page 3* or clicking on a pagination number the same
error comes and throws an error similar to[1]

[1]
[2016-07-07 11:34:37,139]  WARN - JavaLogger potential cross-site request
forgery (CSRF) attack thwarted (user:, ip:127.0.0.1,
method:POST, uri:/t/tenant.com/carbon/user/view-roles.jsp, error:required
token is missing from the request)


Regards,
Shavantha Weerasinghe
Senior Software Engineer QA
WSO2, Inc.
lean.enterprise.middleware.
http://wso2.com
http://wso2.org
Tel : 94 11 214 5345
Fax :94 11 2145300


On Wed, Jul 6, 2016 at 4:10 PM, Hasintha Indrajee  wrote:

> Hi all,
>
> When trying to perform operations through admin console, once the session
> is expired we are getting a 403 from admin console. Seems like this occurs
> due to CSRF filter blocking the request since the session is no longer
> available at the server side.
>
> [2016-07-06 15:34:27,576]  WARN {org.owasp.csrfguard.log.JavaLogger} -
> potential cross-site request forgery (CSRF) attack thwarted
> (user:, ip:127.0.0.1, method:POST,
> uri:/carbon/userprofile/set-finish-ajaxprocessor.jsp, error:request token
> does not match session token)
> --
> Hasintha Indrajee
> WSO2, Inc.
> Mobile:+94 771892453
>
>
> ___
> 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] Clarifications on CEP HA Mode Deployments

2016-07-06 Thread Ramindu De Silva
Hi Vanjikumaran,

Yes we have tested that scenario in the EC2 environment and worked.

Best Regards,

On Thu, Jul 7, 2016 at 12:47 AM, Vanjikumaran Sivajothy 
wrote:

> In the most cases in enterprise deployment, mostly we uses the
> VIP/HostName compare IP. In that case does it support HostName/VIP?
>
>
>
> On Wed, Jul 6, 2016 at 7:46 AM, Ramindu De Silva 
> wrote:
>
>> Hi Isuru,
>>
>> Please find the explanations inline.
>>
>> In a two node HA cluster, in the eventSync/hostName configuration
>> (event-processor.xml), do we need to provide the own host IP? If so, how
>> does each nodes discover each other for event synchronization purpose? For
>> what exact purpose this eventSync configuration is used?
>>
>> The provided host IP will be saved in the Hazelcast map after getting the
>> server's state (passive [1] / active [2] ). So the other members which are
>> in the cluster can get the relevant configuration using the passive key and
>> active key.
>>
>>
>> If we add a presenter node in addition to the two worker nodes, I assume
>> we should point to the presenter node from the both worker nodes. As per
>> the configuration, seems this is a TCP level connection. Why do we need a
>> TCP connection to the presenter?
>>
>> In, HA configured serves, each and every server contains the same
>> artifacts, even the presenter node. But the presenter node only publishes
>> the output which has been already processed by the active node which is
>> received using the tcp connection [3].
>>
>> FYI, the active node also sends the events to the passing node using the
>> tcp connection, and the events will be processed in parallel but the
>> passive node will drop the events from publishing or sending to the
>> presenter node (if available).
>>
>> 1.
>> https://github.com/wso2/carbon-analytics-common/blob/master/components/event-processor-manager/org.wso2.carbon.event.processor.manager.core/src/main/java/org/wso2/carbon/event/processor/manager/core/internal/HAManager.java#L259
>>
>>
>> 2.
>> https://github.com/wso2/carbon-analytics-common/blob/master/components/event-processor-manager/org.wso2.carbon.event.processor.manager.core/src/main/java/org/wso2/carbon/event/processor/manager/core/internal/HAManager.java#L233
>>
>> 3.
>> https://github.com/wso2/carbon-analytics-common/blob/master/components/event-processor-manager/org.wso2.carbon.event.processor.manager.core/src/main/java/org/wso2/carbon/event/processor/manager/core/internal/EventHandler.java#L161
>>
>>
>> Best Regards,
>>
>> On Wed, Jul 6, 2016 at 4:49 PM, Isuru Haththotuwa 
>> wrote:
>>
>>> += wso2-dev list
>>> 
>>>
>>> On Wed, Jul 6, 2016 at 4:34 PM, Isuru Haththotuwa 
>>> wrote:
>>>
 Hi CEP team,

 I'm going through [1] to understand the CEP HA deployment. Have a few
 doubts to get clarified:


1. In a two node HA cluster, in the eventSync/hostName
configuration (event-processor.xml), do we need to provide the own host 
 IP?
If so, how does each nodes discover each other for event synchronization
purpose? For what exact purpose this eventSync configuration is used?
2. If we add a presenter node in addition to the two worker nodes,
I assume we should point to the presenter node from the both worker 
 nodes.
As per the configuration, seems this is a TCP level connection. Why do 
 we
need a TCP connection to the presenter?

 Missed the link:
>>>
>>> [1].
>>> https://docs.wso2.com/display/CLUSTER44x/Clustering+CEP+4.0.0#ClusteringCEP4.0.0-Highavailabilitydeployment
>>>

 --
 Thanks and Regards,

 Isuru H.
 +94 716 358 048* *



>>>
>>>
>>> --
>>> Thanks and Regards,
>>>
>>> Isuru H.
>>> +94 716 358 048* *
>>>
>>>
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> *Ramindu De Silva*
>> Software Engineer
>> WSO2 Inc.: http://wso2.com
>> lean.enterprise.middleware
>>
>> email: ramin...@wso2.com 
>> mob: +94 772339350
>> mob: +94 719678895
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Vanjikumaran Sivajothy
> *Associate Technical Lead*
> *WSO2 Inc. http://wso2.com *
>  *+1-925-464-6816*
> [image: Facebook]  [image: Twitter]
>  [image: LinkedIn]
>  [image:
> Blogger]  [image: SlideShare]
> 
>
> This communication may contain privileged or other
> confidential information and is intended exclusively for the addressee/s.
> If you are not the i

Re: [Dev] To change theme per product

2016-07-06 Thread Aruna Karunarathna
Hi Harsha,

As per the fix done in [1], You can achieve this by,
Creating a  fragment osgi bundle with host (org.wso2.carbon.ui) ; create a
required bundle with the changes and make it as required in fragment bundle.

[1]. https://wso2.org/jira/browse/CARBON-14326

Regards,
Aruna


On Wed, Jul 6, 2016 at 1:13 AM, Harsha Thirimanna  wrote:

> Hi Sameera,
>
> Do we have any documentation or blogs to find a way to change complete
> theme as product wants ?
> Is that possible to write a fragment bundle to org.wso2.carbon.ui to
> change theme ?
>
> Now we had a requirement to change footer as in [1], because there will
> not be a kernal release before to the next release of IS. But we need to
> change this footer before that.
>
> [1] https://wso2.org/jira/browse/CARBON-15979
>
> thanks
>
> *Harsha Thirimanna*
> Associate Tech Lead; 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*
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 

*Aruna Sujith Karunarathna *
WSO2, Inc | lean. enterprise. middleware.
#20, Palm Grove, Colombo 03, Sri Lanka
Mobile: +94 71 9040362 | Work: +94 112145345
Email: ar...@wso2.com | Web: www.wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Update - Provide runtime environment for jaggery apps in AS6

2016-07-06 Thread Kishanthan Thangarajah
Hi Maheshika,

Can we add a jenkins build job for this branch?

On Thu, Jun 30, 2016 at 7:17 AM, Nisala Nanayakkara  wrote:

> Hi all,
>
> Please find the branch here.
>
> [1] - https://github.com/wso2/jaggery/tree/tomcat-8.0.x-jaggery
>
> Thanks,
> Nisala
>
> On Thu, Jun 30, 2016 at 7:12 AM, Nisala Nanayakkara 
> wrote:
>
>> Hi all,
>>
>> We have created a seperate branch[1] with the changes required for
>> providing runtime environment for jaggery apps in AS6. Currently there is
>> no jenkins builder setup for this, Please get the 1.0.0-SNAPSHOT version by
>> building the branch in local repo. Please inform me if there are any issues.
>>
>> Thanks,
>> Nisala
>>
>> --
>> *Nisala Niroshana Nanayakkara,*
>> Software Engineer
>> Mobile:(+94)717600022
>> WSO2 Inc., http://wso2.com/
>>
>
>
>
> --
> *Nisala Niroshana Nanayakkara,*
> Software Engineer
> Mobile:(+94)717600022
> WSO2 Inc., http://wso2.com/
>



-- 
*Kishanthan Thangarajah*
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] [Mesos artifacts] Deploy script is failing to check database service

2016-07-06 Thread Isuru Haththotuwa
Hi,

Yes, myself and Pubudu also faced this issue, lets fix it properly.

On Wed, Jul 6, 2016 at 10:57 PM, Pubudu Gunatilaka  wrote:

> Hi Akila,
>
> Yes we faced several issues related to this. Apart from what you have
> mentioned, we encountered mysql app name is not getting resolved. This
> could be the delay in updating Mesos DNS. For these issues we looking into
> following options.
>
> *Option 1:*
> Use a sleep before deploying a carbon server. Not the best option.
>
> *Option 2:*
> Depend on the health status results.
>
> Currently, we do use a health check for mysql apps. Using dcos CLI we can
> check the status of the app whether the app is alive or not. But this
> cannot guarantee the DBs are ready to serve requests and Mesos DNS is
> updated.
>
What if we query the Mesos DNS in addition to port checking to see if its
updated? AFAIR what we are seeing is an java.net.UnknownHostException,
related to the DB hostname.

Thank you!





> On Wed, Jul 6, 2016 at 10:40 PM, Akila Ravihansa Perera <
> raviha...@wso2.com> wrote:
>
>> Hi,
>>
>> When deploying services to Mesos, the deploy script checks whether port
>> is open in marathon-lb. But this check fails to identify whether MySQL DBs
>> are up and running. We might have to figure out a way to handle this.
>> Because of this issue, the product fails to startup since databases are not
>> ready to serve requests. The product deployment needs to be on hold until
>> all databases are ready serve requests.
>>
>> Thanks.
>>
>> --
>> Akila Ravihansa Perera
>> WSO2 Inc.;  http://wso2.com/
>>
>> Blog: http://ravihansa3000.blogspot.com
>>
>
>
>
> --
> *Pubudu Gunatilaka*
> Committer and PMC Member - Apache Stratos
> Software Engineer
> WSO2, Inc.: http://wso2.com
> mobile : +94774078049 <%2B94772207163>
>
>


-- 
Thanks and Regards,

Isuru H.
+94 716 358 048* *
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] How do I create a cache instance that's local to the JVM?

2016-07-06 Thread Aruna Karunarathna
Hi Nuwan,

You can use the CachingConstants.LOCAL_CACHE_PREFIX constant value as
defined in [1], You need to use two under score values.

[1].
https://github.com/wso2/carbon-kernel/blob/4.4.x/core/javax.cache/src/main/java/org/wso2/carbon/caching/impl/CachingConstants.java#L36

Regards,
Aruna

On Wed, Jul 6, 2016 at 4:26 PM, Nuwan Dias  wrote:

> Hi,
>
> How can we create a cache instance that's local to the running JVM? I
> tried using a cache name which has a prefix as "$_local_$.", but it doesn't
> seem to work. Meaning that when I have two nodes in the same cluster, when
> the cache is created on one node, the cache get I do on the other node
> returns the cached object. Which means that this cache is still a
> distributed cache. Is there anything wrong I'm doing or any other ways to
> achieve $subject?
>
> The code I use to get the cache instance is as below.
>
> Caching.getCacheManager(
> 
> APIConstants.API_MANAGER_CACHE_MANAGER).getCache("$_local_$.GATEWAY_TOKEN_CACHE");
>
>
> Thanks,
>
> NuwanD.
>
> --
> 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
>
>


-- 

*Aruna Sujith Karunarathna *
WSO2, Inc | lean. enterprise. middleware.
#20, Palm Grove, Colombo 03, Sri Lanka
Mobile: +94 71 9040362 | Work: +94 112145345
Email: ar...@wso2.com | Web: www.wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [DAS 310] Changing the logo of the dashboard

2016-07-06 Thread Prabushi Samarakoon
Hi Sachith,

Currently, we don't allow to change the dashboard logo. But, you can easily
change the dashboard title which locates under the logo, using a custom
theme. You can add the url to the dashboard title if it is ok with your use
case. Otherwise you have to change in the dashboard.jag to change the logo.

Thanks,
Prabushi

On Wed, Jul 6, 2016 at 7:20 PM, Sachith Withana  wrote:

> Hi all,
>
> How can I do the $subject?
>
> I managed to insert a url in an image tag and do it but it might not be
> the cleanest way to do it looking at the source code.
>
> Thanks,
> Sachith
>
> --
> Sachith Withana
> Software Engineer; WSO2 Inc.; http://wso2.com
> E-mail: sachith AT wso2.com
> M: +94715518127
> Linked-In: 
> https://lk.linkedin.com/in/sachithwithana
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*Prabushi Samarakoon*
Software Engineer
Mobile: +94715434580
Email: prabus...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [DAS 310] Changing the logo of the dashboard

2016-07-06 Thread Jerad Rutnam
Hi Sachith,

As of now only way you can do this is, extending "dashboard.jag" in portal
app.
You will have to change in 2 places. One is in the top bar and one is in
the side panel.

Regards,
Jerad

On Wed, Jul 6, 2016 at 7:20 PM, Sachith Withana  wrote:

> Hi all,
>
> How can I do the $subject?
>
> I managed to insert a url in an image tag and do it but it might not be
> the cleanest way to do it looking at the source code.
>
> Thanks,
> Sachith
>
> --
> Sachith Withana
> Software Engineer; WSO2 Inc.; http://wso2.com
> E-mail: sachith AT wso2.com
> M: +94715518127
> Linked-In: 
> https://lk.linkedin.com/in/sachithwithana
>



-- 
*Jerad Rutnam*
*Software Engineer*

WSO2 Inc.
lean | enterprise | middleware
M : +94 77 959 1609 | E : je...@wso2.com | W : www.wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Error JWT grant type

2016-07-06 Thread Malaka Silva
+Keerthika

On Wed, Jul 6, 2016 at 11:56 AM, Ishara Karunarathna 
wrote:

> Hi,
>
> I tried to use JWT grant type using ID token I got from password grant
> type.
>
> Then I got the following error
> "Error occurred while decoding public certificate of Identity Provider
> default for tenant domain carbon.super"
>
> But I have imported the pub key to the IDP
>
> Is this a known issue ?
> Or do we have any other sample to generate a JWT if this ID token is not
> valid.
>
> https://docs.wso2.com/display/ISCONNECTORS/Configuring+JWT+Grant+Type
>
> Thanks,
> Ishara
>
> --
> Ishara Karunarathna
> Associate Technical Lead
> WSO2 Inc. - lean . enterprise . middleware |  wso2.com
>
> email: isha...@wso2.com,   blog: isharaaruna.blogspot.com,   mobile:
> +94717996791
>



-- 

Best Regards,

Malaka Silva
Senior Technical Lead
M: +94 777 219 791
Tel : 94 11 214 5345
Fax :94 11 2145300
Skype : malaka.sampath.silva
LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77
Blog : http://mrmalakasilva.blogspot.com/

WSO2, Inc.
lean . enterprise . middleware
http://www.wso2.com/
http://www.wso2.com/about/team/malaka-silva/

https://store.wso2.com/store/

Save a tree -Conserve nature & Save the world for your future. Print this
email only if it is absolutely necessary.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Gsoc2016] [PC] Web (Javascript / D3) based BPMN editor to support a subset of commonly used BPMN constructs

2016-07-06 Thread Isuru Wijesinghe
Hi Heshan,

Please add only *general*, *main config* and *form* properties for each
component as you mentioned in your proposal.

Thanks,
Isuru.

On Wed, Jul 6, 2016 at 9:42 AM, Heshan Jayasinghe 
wrote:

> Hi,
> As we discussed in last meeting this week we plan to finish
>
>- flow reposition when BPMN element position changes.
>- task resizing
>- text attaching
>- changing task/event/gateway type using property (element icon
>changed with property)
>
>
> I created "flow reposition when BPMN element position changes" and "task
> resizing" but not totally completed.I think i can finish it with in this
> week.Can you please send me what are the properties you need for each
> element.Then i can complete it with in this week.
>
> github url = https://github.com/heshanjse/BPMNEditor  ( last week update)
>
> Thank You!
> regards,
> Heshan Jayasinghe
>
> On Tue, Jun 21, 2016 at 6:59 AM, Heshan Jayasinghe 
> wrote:
>
>> github url - https://github.com/heshanjse/BPMNEditor
>>
>> On Tue, Jun 21, 2016 at 6:57 AM, Heshan Jayasinghe 
>> wrote:
>>
>>> Hi Isuru,
>>>
>>> This is the milestone plan we discussed in the last week.
>>>
>>> 24/6  - draw flows when moving a node
>>>  - add properties to the flow
>>>  - create delete functionality to every node.
>>>  - add arrow and text to the toolbox
>>> 1/7- add text to the task
>>>  - task resizing
>>>  - change task/event/gateway icon according to the selected
>>> property type
>>> 8/7- change flow shape from start and end point
>>>  - add mutiple connection points in the nodes
>>> 15/7  - add zoom event to svg and scroll
>>> 29/7  - create property list
>>> 5/8- export json in to BPMN
>>> 19/8  - redraw element using json array after upload a BPMN file
>>>
>>> Thanks
>>> regards,
>>> Heshan Jayasinghe
>>>
>>>
>>>
>>> On Mon, Jun 20, 2016 at 2:32 PM, Isuru Wijesinghe 
>>> wrote:
>>>
 Hi Heshan,

 Please update the meeting notes. In addition to that can you please
 share with us the milestone plan as we discussed in the last week.

 Thanks,
 Isuru.

 On Thu, May 26, 2016 at 11:04 PM, Heshan Jayasinghe >>> > wrote:

> github url - https://github.com/heshanjse/BPMNEditor
>
> On Thu, May 19, 2016 at 12:52 PM, Heshan Jayasinghe <
> shanu...@gmail.com> wrote:
>
>> Hi Isuru,
>> I completed Start Event,End Event,Gateways and Task.Currently these
>> component can move in the canvas.As we discussed in our last meeting I am
>> working for packaging the current source code,drawing flows,component
>> re-sizing,creating property window and adding text areas to Task
>> component.After I applying packaging structure i will share my
>> github code.Hope I can send it soon.
>> Thank you,
>> Regards,
>> Heshan Jayasinghe
>>
>> On Wed, May 18, 2016 at 10:04 AM, Isuru Wijesinghe 
>> wrote:
>>
>>> Hi Heshan,
>>>
>>> Any update on your progress? Could you please share with us your
>>> code through github. Then we can give some feedback.
>>>
>>> Thanks,
>>> Isuru
>>>
>>> On Thu, Mar 24, 2016 at 1:23 PM, Heshan Jayasinghe <
>>> shanu...@gmail.com> wrote:
>>>
 Hi,
 I submit my final proposal through GSOC site.Could you please read
 my proposal and add some comments.
 Thank you!
 regards,
 Heshan Jayasinghe

 On Wed, Mar 23, 2016 at 8:38 AM, Isuru Wijesinghe >>> > wrote:

> Hi Heshan,
>
> We have already added few comments. Could you please fix them and
> share the updated proposal ?
>
> Thanks and Best Regards,
>
> On Fri, Mar 18, 2016 at 9:48 PM, Isuru Wijesinghe <
> isur...@wso2.com> wrote:
>
>> Hi Heshan,
>>
>> We appreciate your quick response. The main deliverable of this
>> project is a javascript/D3 based BPMN editor which allows Process 
>> Center
>> users to define business processes using a graphical notation from 
>> the *web
>> UI*. (No server side involvement). Keep on progressing on the
>> project and if you get stuck at any point, don't hesitate to contact 
>> us.
>>
>> Thanks and Best Regards,
>>
>>
>> On Fri, Mar 18, 2016 at 11:35 AM, Heshan Jayasinghe <
>> shanu...@gmail.com> wrote:
>>
>>> HI,
>>> Could you please tell me how server side involve in this
>>> project? Web Editor can developed as a single page application and 
>>> we can
>>> run it in java server.hope this application haven't any server side
>>> development.Please let me know if there server side development 
>>> involve.if
>>> there any server side development i willing to complete that task 
>>> too.
>>>
>>> 

Re: [Dev] GSoC2016-Contact Development Team Feature

2016-07-06 Thread Nathiesha Maddage
Hi all,

Regarding the current status of the project, I am working on the
development of the report Archive module, where the user can view the
previously sent error reports and also the current status of those issues.
Meanwhile I thought to look into the testing part of the project as well.
Is their any special testing framework used in Developer Studio testing,
that I need to adopt? I though to use JUnit. Is it OK?

Regards

Nathiesha

On Tue, Jun 28, 2016 at 9:34 AM, Nathiesha Maddage <
nathieshamadd...@gmail.com> wrote:

> Hi all,
>
> I downloaded and tried running the Data Analytics Server . Currently I am
> going through the DAS documentation and the REST API. Is it possible to
> post data using the REST API? As I noticed, it only allows to retrieve data
> from the DAS.
>
> Thanks and regards
>
> Nathiesha
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Issue with encrypting Userstore password with Secure Vault

2016-07-06 Thread Maduranga Siriwardena
Hi,

To encrypt a password in user-mgt.xml with cipher tool and then decrypt, it
should have the bellow formats according to [1].
"UserManager.Configuration.Property." + propertyName
"UserStoreManager.Property." + propertyName

This is not mentioned in the documentation [2] and it is hard to track the
issue with the logs (because it says only the credentials are invalid).
Userstore connection password does not comes in cipher-tool.properties by
default. And this makes it even harder to figure out the issue.

I have created a jira ticket to track this issue [3].

I'm not sure why these values are had coded. But I think it doesn't have to
be hard coded. We can simply find the property value in the xml element
with the namespace and the property name. If there is a particular reason
to do it in this way, at least update it in the documentation.

[1]
https://github.com/wso2/carbon-kernel/blob/4.4.x/core/org.wso2.carbon.user.core/src/main/java/org/wso2/carbon/user/core/config/RealmConfigXMLProcessor.java#L574-L581
[2]
https://docs.wso2.com/display/Carbon443/Encrypting+Passwords+with+Cipher+Tool
[3] https://wso2.org/jira/browse/IDENTITY-4775

Thanks,
Maduranga.

-- 
Maduranga Siriwardena
Software Engineer
WSO2 Inc.

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


Re: [Dev] Clarifications on CEP HA Mode Deployments

2016-07-06 Thread Vanjikumaran Sivajothy
In the most cases in enterprise deployment, mostly we uses the VIP/HostName
compare IP. In that case does it support HostName/VIP?



On Wed, Jul 6, 2016 at 7:46 AM, Ramindu De Silva  wrote:

> Hi Isuru,
>
> Please find the explanations inline.
>
> In a two node HA cluster, in the eventSync/hostName configuration
> (event-processor.xml), do we need to provide the own host IP? If so, how
> does each nodes discover each other for event synchronization purpose? For
> what exact purpose this eventSync configuration is used?
>
> The provided host IP will be saved in the Hazelcast map after getting the
> server's state (passive [1] / active [2] ). So the other members which are
> in the cluster can get the relevant configuration using the passive key and
> active key.
>
>
> If we add a presenter node in addition to the two worker nodes, I assume
> we should point to the presenter node from the both worker nodes. As per
> the configuration, seems this is a TCP level connection. Why do we need a
> TCP connection to the presenter?
>
> In, HA configured serves, each and every server contains the same
> artifacts, even the presenter node. But the presenter node only publishes
> the output which has been already processed by the active node which is
> received using the tcp connection [3].
>
> FYI, the active node also sends the events to the passing node using the
> tcp connection, and the events will be processed in parallel but the
> passive node will drop the events from publishing or sending to the
> presenter node (if available).
>
> 1.
> https://github.com/wso2/carbon-analytics-common/blob/master/components/event-processor-manager/org.wso2.carbon.event.processor.manager.core/src/main/java/org/wso2/carbon/event/processor/manager/core/internal/HAManager.java#L259
>
>
> 2.
> https://github.com/wso2/carbon-analytics-common/blob/master/components/event-processor-manager/org.wso2.carbon.event.processor.manager.core/src/main/java/org/wso2/carbon/event/processor/manager/core/internal/HAManager.java#L233
>
> 3.
> https://github.com/wso2/carbon-analytics-common/blob/master/components/event-processor-manager/org.wso2.carbon.event.processor.manager.core/src/main/java/org/wso2/carbon/event/processor/manager/core/internal/EventHandler.java#L161
>
>
> Best Regards,
>
> On Wed, Jul 6, 2016 at 4:49 PM, Isuru Haththotuwa  wrote:
>
>> += wso2-dev list
>> 
>>
>> On Wed, Jul 6, 2016 at 4:34 PM, Isuru Haththotuwa 
>> wrote:
>>
>>> Hi CEP team,
>>>
>>> I'm going through [1] to understand the CEP HA deployment. Have a few
>>> doubts to get clarified:
>>>
>>>
>>>1. In a two node HA cluster, in the eventSync/hostName configuration
>>>(event-processor.xml), do we need to provide the own host IP? If so, how
>>>does each nodes discover each other for event synchronization purpose? 
>>> For
>>>what exact purpose this eventSync configuration is used?
>>>2. If we add a presenter node in addition to the two worker nodes, I
>>>assume we should point to the presenter node from the both worker nodes. 
>>> As
>>>per the configuration, seems this is a TCP level connection. Why do we 
>>> need
>>>a TCP connection to the presenter?
>>>
>>> Missed the link:
>>
>> [1].
>> https://docs.wso2.com/display/CLUSTER44x/Clustering+CEP+4.0.0#ClusteringCEP4.0.0-Highavailabilitydeployment
>>
>>>
>>> --
>>> Thanks and Regards,
>>>
>>> Isuru H.
>>> +94 716 358 048* *
>>>
>>>
>>>
>>
>>
>> --
>> Thanks and Regards,
>>
>> Isuru H.
>> +94 716 358 048* *
>>
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> *Ramindu De Silva*
> Software Engineer
> WSO2 Inc.: http://wso2.com
> lean.enterprise.middleware
>
> email: ramin...@wso2.com 
> mob: +94 772339350
> mob: +94 719678895
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Vanjikumaran Sivajothy
*Associate Technical Lead*
*WSO2 Inc. http://wso2.com *
 *+1-925-464-6816*
[image: Facebook]  [image: Twitter]
 [image: LinkedIn]
 [image:
Blogger]  [image: SlideShare]


This communication may contain privileged or other confidential information
and is intended exclusively for the addressee/s. If you are not the
intended recipient/s, or believe that you may have received this
communication in error, please reply to the sender indicating that fact and
delete the copy you received and in addition, you should not print,
copy, re-transmit, disseminate, or otherwise use the information contained
in this communication. Internet communicatio

Re: [Dev] "Error 403 - Forbidden" when session expires in admin console

2016-07-06 Thread Rasika Perera
Hi Hasintha,

Possibly this might be due to multiple network interfaces on the hosting
machine. Please check your servers' listening IP and the request IP.

Thanks,
Rasika

On Wed, Jul 6, 2016 at 4:10 PM, Hasintha Indrajee  wrote:

> Hi all,
>
> When trying to perform operations through admin console, once the session
> is expired we are getting a 403 from admin console. Seems like this occurs
> due to CSRF filter blocking the request since the session is no longer
> available at the server side.
>
> [2016-07-06 15:34:27,576]  WARN {org.owasp.csrfguard.log.JavaLogger} -
> potential cross-site request forgery (CSRF) attack thwarted
> (user:, ip:127.0.0.1, method:POST,
> uri:/carbon/userprofile/set-finish-ajaxprocessor.jsp, error:request token
> does not match session token)
> --
> Hasintha Indrajee
> WSO2, Inc.
> Mobile:+94 771892453
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
With Regards,

*Rasika Perera*
Software Engineer
M: +94 71 680 9060 E: rasi...@wso2.com
LinkedIn: http://lk.linkedin.com/in/rasika90

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


Re: [Dev] [Mesos artifacts] Deploy script is failing to check database service

2016-07-06 Thread Pubudu Gunatilaka
Hi Akila,

Yes we faced several issues related to this. Apart from what you have
mentioned, we encountered mysql app name is not getting resolved. This
could be the delay in updating Mesos DNS. For these issues we looking into
following options.

*Option 1:*
Use a sleep before deploying a carbon server. Not the best option.

*Option 2:*
Depend on the health status results.

Currently, we do use a health check for mysql apps. Using dcos CLI we can
check the status of the app whether the app is alive or not. But this
cannot guarantee the DBs are ready to serve requests and Mesos DNS is
updated.

Thank you!





On Wed, Jul 6, 2016 at 10:40 PM, Akila Ravihansa Perera 
wrote:

> Hi,
>
> When deploying services to Mesos, the deploy script checks whether port is
> open in marathon-lb. But this check fails to identify whether MySQL DBs are
> up and running. We might have to figure out a way to handle this. Because
> of this issue, the product fails to startup since databases are not ready
> to serve requests. The product deployment needs to be on hold until all
> databases are ready serve requests.
>
> Thanks.
>
> --
> Akila Ravihansa Perera
> WSO2 Inc.;  http://wso2.com/
>
> Blog: http://ravihansa3000.blogspot.com
>



-- 
*Pubudu Gunatilaka*
Committer and PMC Member - Apache Stratos
Software Engineer
WSO2, Inc.: http://wso2.com
mobile : +94774078049 <%2B94772207163>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [Mesos artifacts] Deploy script is failing to check database service

2016-07-06 Thread Akila Ravihansa Perera
Hi,

When deploying services to Mesos, the deploy script checks whether port is
open in marathon-lb. But this check fails to identify whether MySQL DBs are
up and running. We might have to figure out a way to handle this. Because
of this issue, the product fails to startup since databases are not ready
to serve requests. The product deployment needs to be on hold until all
databases are ready serve requests.

Thanks.

-- 
Akila Ravihansa Perera
WSO2 Inc.;  http://wso2.com/

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


Re: [Dev] Clarifications on CEP HA Mode Deployments

2016-07-06 Thread Ramindu De Silva
Hi Isuru,

Please find the explanations inline.

In a two node HA cluster, in the eventSync/hostName configuration
(event-processor.xml), do we need to provide the own host IP? If so, how
does each nodes discover each other for event synchronization purpose? For
what exact purpose this eventSync configuration is used?

The provided host IP will be saved in the Hazelcast map after getting the
server's state (passive [1] / active [2] ). So the other members which are
in the cluster can get the relevant configuration using the passive key and
active key.


If we add a presenter node in addition to the two worker nodes, I assume we
should point to the presenter node from the both worker nodes. As per the
configuration, seems this is a TCP level connection. Why do we need a TCP
connection to the presenter?

In, HA configured serves, each and every server contains the same
artifacts, even the presenter node. But the presenter node only publishes
the output which has been already processed by the active node which is
received using the tcp connection [3].

FYI, the active node also sends the events to the passing node using the
tcp connection, and the events will be processed in parallel but the
passive node will drop the events from publishing or sending to the
presenter node (if available).

1.
https://github.com/wso2/carbon-analytics-common/blob/master/components/event-processor-manager/org.wso2.carbon.event.processor.manager.core/src/main/java/org/wso2/carbon/event/processor/manager/core/internal/HAManager.java#L259


2.
https://github.com/wso2/carbon-analytics-common/blob/master/components/event-processor-manager/org.wso2.carbon.event.processor.manager.core/src/main/java/org/wso2/carbon/event/processor/manager/core/internal/HAManager.java#L233

3.
https://github.com/wso2/carbon-analytics-common/blob/master/components/event-processor-manager/org.wso2.carbon.event.processor.manager.core/src/main/java/org/wso2/carbon/event/processor/manager/core/internal/EventHandler.java#L161


Best Regards,

On Wed, Jul 6, 2016 at 4:49 PM, Isuru Haththotuwa  wrote:

> += wso2-dev list
> 
>
> On Wed, Jul 6, 2016 at 4:34 PM, Isuru Haththotuwa  wrote:
>
>> Hi CEP team,
>>
>> I'm going through [1] to understand the CEP HA deployment. Have a few
>> doubts to get clarified:
>>
>>
>>1. In a two node HA cluster, in the eventSync/hostName configuration
>>(event-processor.xml), do we need to provide the own host IP? If so, how
>>does each nodes discover each other for event synchronization purpose? For
>>what exact purpose this eventSync configuration is used?
>>2. If we add a presenter node in addition to the two worker nodes, I
>>assume we should point to the presenter node from the both worker nodes. 
>> As
>>per the configuration, seems this is a TCP level connection. Why do we 
>> need
>>a TCP connection to the presenter?
>>
>> Missed the link:
>
> [1].
> https://docs.wso2.com/display/CLUSTER44x/Clustering+CEP+4.0.0#ClusteringCEP4.0.0-Highavailabilitydeployment
>
>>
>> --
>> Thanks and Regards,
>>
>> Isuru H.
>> +94 716 358 048* *
>>
>>
>>
>
>
> --
> Thanks and Regards,
>
> Isuru H.
> +94 716 358 048* *
>
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*Ramindu De Silva*
Software Engineer
WSO2 Inc.: http://wso2.com
lean.enterprise.middleware

email: ramin...@wso2.com 
mob: +94 772339350
mob: +94 719678895
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [DAS 310] Changing the logo of the dashboard

2016-07-06 Thread Sachith Withana
Hi all,

How can I do the $subject?

I managed to insert a url in an image tag and do it but it might not be the
cleanest way to do it looking at the source code.

Thanks,
Sachith

-- 
Sachith Withana
Software Engineer; WSO2 Inc.; http://wso2.com
E-mail: sachith AT wso2.com
M: +94715518127
Linked-In: https://lk.linkedin.com/in/sachithwithana
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [IS] RESTful Fine Grained Authorization-as-a-Service (AZaaS)

2016-07-06 Thread Manujith Pallewatte
Hi Pushpalanka,

Thank you for the comments, I'm currently looking into Swagger
Since it's already used in WSO2 API Manager, can i know if it's built on
CXF as well? In that case I can use existing swagger libraries than
introducing new ones. I found Swagger2Feature [1] library as in the Apache
CXF documentation.

Hi Prabath,
Sorry i'm not familiar with those mentioned, can you clarify a bit more, I
would like to help in making any improvements

Thank You
Manujith

[1] http://cxf.apache.org/docs/swagger2feature.html

On Tue, Jul 5, 2016 at 8:42 PM, Prabath Siriwardana 
wrote:

> When we are implementing the REST profile XACML - can we implement it as a
> microservice on MSF4J? It needs to be an independent deployable unit -
> which should function with a set of policies loaded from the filesystem...
> Can we do this..?
>
> Thanks & regards,
> -Prbath
>
> On Mon, Jul 4, 2016 at 11:44 PM, Pushpalanka Jayawardhana 
> wrote:
>
>> Hi Manujith,
>>
>> Please find the comments in line.
>>
>> On Mon, Jul 4, 2016 at 8:11 PM, Manujith Pallewatte <
>> manujith...@gmail.com> wrote:
>>
>>> Hi all,
>>>
>>> So to start working on the points discussed in the mid evaluation, first
>>> is to align the service with the REST profile of XACML 3.0 [1]
>>> But according to the spec only the following 2 resources are defined
>>>
>>> 1) home - entry point for REST service, returns links to other resources
>>> 2) pdp - resource that given a XACML request presents the XACML response
>>>
>>> but since the existing SOAP entitlement service exposes additional
>>> services such as
>>> getBooleanDecision, getDecisionByAttributes etc. there arises 2 issues
>>>
>>> 1) how to name those additional resources?
>>>
>> Let's have some convincing names for you as of now. We can refine them
>> later in review. Try to have inputs from the topic "5.1 PROPER NAMING" from
>> the rest api guideline while paper we pointed before.
>>
>>> 2) how to let the clients accessing the service know of the required
>>> structure of each of these requests that are not defined in the XACML spec?
>>>
>> Please have a look at the possibility of using swagger for this. This is
>> already used in WSO2 Api Manager[1], but not yet in WSO2 IS. Would be great
>> if you can evaluate the possibility of using it.  Basic idea is to
>> represent the REST API according to Swagger specification similar to WSDL
>> we have for SOAP.
>>
>> [1] -
>> https://docs.wso2.com/display/AM1100/Edit+an+API+Using+the+Swagger+UI
>>
>>>
>>> Please provide your suggestions on this
>>>
>>> Thank You
>>> Best Regards,
>>> Manujith
>>>
>>> [1]
>>> http://docs.oasis-open.org/xacml/xacml-rest/v1.0/csprd03/xacml-rest-v1.0-csprd03.html
>>>
>>> On Thu, Jun 23, 2016 at 3:42 PM, Omindu Rathnaweera 
>>> wrote:
>>>
 Good Work Manujith!

 Adding to this. Figure out a way to drop null values from the JSON
 response with Jackson level configurations. Also have a look at XACML JSON
 profile [1]. It will have guidelines on dealing with JSON inputs/outputs.

 [1] -
 http://docs.oasis-open.org/xacml/xacml-json-http/v1.0/xacml-json-http-v1.0.html

 Regards,
 Omindu.

 On Thu, Jun 23, 2016 at 3:31 PM, Manujith Pallewatte <
 manujith...@gmail.com> wrote:

> Hi all,
>
> We had the mid-evaluation review, and I've summarized the key points
> discussed here
>
> 1) Prioritize on the complete JSON implementation for all 5 services
> methods
> 2) Comply the service fully with XACML 3.0 REST specification (Read on
> the spec and get a firm understanding on all key concepts)
> 3) Leave the hard coded authenticators as it is for now
> 4) Using custom client / server exception to be returned in a case of
> an exception
> 5) Follow the code quality guidelines (specially in the cases of
> improper exception handling)
>
> Special thanks to everyone for their time in reviewing.
>
> Thank You,
> Manujith
>
> On Sun, Jun 12, 2016 at 10:43 PM, Manujith Pallewatte <
> manujith...@gmail.com> wrote:
>
>> Hi all,
>>
>> After refactoring and reviewing code using above suggestions, I added
>> a PR, which can be found at [1]
>>
>> Regards,
>> Manujith
>>
>> [1] https://github.com/wso2/carbon-identity-framework/pull/282
>>
>> On Sat, Jun 11, 2016 at 12:52 PM, Manujith Pallewatte <
>> manujith...@gmail.com> wrote:
>>
>>> Hi Manuranga,
>>>
>>> I did referred to the guidelines, but was not successful in figuring
>>> out suitable end point names. So Pushpalanka suggested to take 
>>> community's
>>> ideas in naming them. Any pointers as for which I can improve the names?
>>> According to the guide it says to identify the resources first
>>> Going on that, I identified the Policy Decision, Entitlement
>>> Attributes and Entitlements as resources, but since some resources have
>>> only one methods call in it, h

Re: [Dev] [Mesos artifacts] Deploying wso2das 3.x.x on Mesos

2016-07-06 Thread Niranda Perera
Hi Akila,

Yes, there is a possibility to use a custom member discovery schema for
Spark. In fact, that is what we are using at the moment. We are using
Hazlecast for membership management (using WKA).
We are extending the following extension points in Spark [1] to support
this.

I agree with Imesh. We still have not extensively tested connecting DAS to
an external Mesos Spark cluster. But it is in the roadmap and we are
working on it.

Best

[1]
https://github.com/apache/spark/blob/master/core/src/main/scala/org/apache/spark/deploy/master/RecoveryModeFactory.scala
https://github.com/apache/spark/blob/master/core/src/main/scala/org/apache/spark/deploy/master/PersistenceEngine.scala



On Wed, Jul 6, 2016 at 11:36 AM, Imesh Gunaratne  wrote:

> Hi Akila,
>
> IMO it would better to use Spark Mesos Framework on Mesos DC/OS for
> production deployments rather than trying to cluster the built-in Spark
> module on Mesos. Then we might not need to worry much about this problem.
>
> None production environments such as Dev should be able to use a
> standalone DAS server with a volume mount with auto healing. WDYT?
>
> Thanks
>
> On Wed, Jul 6, 2016 at 9:38 AM, Akila Ravihansa Perera  > wrote:
>
>> [Looping Anjana and Isuru]
>>
>> @Anjana, Niranda: is it possible to plugin a custom member discovery
>> scheme for Spark? In the current implementation how does a wso2das with
>> embedded Spark instance discover the other members?
>> I'm referring to Spark cluster mode deployment here.
>>
>> Thanks.
>>
>> On Wed, Jul 6, 2016 at 6:49 AM, Nirmal Fernando  wrote:
>>
>>> [Looping Niranda]
>>>
>>> On Tue, Jul 5, 2016 at 10:22 PM, Akila Ravihansa Perera <
>>> raviha...@wso2.com> wrote:
>>>
 Hi,

 Deploying wso2das in Mesos is bit tricky due to lack of overlay network
 support in Mesos OOTB. This is mainly because Spark cluster (when running
 in Spark cluster mode) is unable to communicate through Docker IP addresses
 when they are assigned to different host machines in a multi-node Mesos
 deployment. I checked the config options in [1] and tried setting
 SPARK_PUBLIC_DNS parameter to Mesos host IP without any success.

 The main problem is there is no way to instruct Spark members to bind
 to the local Docker IP and advertise a different IP (Mesos slave host IP)
 to other members.

 @Niranda, Nirmal: is this something we can fix from our side? AFAIU, we
 are using Hazelcast to discover Spark/wso2das members and adding them to
 Spark context, right?

 On a side note, there is a Wiki page explaining how Spark should be
 used with Mesos in [2]. This is available after Spark 1.2.0. In this
 approach, we treat each Mesos slave as a Spark member and Spark/Mesos
 driver can directly schedule tasks on Mesos slaves instead of running Spark
 itself as a container. We should consider this approach in our C5 based
 efforts. We can leverage Kubernetes in the same way.

 IMO, we should recommend users to use wso2das in Spark client mode on
 Mesos due to these complexities.

>>>
>>> +1, if we can't solve above from within DAS.
>>>
>>>
 There is a DCOS Mesos framework for Spark [3] which can be used to
 deploy Spark on Mesos very easily. We can even leverage DCOS Spark
 framework in our deploy scripts.

 [1] http://spark.apache.org/docs/latest/spark-standalone.html
 [2] http://spark.apache.org/docs/latest/running-on-mesos.html
 [3] https://docs.mesosphere.com/1.7/usage/service-guides/spark/

 Thanks.

 --
 Akila Ravihansa Perera
 WSO2 Inc.;  http://wso2.com/

 Blog: http://ravihansa3000.blogspot.com

>>>
>>>
>>>
>>> --
>>>
>>> Thanks & regards,
>>> Nirmal
>>>
>>> Team Lead - WSO2 Machine Learner
>>> Associate Technical Lead - Data Technologies Team, WSO2 Inc.
>>> Mobile: +94715779733
>>> Blog: http://nirmalfdo.blogspot.com/
>>>
>>>
>>>
>>
>>
>> --
>> Akila Ravihansa Perera
>> WSO2 Inc.;  http://wso2.com/
>>
>> Blog: http://ravihansa3000.blogspot.com
>>
>
>
>
> --
> *Imesh Gunaratne*
> Software Architect
> WSO2 Inc: http://wso2.com
> T: +94 11 214 5345 M: +94 77 374 2057
> W: https://medium.com/@imesh TW: @imesh
>
>


-- 
*Niranda Perera*
Software Engineer, WSO2 Inc.
Mobile: +94-71-554-8430
Twitter: @n1r44 
https://pythagoreanscript.wordpress.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Mesos artifacts] Deploying wso2das 3.x.x on Mesos

2016-07-06 Thread Imesh Gunaratne
Hi Akila,

IMO it would better to use Spark Mesos Framework on Mesos DC/OS for
production deployments rather than trying to cluster the built-in Spark
module on Mesos. Then we might not need to worry much about this problem.

None production environments such as Dev should be able to use a standalone
DAS server with a volume mount with auto healing. WDYT?

Thanks

On Wed, Jul 6, 2016 at 9:38 AM, Akila Ravihansa Perera 
wrote:

> [Looping Anjana and Isuru]
>
> @Anjana, Niranda: is it possible to plugin a custom member discovery
> scheme for Spark? In the current implementation how does a wso2das with
> embedded Spark instance discover the other members?
> I'm referring to Spark cluster mode deployment here.
>
> Thanks.
>
> On Wed, Jul 6, 2016 at 6:49 AM, Nirmal Fernando  wrote:
>
>> [Looping Niranda]
>>
>> On Tue, Jul 5, 2016 at 10:22 PM, Akila Ravihansa Perera <
>> raviha...@wso2.com> wrote:
>>
>>> Hi,
>>>
>>> Deploying wso2das in Mesos is bit tricky due to lack of overlay network
>>> support in Mesos OOTB. This is mainly because Spark cluster (when running
>>> in Spark cluster mode) is unable to communicate through Docker IP addresses
>>> when they are assigned to different host machines in a multi-node Mesos
>>> deployment. I checked the config options in [1] and tried setting
>>> SPARK_PUBLIC_DNS parameter to Mesos host IP without any success.
>>>
>>> The main problem is there is no way to instruct Spark members to bind to
>>> the local Docker IP and advertise a different IP (Mesos slave host IP) to
>>> other members.
>>>
>>> @Niranda, Nirmal: is this something we can fix from our side? AFAIU, we
>>> are using Hazelcast to discover Spark/wso2das members and adding them to
>>> Spark context, right?
>>>
>>> On a side note, there is a Wiki page explaining how Spark should be used
>>> with Mesos in [2]. This is available after Spark 1.2.0. In this approach,
>>> we treat each Mesos slave as a Spark member and Spark/Mesos driver can
>>> directly schedule tasks on Mesos slaves instead of running Spark itself as
>>> a container. We should consider this approach in our C5 based efforts. We
>>> can leverage Kubernetes in the same way.
>>>
>>> IMO, we should recommend users to use wso2das in Spark client mode on
>>> Mesos due to these complexities.
>>>
>>
>> +1, if we can't solve above from within DAS.
>>
>>
>>> There is a DCOS Mesos framework for Spark [3] which can be used to
>>> deploy Spark on Mesos very easily. We can even leverage DCOS Spark
>>> framework in our deploy scripts.
>>>
>>> [1] http://spark.apache.org/docs/latest/spark-standalone.html
>>> [2] http://spark.apache.org/docs/latest/running-on-mesos.html
>>> [3] https://docs.mesosphere.com/1.7/usage/service-guides/spark/
>>>
>>> Thanks.
>>>
>>> --
>>> Akila Ravihansa Perera
>>> WSO2 Inc.;  http://wso2.com/
>>>
>>> Blog: http://ravihansa3000.blogspot.com
>>>
>>
>>
>>
>> --
>>
>> Thanks & regards,
>> Nirmal
>>
>> Team Lead - WSO2 Machine Learner
>> Associate Technical Lead - Data Technologies Team, WSO2 Inc.
>> Mobile: +94715779733
>> Blog: http://nirmalfdo.blogspot.com/
>>
>>
>>
>
>
> --
> Akila Ravihansa Perera
> WSO2 Inc.;  http://wso2.com/
>
> Blog: http://ravihansa3000.blogspot.com
>



-- 
*Imesh Gunaratne*
Software Architect
WSO2 Inc: http://wso2.com
T: +94 11 214 5345 M: +94 77 374 2057
W: https://medium.com/@imesh TW: @imesh
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [ES]Error when Importing Users in Bulk through management console

2016-07-06 Thread Dilini Gunatilake
Hi Kasun,

I have tried bulk importing in ES 2.1.0 and it is working for me. May be
the format of the file you have used is incorrect. You can find the correct
format from [1]. I used the same file attached in the JIRA (names_2.csv).

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


Regards,
Dilini

On Tue, Jul 5, 2016 at 12:23 PM, Kasun Thennakoon  wrote:

> Hi all,
>
> I tried to create multiple user accounts in Entreprise store at once,
> rather than creating users one by one. I have tried to use *Bulk Import
> Users *option available in the management console.But I couldn't find the
> correct format of the file which I need to upload there.I search through
> the documentations and found these articles(Importing Users in Bulk [1
> ] and Bulk
> Import of Users [2
> ]
> ).There is a slight different in the documentation and what I'm
> having(Please see the attachment) in the management console , that there is
> no field to set a default password for the users.despite the issue, I just
> upload a CSV, with one column containing a list of usernames.But then got
> the following error:
>
> [2016-07-05 10:44:25,316] ERROR
>> {org.wso2.carbon.user.mgt.ui.UserAdminClient} -  Error occurs while
>> importing user names. All user names were not imported. Last error was :
>> Ask Password Feature is disabled
>> org.apache.axis2.AxisFault: Error occurs while importing user names. All
>> user names were not imported. Last error was : Ask Password Feature is
>> disabled
>> at
>> org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(Utils.java:531)
>> at
>> org.apache.axis2.description.RobustOutOnlyAxisOperation$RobustOutOnlyOperationClient.handleResponse(RobustOutOnlyAxisOperation.java:91)
>> at
>> org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:445)
>> at
>> org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:225)
>> at
>> org.apache.axis2.client.OperationClient.execute(OperationClient.java:149)
>> at
>> org.wso2.carbon.user.mgt.stub.UserAdminStub.bulkImportUsers(UserAdminStub.java:6887)
>> at
>> org.wso2.carbon.user.mgt.ui.UserAdminClient.bulkImportUsers(UserAdminClient.java:236)
>> at
>> org.apache.jsp.user.bulk_002dimport_002dfinish_jsp._jspService(bulk_002dimport_002dfinish_jsp.java:138)
>> at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
>> at
>> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:432)
>> at
>> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:395)
>> at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:339)
>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
>> at org.wso2.carbon.ui.JspServlet.service(JspServlet.java:155)
>> at org.wso2.carbon.ui.TilesJspServlet.service(TilesJspServlet.java:80)
>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
>> at
>> org.eclipse.equinox.http.helper.ContextPathServletAdaptor.service(ContextPathServletAdaptor.java:37)
>> at
>> org.eclipse.equinox.http.servlet.internal.ServletRegistration.service(ServletRegistration.java:61)
>> at
>> org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:128)
>> at
>> org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:68)
>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
>> at
>> org.wso2.carbon.tomcat.ext.servlet.DelegationServlet.service(DelegationServlet.java:68)
>> at
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
>> at
>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
>> at
>> org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:748)
>> at
>> org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:604)
>> at
>> org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:543)
>> at
>> org.eclipse.equinox.http.servlet.internal.RequestDispatcherAdaptor.include(RequestDispatcherAdaptor.java:37)
>> at
>> org.eclipse.equinox.http.helper.ContextPathServletAdaptor$RequestDispatcherAdaptor.include(ContextPathServletAdaptor.java:369)
>> at
>> org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:954)
>> at
>> org.apache.jasper.runtime.PageContextImpl.doInclude(PageContextImpl.java:688)
>> at
>> org.apache.jasper.runtime.PageContextImpl.include(PageContextImpl.java:682)
>> at sun.reflect.GeneratedMethodAccessor246.invoke(Unknown Source)
>> at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>> at java.lang.reflect.Method.invoke(Method.java:498)
>> at org.apache.tiles.jsp.context.JspUtil.doInclude(JspUtil.java:87)
>> at
>> org.apache.tiles.jsp.context.JspT

Re: [Dev] Clarifications on CEP HA Mode Deployments

2016-07-06 Thread Isuru Haththotuwa
+= wso2-dev list


On Wed, Jul 6, 2016 at 4:34 PM, Isuru Haththotuwa  wrote:

> Hi CEP team,
>
> I'm going through [1] to understand the CEP HA deployment. Have a few
> doubts to get clarified:
>
>
>1. In a two node HA cluster, in the eventSync/hostName configuration
>(event-processor.xml), do we need to provide the own host IP? If so, how
>does each nodes discover each other for event synchronization purpose? For
>what exact purpose this eventSync configuration is used?
>2. If we add a presenter node in addition to the two worker nodes, I
>assume we should point to the presenter node from the both worker nodes. As
>per the configuration, seems this is a TCP level connection. Why do we need
>a TCP connection to the presenter?
>
> Missed the link:

[1].
https://docs.wso2.com/display/CLUSTER44x/Clustering+CEP+4.0.0#ClusteringCEP4.0.0-Highavailabilitydeployment

>
> --
> Thanks and Regards,
>
> Isuru H.
> +94 716 358 048* *
>
>
>


-- 
Thanks and Regards,

Isuru H.
+94 716 358 048* *
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] How do I create a cache instance that's local to the JVM?

2016-07-06 Thread Nuwan Dias
Hi,

How can we create a cache instance that's local to the running JVM? I tried
using a cache name which has a prefix as "$_local_$.", but it doesn't seem
to work. Meaning that when I have two nodes in the same cluster, when the
cache is created on one node, the cache get I do on the other node returns
the cached object. Which means that this cache is still a distributed
cache. Is there anything wrong I'm doing or any other ways to achieve
$subject?

The code I use to get the cache instance is as below.

Caching.getCacheManager(

APIConstants.API_MANAGER_CACHE_MANAGER).getCache("$_local_$.GATEWAY_TOKEN_CACHE");


Thanks,

NuwanD.

-- 
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] "Error 403 - Forbidden" when session expires in admin console

2016-07-06 Thread Hasintha Indrajee
Hi all,

When trying to perform operations through admin console, once the session
is expired we are getting a 403 from admin console. Seems like this occurs
due to CSRF filter blocking the request since the session is no longer
available at the server side.

[2016-07-06 15:34:27,576]  WARN {org.owasp.csrfguard.log.JavaLogger} -
potential cross-site request forgery (CSRF) attack thwarted
(user:, ip:127.0.0.1, method:POST,
uri:/carbon/userprofile/set-finish-ajaxprocessor.jsp, error:request token
does not match session token)
-- 
Hasintha Indrajee
WSO2, Inc.
Mobile:+94 771892453
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [BPS][BPMN-Explorer][UI/UX] How to get Time input from user using daterangepicker

2016-07-06 Thread Milinda Perera
Thanks Dakshika,  that worked !

On Tue, Jul 5, 2016 at 8:34 PM, Dakshika Jayathilaka 
wrote:

> Hi Malinda,
>
> change format attribute as you want to get time values on text input.
>
> ex: format: 'MM/DD/ h:mm A'
>
>   $(function() {
> $('input[name="daterange"]').daterangepicker({ timePicker: true,
> timePickerIncrement: 30, locale: { format: 'MM/DD/ h:mm A' } }); });
> 
>
>
> Regards,
>
> *Dakshika Jayathilaka*
> PMC Member & Committer of Apache Stratos
> Associate Technical Lead
> WSO2, Inc.
> lean.enterprise.middleware
> 0771100911
>
> On Tue, Jul 5, 2016 at 6:37 PM, Milinda Perera  wrote:
>
>> Hi UI/UX team,
>>
>> In our BPS BPMN Explorer We need to add Start time (Date and time) and
>> End time (Date and time) for substitution UI. I used daterangepicker as
>> follows
>>
>> In HTML:
>>
>>  > onfocus="setDatePicker('subStartDate')">
>>
>> In JS setDatePicker(dateElement) function
>> var elementID = '#' + dateElement;
>> $(elementID).daterangepicker({
>> singleDatePicker: true,
>> showDropdowns: true,
>> timePicker: true,
>> parentEl: '#addSubstituteModalContent',
>> locale: {
>> format: 'MM/DD/'
>> }
>> });
>>
>> but when we select relevant time and date in pop-up, and click apply,
>> only the date appears in the text input. I have attached screenshot also.
>> What is the proper recommended way to get time input?
>>
>> Are there any recommened other options ?
>>
>> Thanks,
>> Milinda
>>
>> --
>> Milinda Perera
>> Software Engineer;
>> WSO2 Inc. http://wso2.com ,
>> Mobile: (+94) 714 115 032
>>
>>
>


-- 
Milinda Perera
Software Engineer;
WSO2 Inc. http://wso2.com ,
Mobile: (+94) 714 115 032
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev