Re: [Dev] [DS] Support primitive edit operations (moving and delete gadgets) operations in the view mode

2016-06-27 Thread Lasantha Samarakoon
​So as I understood after this change a viewer cannot go to the designer
mode, right? Or are we keeping the existing customize button for such
personalization capability. Plus, if we are enabling in page customization
in the view mode, then should provide a way to reset as well.​

*Lasantha Samarakoon* | Software Engineer
WSO2, Inc.
#20, Palm Grove, Colombo 03, Sri Lanka
Mobile: +94 (71) 214 1576
Email:  lasant...@wso2.com
Web:www.wso2.com

lean . enterprise . middleware

On Tue, Jun 28, 2016 at 9:24 AM, Jerad Rutnam  wrote:

> Hi Udara,
>
> I like the suggestion. But what I was thinking is that edit dashboard is
> not the primary use case of the dashboard. It's a secondary use case when
> it comes to the dashboard view. IMO I think its better we give an option to
> the user to enable the editing mode by giving a switcher/button etc ...
>
> WDYT?
>
> Cheers!
> Jerad
>
> On Mon, Jun 27, 2016 at 9:45 PM, Sinthuja Ragendran 
> wrote:
>
>>
>> On Mon, Jun 27, 2016 at 9:39 PM, Udara Rathnayake 
>> wrote:
>>
>>> Hi All,
>>>
>>> Based on above feedback suggesting following approach.
>>>
>>> Within dashboard view mode we make gadget toolbar clickable. (on mouse
>>> hover we can change the cursor value appropriately)
>>> - Once user click on the toolbar we enable delete button (hiding
>>> maximize button and make selected gadget active while others are not) also
>>> enable resize option at the bottom right-hand corner.
>>> - At this point we can make gadget draggable from the toolbar (by
>>> changing mouse pointer tocmove cursor) similar in designer.
>>>
>>> WDYT?
>>>
>>
>> +1.
>>
>> Thanks,
>> Sinthuja.
>>
>>
>>>
>>> On Mon, Jun 27, 2016 at 2:15 PM, Jerad Rutnam  wrote:
>>>
 Hi Sinthuja,

 +1, I also think its better. We can simply enable designer mode only
 for designers and admins. And end users will have the capable of doing
 simple modifications on view mode it self.

 I believe in this case we will have a dynamic layout on view mode by
 default.

 Cheers!
 Jerad

 On Mon, Jun 27, 2016 at 1:35 PM, Sinthuja Ragendran 
 wrote:

> Hi Udara,
>
> On Mon, Jun 27, 2016 at 1:27 PM, Tanya Madurapperuma 
> wrote:
>
>> Hi Udara,
>>
>>
>> On Mon, Jun 27, 2016 at 12:41 PM, Udara Rathnayake 
>> wrote:
>>
>>> Hi UX team,
>>>
>>> Requirement is to provide simple dashboard viewer level
>>> customization within the dashboard view rather redirecting to the 
>>> designer.
>>>
>> If a user in the designer role logs into the dashboard, do we
>> redirect him/her to designer view or do we allow them also to do minor
>> changes being on the view mode ? Or is this just for personalization.
>>
>
> The main idea is to avoid user to switch the modes (ie, switching
> between designer/view modes) when doing such simple personalization
> modifications. Hence IMHO we should not again ask for go to 
> simple/advanced
> designing, rather by default the view mode should have the simple 
> designing
> enabled where as he/she should be able to drag the gadgets, and delete 
> them
> if he/she doesn't want it.
>
> Thanks,
> Sinthuja.
>
> Thanks,
>> Tanya
>>
>>>
>>> Simple customization includes(as per the RM),
>>> 1. Deleting a gadget
>>> 2. Moving a gadget
>>> 3. Resize a gadget
>>>
>>> Still, viewer should be able to go to the designer for extensive
>>> customizations.
>>>
>>> How should we distinguish these two operations in the dashboard
>>> view? Right now we have following menu item,
>>>
>>>
>>> ​
>>>
>>> Shall we get an input from the user once he/she press the Customize
>>> Dashboard menu and continue?
>>>
>>> Eg:-
>>>
>>>
>>> ​
>>>
>>> Even with this kind of an interaction(simple vs extensive) it's hard
>>> to convey what is the difference between these two types.
>>>
>>> Appreciate your feedback.
>>>
>>> --
>>> Regards,
>>> UdaraR
>>>
>>
>>
>>
>> --
>> Tanya Madurapperuma
>>
>> Senior Software Engineer,
>> WSO2 Inc. : wso2.com
>> Mobile : +94718184439
>> Blog : http://tanyamadurapperuma.blogspot.com
>>
>
>
>
> --
> *Sinthuja Rajendran*
> Technical Lead
> WSO2, Inc.:http://wso2.com
>
> Blog: http://sinthu-rajan.blogspot.com/
> Mobile: +94774273955
>
>
>


 --
 *Jerad Rutnam*
 *Software Engineer*

 WSO2 Inc.
 lean | enterprise | middleware
 M : +94 77 959 1609 | E : je...@wso2.com | W : www.wso2.com

>>>
>>>
>>>
>>> --
>>> Regards,
>>> UdaraR
>>>
>>
>>
>>
>> --
>> *Sinthuja Rajendran*
>> Technical Lead
>> WSO2, Inc.:http://wso2.com
>>
>> Blog: 

[Dev] Getting error when starting WSO2 IS 5.1.0 Key Manager in Mesos DC/OS

2016-06-27 Thread Thanuja Uruththirakodeeswaran
Hi All,

I'm getting below error when deploying WSO2 IS 5.1.0 Key Manager
application [1] in Mesos DC/OS. I have used the hosted IS-5.1.0 Key Manager
pack [2] to build the docker image.

I0627 02:40:36.478433 27342 exec.cpp:143] Version: 0.28.1
I0627 02:40:36.481850 27369 exec.cpp:217] Executor registered on slave
877f8cbc-9f5d-4fed-ab3d-82e145e8d33a-S3
rm: cannot remove
'/mnt/192.168.65.111-172.17.0.6/wso2is-km-5.1.0/tmp/axis2-tmp-6697148023468900485.tmp':
Directory not empty
rm: cannot remove
'/mnt/192.168.65.111-172.17.0.6/wso2is-km-5.1.0/tmp/bundles_info_f09679b3-4b3d-4f19-8ddf-139763830045':
Directory not empty
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.wso2.carbon.bootstrap.Bootstrap.loadClass(Bootstrap.java:63)
at org.wso2.carbon.bootstrap.Bootstrap.main(Bootstrap.java:45)
Caused by: java.lang.RuntimeException:
/mnt/wso2is-km-5.1.0/repository/components/default/configuration/org.eclipse.osgi/.manager/.fileTable.9
(No such file or directory)
at org.wso2.carbon.server.CarbonLauncher.launch(CarbonLauncher.java:115)
at org.wso2.carbon.server.Main.launchCarbon(Main.java:160)
at org.wso2.carbon.server.Main.main(Main.java:94)
... 6 more

If I remove the files in
[CARBON_HOME]/repository/components/default/configuration/org.eclipse.osgi/.manager/
directory in the hosted KM pack and use it to build the docker images, I am
able to deploy it in successfully and the server starts without any issue.

As per the offline discussion with Niranjan, the above mentioned files will
be created if we install the features via UI. If we can install Key Manager
features using pom files, then above issue will be resolved.

@APIM_team: Shall we fix this and host the new IS 5.1.0 Key Manager pack?

[1]. https://github.com/wso2/mesos-artifacts/tree/master/wso2is-km
[2].
http://product-dist.wso2.com/downloads/api-manager/1.10.0/identity-server/wso2is-5.1.0.zip

Thanks.

-- 
Thanuja Uruththirakodeeswaran
Software Engineer
WSO2 Inc.;http://wso2.com
lean.enterprise.middleware

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


Re: [Dev] [GSOC 16] Initial Project Progress

2016-06-27 Thread Osura Rathnayake
Hi Akila,

Thank you for the feedback and please accept my apologies for the delayed
response.
I updated the code according to the guidelines you have provided on coding
standards and pushed it to the repository [1].
tenantId is used here [2].
I'm not familiar with Netflix Feign standard on HTTP requests. Can you
please explain it briefly or mention a link to a tutorial?

[1] https://github.com/osuran/azure-membership-scheme
[2]
https://github.com/osuran/azure-membership-scheme/blob/master/src/main/java/org/wso2/carbon/clustering/azure/AzureMembershipScheme.java#L168

Thanks,

On Fri, Jun 24, 2016 at 10:49 PM, Imesh Gunaratne  wrote:

>
>
> On Fri, Jun 24, 2016 at 10:43 PM, Akila Ravihansa Perera <
> raviha...@wso2.com> wrote:
>
>> Hi Osura,
>>
>> I still see some issues in the code.
>>
>> 1. Make sure to use consts when appropriate [1]
>> 2. Where do you use tenantId [2] ?
>> 3. Use the actual parameter key in the error message [3] instead of hard
>> coding it
>> 4. You need to adhere to max line len of 120 chars. I see this standard
>> being violated in couple of places [4]. Use IDE formatting tool to fix this
>> 5. Do not keep empty spaces [5]. This is bad code styling
>>
>> @Imesh: Osura has used Apache HTTP client to send HTTP requests [6].
>> Shall we make Netflix Feign the standard for this?
>>
>
> ​+1 Yes, definitely.
>
> Thanks​
>
>
>>
>> [1]
>> https://github.com/osuran/azure-membership-scheme/blob/master/src/main/java/org/wso2/carbon/clustering/azure/AzureMembershipScheme.java#L117
>> [2]
>> https://github.com/osuran/azure-membership-scheme/blob/master/src/main/java/org/wso2/carbon/clustering/azure/AzureMembershipScheme.java#L107
>> [3]
>> https://github.com/osuran/azure-membership-scheme/blob/master/src/main/java/org/wso2/carbon/clustering/azure/AzureMembershipScheme.java#L148
>> [4]
>> https://github.com/osuran/azure-membership-scheme/blob/master/src/main/java/org/wso2/carbon/clustering/azure/AzureMembershipScheme.java#L181
>> [5]
>> https://github.com/osuran/azure-membership-scheme/blob/master/src/main/java/org/wso2/carbon/clustering/azure/AzureMembershipScheme.java#L94
>> [6]
>> https://github.com/osuran/azure-membership-scheme/blob/master/src/main/java/org/wso2/carbon/clustering/azure/AzureMembershipScheme.java#L234
>>
>> Thanks.
>>
>> On Fri, Jun 24, 2016 at 11:05 AM, Imesh Gunaratne  wrote:
>>
>>>
>>>
>>> On Fri, Jun 24, 2016 at 11:00 AM,  wrote:
>>>
 Hi Imesh,

 Yes I completed the evaluation.

>>> ​Great! Thanks!​
>>>
 Thanks,

 Get Outlook for Android 



 On Fri, Jun 24, 2016 at 10:08 AM +0530, "Imesh Gunaratne" <
 im...@wso2.com> wrote:

 Hi Osura,
>
> Were you able to submit the midterm evaluation? Might be better to do
> it soon.
>
> Thanks
> ​Imesh​
>
>
>>>
>>>
>>> --
>>> *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
>>> Lean . Enterprise . Middleware
>>>
>>>
>>
>>
>> --
>> 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
> Lean . Enterprise . Middleware
>
>


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


Re: [Dev] [APIM 2.0] Revoked access and revoked refresh tokens returning with http response header

2016-06-27 Thread Sanjeewa Malalgoda
We usually recommend to expose token endpoint via API.
So we can remove relevant transport headers at gateway. So user will not
see them only internal traffic will have those headers.

Thanks,
sanjeewa.

On Mon, Jun 27, 2016 at 11:07 AM, Kavitha Subramaniyam 
wrote:

> Hi Nuwan,
> Ok, I understand the situation now and agree with you. Since we don't have
> any solution at the moment, you can make as an improvement for future
> reference if need..
>
> Thanks,
> Kavitha
>
> On Mon, Jun 27, 2016 at 9:42 AM, Nuwan Dias  wrote:
>
>> Yes, this is not part of the spec. Its implemented as such because this
>> is a problem which is unique to us and its a result of the product's
>> architecture. And there is no known generic solution yet on how to handle
>> it when using third party key managers. But that shouldn't mean we should
>> at least fix it for our own key manager. People would accept limitations
>> when they're using their own key managers but they wouldn't accept
>> limitations when using our own key manager. So unless we find a generic
>> solution which works across everything, its fine to live with it IMO as
>> long as it doesn't have any undesired impacts. If you have any suggestions
>> on how to fix it globally you could contribute with your ideas.
>>
>> However, this now doesn't look like a bug to me. Although the JiRA has
>> been reported as a bug.
>>
>> Thanks,
>> NuwanD.
>>
>> On Sat, Jun 25, 2016 at 8:32 PM, Kavitha Subramaniyam 
>> wrote:
>>
>>> Hi Nuwan,
>>>
>>> Thank you for the response..
>>> I have been understood the behavior and there is no security risk when
>>> revoked token values returning to the response endpoint.
>>>
>>> But as per my understanding, when we use third party key manger that
>>> will not let to know the gateway to do cache clear like in our
>>> implementation the key manager gives the knowledge and the gateway relies
>>> on that to clear its caches.. Since our implementation is not part of spec,
>>> I thought to create a jira to track this in APIM and if apim would give any
>>> solution for this.. I shall add the comment to the jira as well.
>>>
>>>
>>> Thanks,
>>> Kavitha
>>>
>>> On Fri, Jun 24, 2016 at 6:55 PM, Nuwan Dias  wrote:
>>>
 Any idea why its bad? That jira doesn't clearly say why. It won't
 return anything in those headers if someone sends invalid values. So I'm
 wondering how it can be bad.

 The reason we use these return values is to clear the gateway cache.
 When the key manager refreshes a token, the Gateway doesn't know which
 access token was revoked. So it has no knowledge of which tokens to clear
 from its cache. Any suggestions on alternative approaches of clearing the
 cache in those scenarios?

 Thanks,
 NuwanD.

 On Fri, Jun 24, 2016 at 6:25 PM, Aparna Karunarathna 
 wrote:

> Hi Nuwan,
>
> Kavitha was asking, RevokedAccessToken & RevokedRefreshToken are
> getting in the header because it was requested requirement by APIM team 
> [1]
> ? Jira [1] says it's a bad implementation. So are we going to fix[2] ?
>
> [1] https://wso2.org/jira/browse/IDENTITY-4112
> [2] https://wso2.org/jira/browse/APIMANAGER-5098
>
> Regards,
> Aparna.
>
> On Fri, Jun 24, 2016 at 5:44 PM, Nuwan Dias  wrote:
>
>> Can you explain what the issue here is? You have raised the ticket as
>> a bug but you've forgotten to describe what the bug actually is?
>>
>> On Fri, Jun 24, 2016 at 5:39 PM, Kavitha Subramaniyam <
>> kavi...@wso2.com> wrote:
>>
>>> Hi apim team,
>>> A jira has been raised to track this issue in [1]
>>>
>>> [1] https://wso2.org/jira/browse/APIMANAGER-5098
>>>
>>> Thanks,
>>>
>>> On Thu, Jun 23, 2016 at 6:31 PM, Kavitha Subramaniyam <
>>> kavi...@wso2.com> wrote:
>>>
 Hi team,
 Highly appreciate your update on this.

 Thanks,

 On Wed, Jun 22, 2016 at 2:28 PM, Kavitha Subramaniyam <
 kavi...@wso2.com> wrote:

> Hi team,
>
> I observed that both revoked access and revoked refresh tokens
> were returning in http response header [3].
> setup : IS as KM
>  - apim 2.0.0 17th nightly build
>  - IS 5.2.0 19th build
>  - Token encryption enabled
>
> Could you please confirm that this behavior is not resolved
> purposely in apim 2.0.0 due to the reasons discussed in mail thread 
> [1], or
> it has been solved?
> Find an identity jira was raised for IS issue [2]
>
> [1] Revoked Access Token and Revoked Refresh Token returned back
> in token revoke endpoint response
>
> [2] https://wso2.org/jira/browse/IDENTITY-4112
>
> [3]
>
> [2016-06-22 

Re: [Dev] How to open a perspective on eclipse startup

2016-06-27 Thread Susinda Perera
Hi Awanthika

I hope workbenchWindow.getActivePage() is null, this may be because at the
startup, it might not have initiated by that time? is there
a possibility to delay this call a bit and try?

/Susinda

On Tue, Jun 28, 2016 at 9:11 AM, Awanthika Senarath 
wrote:

> Hi,
>
> I want to start eclipse in a custom perspective, but when I try to do that
> in the startup method, it throws a null pointer exception at the point I
> try to access the Display thread.
>
> code used to invoke the perspective :
>
> final IWorkbenchWindow workbenchWindow =
> PlatformUI.getWorkbench().getActiveWorkbenchWindow();
> IPerspectiveDescriptor activePerspective =
> workbenchWindow.getActivePage().getPerspective();// null pointer here
> if (activePerspective == null ||
> !activePerspective.getId().equals(PERSPECTIVE_ID)) {
> Display.getCurrent().asyncExec(new Runnable() {// if I remove the get
> active page since it is not mandatory, I get null pointer here.
> public void run() {
> // switch perspective
> try {
> workbenchWindow.getWorkbench().showPerspective(PERSPECTIVE_ID,
> workbenchWindow);
> } catch (WorkbenchException e) {
> log.error("Can not switch to perspective: " + PERSPECTIVE_ID, e);
> }
> }
> });
> }
>
>
> Can someone help me to open eclipse in my custom perspective? I tried
> using this in an early startup as well as in the activator class, both gave
> same results.
>
>
> Regards
> Awanthika Senarath
> Senior Software Engineer, WSO2 Inc.
> Mobile: +94717681791
>
>
>


-- 
*Susinda Perera*
Software Engineer
B.Sc.(Eng), M.Sc(Computer Science), AMIE(SL)
Mobile:(+94)716049075
Blog: susinda.blogspot.com
WSO2 Inc. http://wso2.com/
Tel : 94 11 214 5345 Fax :94 11 2145300
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Carbon][IS][AppM] Kernel update to 4.4.6 in AppM gives ClassNotFoundException by opensaml_2.6.4.wso2v2

2016-06-27 Thread Kasun Bandara
Hi Dinusha,

We have successfully upgraded our repositories to kernel 4.4.6. You can
find the required feature update from [1] & [2].

Thanks,
Kasun.

[1]
https://github.com/wso2/carbon-identity-framework/blob/master/features/xacml/org.wso2.carbon.identity.xacml.server.feature/pom.xml

[2] https://github.com/wso2/carbon-identity-framework/blob/master/pom.xml

On Tue, Jun 28, 2016 at 9:50 AM, Dinusha Senanayaka 
wrote:

> Hi Kasun,
>
> Any update on this ?
>
> Regards,
> Dinusha.
>
> On Mon, Jun 27, 2016 at 10:05 AM, Kasun Bandara  wrote:
>
>> Hi Dinusha,
>>
>> We will be upgrading to kernel 4.4.6 with the required upgrade to
>> opensaml & joda versions with in today. I will update the thread once it's
>> done.
>>
>> Thanks,
>> Kasun.
>>
>> On Mon, Jun 27, 2016 at 9:58 AM, Dinusha Senanayaka 
>> wrote:
>>
>>> Hi Kasun,
>>>
>>> Can you please review and merge PR [1] which fix the issue mentioned in
>>> $subject. Please treat this as urgent since AppM product release testing
>>> blocked without fixing this.
>>>
>>> [1] https://github.com/wso2/carbon-identity-framework/pull/346
>>>
>>> Regards,
>>> Dinusha.
>>>
>>> On Fri, Jun 24, 2016 at 4:16 PM, Kasun Bandara  wrote:
>>>
 Hi Dinuhsa,

 We will be releasing the required repositories on top of the kernel
 4.4.6 release next week for the IS 5.3.0-M3. Along with that we have
 decided to release a component release for release-productis-5.2.0 branch
 as well, which you can use on top of kernel 4.4.6. (5.1.1 SNAPSHOT)

 Thanks,
 Kasun.

 On Fri, Jun 24, 2016 at 12:44 PM, Dinusha Senanayaka 
 wrote:

> Hi Kasun,
>
> Please find the identity features used in AppM.
>
>
> org.wso2.carbon.identity:org.wso2.carbon.security.mgt.feature:${carbon.identity.version}
> 
>
> org.wso2.carbon.identity:org.wso2.carbon.identity.application.mgt.feature:${carbon.identity.version}
> 
>
> org.wso2.carbon.identity:org.wso2.carbon.user.mgt.feature:${carbon.identity.version}
> 
>
> org.wso2.carbon.identity:org.wso2.carbon.user.mgt.ui.feature:${carbon.identity.version}
> 
>
> org.wso2.carbon.identity:org.wso2.carbon.identity.core.feature:${carbon.identity.version}
> 
>
> org.wso2.carbon.identity:org.wso2.carbon.identity.provider.server.feature:${carbon.identity.version}
> 
>
> org.wso2.carbon.identity:org.wso2.carbon.identity.user.registration.server.feature:${carbon.identity.version}
> 
>
> org.wso2.carbon.identity:org.wso2.carbon.identity.oauth.feature:${carbon.identity.version}
> 
>
> org.wso2.carbon.identity:org.wso2.carbon.idp.mgt.feature:${carbon.identity.version}
> 
>
> org.wso2.carbon.identity:org.wso2.carbon.identity.user.profile.server.feature:${carbon.identity.version}
> 
>
> org.wso2.carbon.identity:org.wso2.carbon.identity.oauth.server.feature:${carbon.identity.oauth.version}
>
> org.wso2.carbon.identity:org.wso2.carbon.idp.mgt.server.feature:${carbon.identity.oauth.version}
>
> org.wso2.carbon:org.wso2.carbon.identity.oauth.common.feature:${identity.oauth.common.version}
> 
>
> org.wso2.carbon.identity:org.wso2.carbon.identity.application.authenticator.basicauth.server.feature:${carbon.identity.version}
> 
> 
>
> org.wso2.carbon.identity:org.wso2.carbon.identity.application.authenticator.samlsso.server.feature:${carbon.identity.version}
> 
> 
>
> org.wso2.carbon.identity:org.wso2.carbon.claim.mgt.feature:${carbon.identity.version}
> 
> 
>
> org.wso2.carbon.identity:org.wso2.carbon.identity.thrift.authentication.feature:${carbon.identity.version}
> 
> 
>
> org.wso2.carbon.identity:org.wso2.carbon.user.mgt.server.feature:${carbon.identity.version}
> 
>
> org.wso2.carbon.identity:org.wso2.carbon.identity.application.authentication.framework.server.feature:${carbon.identity.version}
>
> org.wso2.carbon.identity:org.wso2.carbon.identity.sso.saml.feature:${carbon.identity.version}
> 
> 
>
> org.wso2.carbon.identity:org.wso2.carbon.identity.authenticator.saml2.sso.feature:${carbon.identity-inbound-auth-saml2.version}
> 
>
> org.wso2.carbon.identity:org.wso2.carbon.identity.user.profile.feature:${carbon.identity.version}
>
> org.wso2.carbon.identity:org.wso2.carbon.um.ws.service.feature:${carbon.identity.version}
>
> org.wso2.carbon.identity:org.wso2.carbon.um.ws.service.server.feature:${carbon.identity.version}
>
> org.wso2.carbon.identity:org.wso2.carbon.identity.mgt.feature:${carbon.identity.version}
>
> org.wso2.carbon.identity:org.wso2.carbon.identity.xacml.feature:${carbon.identity.version}
>
>
> org.wso2.carbon.identity:org.wso2.carbon.identity.provisioning.server.feature:${carbon.identity.version}
>
> 

[Dev] Misleading Aggregate Mediator Description

2016-06-27 Thread Vimalanathan Rajeevan
Hi,

The description[1] is as below,

The *Aggregate mediator* implements the Aggregator enterprise integration
pattern 
and aggregates the *response messages* for messages that were split by the
Clone  or Iterate
 mediator and sent
using the Send 
mediator.

Doesn't above paragraph mean that Aggregate mediator will aggregate
messages and send that using a Send mediator even if we don't explicitly
call Send mediator?
Also as I believe there are some places we don't even use a Send mediator
when there is an Aggregate mediator.
Appreciate your thoughts on this.

[1] https://docs.wso2.com/display/ESB490/Aggregate+Mediator

Thanks,
Rajeevan
-- 
Vimalanathan Rajeevan
Software Engineer,
WSO2, Inc. *http://wso2.com* 
Lean.Enterprise.Middleware

Mobile:
*+94 773090875*
LinkedIn:
*https://www.linkedin.com/in/RajeevanVimalanathan
*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Add zero values for missing data points in dashboard line charts

2016-06-27 Thread Tharik Kanaka
Hi Dinesh,

This cannot be handled by the charting library level as it plots given data
in a linear scale. Missing data could be a  day, hour, minute or even a
second. It depends on the datetime range of the data. Therefore we need to
handle these at data provider level.

In analytics implementations including ESB analytics, IS Analytics and etc,
this can done at date time picker selection level since there are options
last hour, day, month. Even in custom date ranges we determine aggregation
levels to load from DAS. We could have a configuration to enable or disable
this capability as this is an optional requirement.  At the moment this has
been done in log analyzer charts in data level.

When it comes to generic chart level in the portal wizard, it would be
little bit challenging to generalize this feature as data is dynamic. Date
ranges to be calculated with min and max values. This becomes worse in real
time gadgets as ranges could be drastically change and whole chart needs to
be redrawn with data changes.

Regards,

On Tue, Jun 28, 2016 at 7:22 AM, Chanaka Fernando  wrote:

> Hi Dinesh,
>
> Thank you for bringing this up. I think what you have pointed out needs to
> be corrected (if possible). In ESB use cases, this can be a common scenario
> where servers will get high traffic at a given time period and there can be
> time periods without any traffic. I think how google analytics handles this
> scenario is correct.
>
> Thanks,
> Chanaka
>
>
> On Mon, Jun 27, 2016 at 9:42 PM, Dinesh J Weerakkody 
> wrote:
>
>> Hi,
>>
>> When we add line charts in dashboards, there can be senarios where we
>> don't have any data in the given time period. For example lets say that we
>> following summerized dataset.
>>
>> *DateRequestCount*
>> Sun  5
>> Mon 3
>> Tue  4
>> Thu  6
>> Fri5
>> Sat   3
>>
>> Please note that Wednesday is missing in the data set since we don't have
>> any request on that day. If we visualize above dataset in a line chart it
>> will add a Wednesday to the chart without a data point. Chart simply draw
>> the line from Tue to Thu and it feels like Wed is also has data.
>>
>> In Google Analitics this is not the case. Please look at the chart beloe.
>>
>> [image: Inline image 1]
>>
>> In Above chart we have Zero value data points.
>>
>> Can we have the same thing with our dshboard also? Can we achive this by
>> writing a custom JS code for the underlaying JS libraries that are used in
>> the DS?
>>
>> @Chanaka,
>>
>> Please note that this issue is there even in ESB Analytics. Look at the
>> line charts in [1]. I'm not sure whether this behaviour is ok with you or
>> not :)
>>
>> [1]
>> https://docs.wso2.com/display/ESB500/Monitoring+WSO2+ESB+with+WSO2+Analytics
>>
>> Thanks
>>
>> *Dinesh J. Weerakkody*
>> Senior Software Engineer
>> WSO2 Inc.
>> lean | enterprise | middleware
>> M : +94 727 868676 | E : dine...@wso2.com | W : www.wso2.com
>>
>
>
>
> --
> Thank you and Best Regards,
> Chanaka Fernando
> Senior Technical Lead
> WSO2, Inc.; http://wso2.com
> lean.enterprise.middleware
>
> mobile: +94 773337238
> Blog : http://soatutorials.blogspot.com
> LinkedIn:http://www.linkedin.com/pub/chanaka-fernando/19/a20/5b0
> Twitter:https://twitter.com/chanakaudaya
>
>
>
>
>


-- 

*Tharik Kanaka*

WSO2, Inc |#20, Palm Grove, Colombo 03, Sri Lanka

Email: tha...@wso2.com | Web: www.wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Carbon][IS][AppM] Kernel update to 4.4.6 in AppM gives ClassNotFoundException by opensaml_2.6.4.wso2v2

2016-06-27 Thread Dinusha Senanayaka
Hi Kasun,

Any update on this ?

Regards,
Dinusha.

On Mon, Jun 27, 2016 at 10:05 AM, Kasun Bandara  wrote:

> Hi Dinusha,
>
> We will be upgrading to kernel 4.4.6 with the required upgrade to opensaml
> & joda versions with in today. I will update the thread once it's done.
>
> Thanks,
> Kasun.
>
> On Mon, Jun 27, 2016 at 9:58 AM, Dinusha Senanayaka 
> wrote:
>
>> Hi Kasun,
>>
>> Can you please review and merge PR [1] which fix the issue mentioned in
>> $subject. Please treat this as urgent since AppM product release testing
>> blocked without fixing this.
>>
>> [1] https://github.com/wso2/carbon-identity-framework/pull/346
>>
>> Regards,
>> Dinusha.
>>
>> On Fri, Jun 24, 2016 at 4:16 PM, Kasun Bandara  wrote:
>>
>>> Hi Dinuhsa,
>>>
>>> We will be releasing the required repositories on top of the kernel
>>> 4.4.6 release next week for the IS 5.3.0-M3. Along with that we have
>>> decided to release a component release for release-productis-5.2.0 branch
>>> as well, which you can use on top of kernel 4.4.6. (5.1.1 SNAPSHOT)
>>>
>>> Thanks,
>>> Kasun.
>>>
>>> On Fri, Jun 24, 2016 at 12:44 PM, Dinusha Senanayaka 
>>> wrote:
>>>
 Hi Kasun,

 Please find the identity features used in AppM.


 org.wso2.carbon.identity:org.wso2.carbon.security.mgt.feature:${carbon.identity.version}
 

 org.wso2.carbon.identity:org.wso2.carbon.identity.application.mgt.feature:${carbon.identity.version}
 

 org.wso2.carbon.identity:org.wso2.carbon.user.mgt.feature:${carbon.identity.version}
 

 org.wso2.carbon.identity:org.wso2.carbon.user.mgt.ui.feature:${carbon.identity.version}
 

 org.wso2.carbon.identity:org.wso2.carbon.identity.core.feature:${carbon.identity.version}
 

 org.wso2.carbon.identity:org.wso2.carbon.identity.provider.server.feature:${carbon.identity.version}
 

 org.wso2.carbon.identity:org.wso2.carbon.identity.user.registration.server.feature:${carbon.identity.version}
 

 org.wso2.carbon.identity:org.wso2.carbon.identity.oauth.feature:${carbon.identity.version}
 

 org.wso2.carbon.identity:org.wso2.carbon.idp.mgt.feature:${carbon.identity.version}
 

 org.wso2.carbon.identity:org.wso2.carbon.identity.user.profile.server.feature:${carbon.identity.version}
 

 org.wso2.carbon.identity:org.wso2.carbon.identity.oauth.server.feature:${carbon.identity.oauth.version}

 org.wso2.carbon.identity:org.wso2.carbon.idp.mgt.server.feature:${carbon.identity.oauth.version}

 org.wso2.carbon:org.wso2.carbon.identity.oauth.common.feature:${identity.oauth.common.version}
 

 org.wso2.carbon.identity:org.wso2.carbon.identity.application.authenticator.basicauth.server.feature:${carbon.identity.version}
 
 

 org.wso2.carbon.identity:org.wso2.carbon.identity.application.authenticator.samlsso.server.feature:${carbon.identity.version}
 
 

 org.wso2.carbon.identity:org.wso2.carbon.claim.mgt.feature:${carbon.identity.version}
 
 

 org.wso2.carbon.identity:org.wso2.carbon.identity.thrift.authentication.feature:${carbon.identity.version}
 
 

 org.wso2.carbon.identity:org.wso2.carbon.user.mgt.server.feature:${carbon.identity.version}
 

 org.wso2.carbon.identity:org.wso2.carbon.identity.application.authentication.framework.server.feature:${carbon.identity.version}

 org.wso2.carbon.identity:org.wso2.carbon.identity.sso.saml.feature:${carbon.identity.version}
 
 

 org.wso2.carbon.identity:org.wso2.carbon.identity.authenticator.saml2.sso.feature:${carbon.identity-inbound-auth-saml2.version}
 

 org.wso2.carbon.identity:org.wso2.carbon.identity.user.profile.feature:${carbon.identity.version}

 org.wso2.carbon.identity:org.wso2.carbon.um.ws.service.feature:${carbon.identity.version}

 org.wso2.carbon.identity:org.wso2.carbon.um.ws.service.server.feature:${carbon.identity.version}

 org.wso2.carbon.identity:org.wso2.carbon.identity.mgt.feature:${carbon.identity.version}

 org.wso2.carbon.identity:org.wso2.carbon.identity.xacml.feature:${carbon.identity.version}


 org.wso2.carbon.identity:org.wso2.carbon.identity.provisioning.server.feature:${carbon.identity.version}

 org.wso2.carbon.identity:org.wso2.carbon.identity.application.authenticator.openid.server.feature:${carbon.identity.version}

 org.wso2.carbon.identity:org.wso2.carbon.identity.application.authenticator.oidc.server.feature:${carbon.identity.version}

 org.wso2.carbon.identity:org.wso2.carbon.identity.application.authenticator.passive.sts.server.feature:${carbon.identity.version}

 org.wso2.carbon.identity:org.wso2.carbon.identity.application.authenticator.iwa.server.feature:${carbon.identity.version}

 

Re: [Dev] GSoC2016-Contact Development Team Feature

2016-06-27 Thread Nathiesha Maddage
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


Re: [Dev] [DS] Support primitive edit operations (moving and delete gadgets) operations in the view mode

2016-06-27 Thread Jerad Rutnam
Hi Udara,

I like the suggestion. But what I was thinking is that edit dashboard is
not the primary use case of the dashboard. It's a secondary use case when
it comes to the dashboard view. IMO I think its better we give an option to
the user to enable the editing mode by giving a switcher/button etc ...

WDYT?

Cheers!
Jerad

On Mon, Jun 27, 2016 at 9:45 PM, Sinthuja Ragendran 
wrote:

>
> On Mon, Jun 27, 2016 at 9:39 PM, Udara Rathnayake  wrote:
>
>> Hi All,
>>
>> Based on above feedback suggesting following approach.
>>
>> Within dashboard view mode we make gadget toolbar clickable. (on mouse
>> hover we can change the cursor value appropriately)
>> - Once user click on the toolbar we enable delete button (hiding maximize
>> button and make selected gadget active while others are not) also enable
>> resize option at the bottom right-hand corner.
>> - At this point we can make gadget draggable from the toolbar (by
>> changing mouse pointer tocmove cursor) similar in designer.
>>
>> WDYT?
>>
>
> +1.
>
> Thanks,
> Sinthuja.
>
>
>>
>> On Mon, Jun 27, 2016 at 2:15 PM, Jerad Rutnam  wrote:
>>
>>> Hi Sinthuja,
>>>
>>> +1, I also think its better. We can simply enable designer mode only for
>>> designers and admins. And end users will have the capable of doing simple
>>> modifications on view mode it self.
>>>
>>> I believe in this case we will have a dynamic layout on view mode by
>>> default.
>>>
>>> Cheers!
>>> Jerad
>>>
>>> On Mon, Jun 27, 2016 at 1:35 PM, Sinthuja Ragendran 
>>> wrote:
>>>
 Hi Udara,

 On Mon, Jun 27, 2016 at 1:27 PM, Tanya Madurapperuma 
 wrote:

> Hi Udara,
>
>
> On Mon, Jun 27, 2016 at 12:41 PM, Udara Rathnayake 
> wrote:
>
>> Hi UX team,
>>
>> Requirement is to provide simple dashboard viewer level customization
>> within the dashboard view rather redirecting to the designer.
>>
> If a user in the designer role logs into the dashboard, do we redirect
> him/her to designer view or do we allow them also to do minor changes 
> being
> on the view mode ? Or is this just for personalization.
>

 The main idea is to avoid user to switch the modes (ie, switching
 between designer/view modes) when doing such simple personalization
 modifications. Hence IMHO we should not again ask for go to simple/advanced
 designing, rather by default the view mode should have the simple designing
 enabled where as he/she should be able to drag the gadgets, and delete them
 if he/she doesn't want it.

 Thanks,
 Sinthuja.

 Thanks,
> Tanya
>
>>
>> Simple customization includes(as per the RM),
>> 1. Deleting a gadget
>> 2. Moving a gadget
>> 3. Resize a gadget
>>
>> Still, viewer should be able to go to the designer for extensive
>> customizations.
>>
>> How should we distinguish these two operations in the dashboard view?
>> Right now we have following menu item,
>>
>>
>> ​
>>
>> Shall we get an input from the user once he/she press the Customize
>> Dashboard menu and continue?
>>
>> Eg:-
>>
>>
>> ​
>>
>> Even with this kind of an interaction(simple vs extensive) it's hard
>> to convey what is the difference between these two types.
>>
>> Appreciate your feedback.
>>
>> --
>> Regards,
>> UdaraR
>>
>
>
>
> --
> Tanya Madurapperuma
>
> Senior Software Engineer,
> WSO2 Inc. : wso2.com
> Mobile : +94718184439
> Blog : http://tanyamadurapperuma.blogspot.com
>



 --
 *Sinthuja Rajendran*
 Technical Lead
 WSO2, Inc.:http://wso2.com

 Blog: http://sinthu-rajan.blogspot.com/
 Mobile: +94774273955



>>>
>>>
>>> --
>>> *Jerad Rutnam*
>>> *Software Engineer*
>>>
>>> WSO2 Inc.
>>> lean | enterprise | middleware
>>> M : +94 77 959 1609 | E : je...@wso2.com | W : www.wso2.com
>>>
>>
>>
>>
>> --
>> Regards,
>> UdaraR
>>
>
>
>
> --
> *Sinthuja Rajendran*
> Technical Lead
> WSO2, Inc.:http://wso2.com
>
> Blog: http://sinthu-rajan.blogspot.com/
> Mobile: +94774273955
>
>
>


-- 
*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


[Dev] How to open a perspective on eclipse startup

2016-06-27 Thread Awanthika Senarath
Hi,

I want to start eclipse in a custom perspective, but when I try to do that
in the startup method, it throws a null pointer exception at the point I
try to access the Display thread.

code used to invoke the perspective :

final IWorkbenchWindow workbenchWindow =
PlatformUI.getWorkbench().getActiveWorkbenchWindow();
IPerspectiveDescriptor activePerspective =
workbenchWindow.getActivePage().getPerspective();// null pointer here
if (activePerspective == null ||
!activePerspective.getId().equals(PERSPECTIVE_ID)) {
Display.getCurrent().asyncExec(new Runnable() {// if I remove the get
active page since it is not mandatory, I get null pointer here.
public void run() {
// switch perspective
try {
workbenchWindow.getWorkbench().showPerspective(PERSPECTIVE_ID,
workbenchWindow);
} catch (WorkbenchException e) {
log.error("Can not switch to perspective: " + PERSPECTIVE_ID, e);
}
}
});
}


Can someone help me to open eclipse in my custom perspective? I tried using
this in an early startup as well as in the activator class, both gave same
results.


Regards
Awanthika Senarath
Senior Software Engineer, WSO2 Inc.
Mobile: +94717681791
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2 Docker images layered composition

2016-06-27 Thread Imesh Gunaratne
On Mon, Jun 27, 2016 at 11:44 PM, Isuru Haththotuwa  wrote:

> Hi Imesh,
>
> Agreed on the size impact. My concern is that this change does not bring
> in a significant improvement for the model that we have now.
>

​I think it has a significant improvement. If we don't use a base image​,
each product image will build on top of an OS image and each build will
download all the prerequisites. As a result the internet bandwidth will get
utilized unnecessarily. AFAIK we all faced this issue and created our own
base images to solve the problem. Therefore I think it's better to have a
base image in the remote repository.

At the time a production environment is being created, users can change the
base image to an OS image and get the image size optimizations done. WDYT?

Thanks


> Anyway, lets give this a go and try to improve ii as we go along. Anyway
> we should be able to push proper product images to the Dockerhub once we
> have OpenJDK support.
>
>>
>> Thanks
>>
>>>
>>> --
>>> Thanks and Regards,
>>>
>>> Isuru H.
>>> +94 716 358 048* *
>>>
>>>
>>>
>>
>>
>> --
>> *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
>> Lean . Enterprise . Middleware
>>
>>
>
>
> --
> Thanks and Regards,
>
> Isuru H.
> +94 716 358 048* *
>
>
>


-- 
*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
Lean . Enterprise . Middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2 Docker images layered composition

2016-06-27 Thread Imesh Gunaratne
Hi Akila,

On Mon, Jun 27, 2016 at 7:50 PM, Akila Ravihansa Perera 
wrote:

>
> Regarding tag names, it was done on purpose do multiple Puppet module
> releases for a specific WSO2 product version. I know it's ugly, but would
> like to hear others' thoughts/suggestions.
>

​I'm sorry I do not get this.​

​Can you please explain this in more detail?

Thanks​

-- 
*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
Lean . Enterprise . Middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Clarification regarding JIRA connector.

2016-06-27 Thread Bhashinee Nirmali
Thank you all.

On Mon, Jun 27, 2016 at 6:22 PM, Kathees Rajendram  wrote:

> Hi Bhashinee,
>
> Now we have the jira connector code in the location [1]. All connectors
> from esb-connectors repo [2] are moved to wso2-extensions location [3].
>
> [1] - https://github.com/wso2-extensions/esb-connector-jira
> [2] - https://github.com/wso2-attic/esb-connectors 
> [3] - https://github.com/wso2-extensions
>
> Thanks,
> Kathees
>
> On Mon, Jun 27, 2016 at 6:10 PM, Bhashinee Nirmali 
> wrote:
>
>> Hi All,
>>
>> There is a mismatch between the create issue in JIRA connector
>> documentation[1] and the createIssue.xml in github[2]. There is no such
>> parameter named "issueFields" in createIssue.xml. Kindly someone point me
>> to the latest code?
>>
>> [1]
>> https://docs.wso2.com/display/ESBCONNECTORS/Working+with+Issues+in+JIRA#WorkingwithIssuesinJIRA-createIssue
>>
>> [2]
>> https://github.com/wso2-attic/esb-connectors/blob/master/jira/jira-connector/jira-connector-2.0.0/org.wso2.carbon.connector/src/main/resources/jira_issue/createIssue.xml
>>
>>
>> Thanks
>> --
>> *Bhashinee Nirmali*
>> Software Engineering Intern
>> WSO2 Inc.; http://wso2.com
>> Mobile : +94 (0) 712150003 <%2B94%20%280%29%20716%20590818>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Kathees
> Software Engineer,
> email: kath...@wso2.com
> mobile: +94772596173
>



-- 
*Bhashinee Nirmali*
Software Engineering Intern
WSO2 Inc.; http://wso2.com
Mobile : +94 (0) 712150003 <%2B94%20%280%29%20716%20590818>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Add zero values for missing data points in dashboard line charts

2016-06-27 Thread Chanaka Fernando
Hi Dinesh,

Thank you for bringing this up. I think what you have pointed out needs to
be corrected (if possible). In ESB use cases, this can be a common scenario
where servers will get high traffic at a given time period and there can be
time periods without any traffic. I think how google analytics handles this
scenario is correct.

Thanks,
Chanaka


On Mon, Jun 27, 2016 at 9:42 PM, Dinesh J Weerakkody 
wrote:

> Hi,
>
> When we add line charts in dashboards, there can be senarios where we
> don't have any data in the given time period. For example lets say that we
> following summerized dataset.
>
> *DateRequestCount*
> Sun  5
> Mon 3
> Tue  4
> Thu  6
> Fri5
> Sat   3
>
> Please note that Wednesday is missing in the data set since we don't have
> any request on that day. If we visualize above dataset in a line chart it
> will add a Wednesday to the chart without a data point. Chart simply draw
> the line from Tue to Thu and it feels like Wed is also has data.
>
> In Google Analitics this is not the case. Please look at the chart beloe.
>
> [image: Inline image 1]
>
> In Above chart we have Zero value data points.
>
> Can we have the same thing with our dshboard also? Can we achive this by
> writing a custom JS code for the underlaying JS libraries that are used in
> the DS?
>
> @Chanaka,
>
> Please note that this issue is there even in ESB Analytics. Look at the
> line charts in [1]. I'm not sure whether this behaviour is ok with you or
> not :)
>
> [1]
> https://docs.wso2.com/display/ESB500/Monitoring+WSO2+ESB+with+WSO2+Analytics
>
> Thanks
>
> *Dinesh J. Weerakkody*
> Senior Software Engineer
> WSO2 Inc.
> lean | enterprise | middleware
> M : +94 727 868676 | E : dine...@wso2.com | W : www.wso2.com
>



-- 
Thank you and Best Regards,
Chanaka Fernando
Senior Technical Lead
WSO2, Inc.; http://wso2.com
lean.enterprise.middleware

mobile: +94 773337238
Blog : http://soatutorials.blogspot.com
LinkedIn:http://www.linkedin.com/pub/chanaka-fernando/19/a20/5b0
Twitter:https://twitter.com/chanakaudaya
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2 Docker images layered composition

2016-06-27 Thread Isuru Haththotuwa
Hi Imesh,

On Thu, Jun 23, 2016 at 3:06 PM, Imesh Gunaratne  wrote:

> Hi Isuru/Akila,
>
> On Tue, Jun 21, 2016 at 3:19 PM, Isuru Haththotuwa 
> wrote:
>
> To summarize:
>
>- Publish a wso2 product specific docker image to a local docker
>repository (we can even push to dockerhub, without the JDK distribution and
>ask the users to provide the JDK when spinning up a container from the
>image).
>
> A good suggestion, since we currently track product downloads for
> analytics we might need to find a way to do the same with Docker if we were
> to publicly share WSO2 Docker images. Otherwise using a local registry with
> a base/product image would do.
>
>- Guide the users/developers to create their own Dockerfile extending
>from the original wso2 product Docker image.
>
> We might need to solve 1, to do this.
>
> On Thu, Jun 23, 2016 at 9:42 AM, Isuru Haththotuwa 
> wrote:
>
>>
>> On Tue, Jun 21, 2016 at 6:54 PM, Akila Ravihansa Perera <
>> raviha...@wso2.com> wrote:
>>
>>>
>>> I'm not against having a base image for the WSO2 Docker images. But,
>> IMHO the advantages should be significant for doing so. AFAIU there is no
>> significant advantage of doing so currently. But, this is my take only.
>> Therefore lets get the input from the community on this matter.
>>
>> @Imesh: WDYT?
>>
>> ​Currently almost all of us use a base image locally to reduce the
> internet bandwidth usage due to executing docker builds from scratch.
> Therefore I think it would be better to push that to the remote repository.
>
> As Akila has mentioned the only downside of this is the image size being
> increased by around 100 MB. ​When creating Docker images for production
> deployment those optimizations can be taken into account.
>
Agreed on the size impact. My concern is that this change does not bring in
a significant improvement for the model that we have now.

Anyway, lets give this a go and try to improve ii as we go along. Anyway we
should be able to push proper product images to the Dockerhub once we have
OpenJDK support.

>
> Thanks
>
>>
>> --
>> Thanks and Regards,
>>
>> Isuru H.
>> +94 716 358 048* *
>>
>>
>>
>
>
> --
> *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
> Lean . Enterprise . Middleware
>
>


-- 
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] [wso2 IS] How to disable Shindig fetching google analytics

2016-06-27 Thread Udara Liyanage
Hi Godwin,

Thanks, your suggestion worked.

Thanks others also for your suggestions.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Add zero values for missing data points in dashboard line charts

2016-06-27 Thread Dinesh J Weerakkody
Hi,

When we add line charts in dashboards, there can be senarios where we don't
have any data in the given time period. For example lets say that we
following summerized dataset.

*DateRequestCount*
Sun  5
Mon 3
Tue  4
Thu  6
Fri5
Sat   3

Please note that Wednesday is missing in the data set since we don't have
any request on that day. If we visualize above dataset in a line chart it
will add a Wednesday to the chart without a data point. Chart simply draw
the line from Tue to Thu and it feels like Wed is also has data.

In Google Analitics this is not the case. Please look at the chart beloe.

[image: Inline image 1]

In Above chart we have Zero value data points.

Can we have the same thing with our dshboard also? Can we achive this by
writing a custom JS code for the underlaying JS libraries that are used in
the DS?

@Chanaka,

Please note that this issue is there even in ESB Analytics. Look at the
line charts in [1]. I'm not sure whether this behaviour is ok with you or
not :)

[1]
https://docs.wso2.com/display/ESB500/Monitoring+WSO2+ESB+with+WSO2+Analytics

Thanks

*Dinesh J. Weerakkody*
Senior Software Engineer
WSO2 Inc.
lean | enterprise | middleware
M : +94 727 868676 | E : dine...@wso2.com | W : www.wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [DS] Support primitive edit operations (moving and delete gadgets) operations in the view mode

2016-06-27 Thread Sinthuja Ragendran
On Mon, Jun 27, 2016 at 9:39 PM, Udara Rathnayake  wrote:

> Hi All,
>
> Based on above feedback suggesting following approach.
>
> Within dashboard view mode we make gadget toolbar clickable. (on mouse
> hover we can change the cursor value appropriately)
> - Once user click on the toolbar we enable delete button (hiding maximize
> button and make selected gadget active while others are not) also enable
> resize option at the bottom right-hand corner.
> - At this point we can make gadget draggable from the toolbar (by changing
> mouse pointer tocmove cursor) similar in designer.
>
> WDYT?
>

+1.

Thanks,
Sinthuja.


>
> On Mon, Jun 27, 2016 at 2:15 PM, Jerad Rutnam  wrote:
>
>> Hi Sinthuja,
>>
>> +1, I also think its better. We can simply enable designer mode only for
>> designers and admins. And end users will have the capable of doing simple
>> modifications on view mode it self.
>>
>> I believe in this case we will have a dynamic layout on view mode by
>> default.
>>
>> Cheers!
>> Jerad
>>
>> On Mon, Jun 27, 2016 at 1:35 PM, Sinthuja Ragendran 
>> wrote:
>>
>>> Hi Udara,
>>>
>>> On Mon, Jun 27, 2016 at 1:27 PM, Tanya Madurapperuma 
>>> wrote:
>>>
 Hi Udara,


 On Mon, Jun 27, 2016 at 12:41 PM, Udara Rathnayake 
 wrote:

> Hi UX team,
>
> Requirement is to provide simple dashboard viewer level customization
> within the dashboard view rather redirecting to the designer.
>
 If a user in the designer role logs into the dashboard, do we redirect
 him/her to designer view or do we allow them also to do minor changes being
 on the view mode ? Or is this just for personalization.

>>>
>>> The main idea is to avoid user to switch the modes (ie, switching
>>> between designer/view modes) when doing such simple personalization
>>> modifications. Hence IMHO we should not again ask for go to simple/advanced
>>> designing, rather by default the view mode should have the simple designing
>>> enabled where as he/she should be able to drag the gadgets, and delete them
>>> if he/she doesn't want it.
>>>
>>> Thanks,
>>> Sinthuja.
>>>
>>> Thanks,
 Tanya

>
> Simple customization includes(as per the RM),
> 1. Deleting a gadget
> 2. Moving a gadget
> 3. Resize a gadget
>
> Still, viewer should be able to go to the designer for extensive
> customizations.
>
> How should we distinguish these two operations in the dashboard view?
> Right now we have following menu item,
>
>
> ​
>
> Shall we get an input from the user once he/she press the Customize
> Dashboard menu and continue?
>
> Eg:-
>
>
> ​
>
> Even with this kind of an interaction(simple vs extensive) it's hard
> to convey what is the difference between these two types.
>
> Appreciate your feedback.
>
> --
> Regards,
> UdaraR
>



 --
 Tanya Madurapperuma

 Senior Software Engineer,
 WSO2 Inc. : wso2.com
 Mobile : +94718184439
 Blog : http://tanyamadurapperuma.blogspot.com

>>>
>>>
>>>
>>> --
>>> *Sinthuja Rajendran*
>>> Technical Lead
>>> WSO2, Inc.:http://wso2.com
>>>
>>> Blog: http://sinthu-rajan.blogspot.com/
>>> Mobile: +94774273955
>>>
>>>
>>>
>>
>>
>> --
>> *Jerad Rutnam*
>> *Software Engineer*
>>
>> WSO2 Inc.
>> lean | enterprise | middleware
>> M : +94 77 959 1609 | E : je...@wso2.com | W : www.wso2.com
>>
>
>
>
> --
> Regards,
> UdaraR
>



-- 
*Sinthuja Rajendran*
Technical Lead
WSO2, Inc.:http://wso2.com

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


Re: [Dev] [DS] Support primitive edit operations (moving and delete gadgets) operations in the view mode

2016-06-27 Thread Udara Rathnayake
Hi All,

Based on above feedback suggesting following approach.

Within dashboard view mode we make gadget toolbar clickable. (on mouse
hover we can change the cursor value appropriately)
- Once user click on the toolbar we enable delete button (hiding maximize
button and make selected gadget active while others are not) also enable
resize option at the bottom right-hand corner.
- At this point we can make gadget draggable from the toolbar (by changing
mouse pointer tocmove cursor) similar in designer.

WDYT?

On Mon, Jun 27, 2016 at 2:15 PM, Jerad Rutnam  wrote:

> Hi Sinthuja,
>
> +1, I also think its better. We can simply enable designer mode only for
> designers and admins. And end users will have the capable of doing simple
> modifications on view mode it self.
>
> I believe in this case we will have a dynamic layout on view mode by
> default.
>
> Cheers!
> Jerad
>
> On Mon, Jun 27, 2016 at 1:35 PM, Sinthuja Ragendran 
> wrote:
>
>> Hi Udara,
>>
>> On Mon, Jun 27, 2016 at 1:27 PM, Tanya Madurapperuma 
>> wrote:
>>
>>> Hi Udara,
>>>
>>>
>>> On Mon, Jun 27, 2016 at 12:41 PM, Udara Rathnayake 
>>> wrote:
>>>
 Hi UX team,

 Requirement is to provide simple dashboard viewer level customization
 within the dashboard view rather redirecting to the designer.

>>> If a user in the designer role logs into the dashboard, do we redirect
>>> him/her to designer view or do we allow them also to do minor changes being
>>> on the view mode ? Or is this just for personalization.
>>>
>>
>> The main idea is to avoid user to switch the modes (ie, switching between
>> designer/view modes) when doing such simple personalization modifications.
>> Hence IMHO we should not again ask for go to simple/advanced designing,
>> rather by default the view mode should have the simple designing enabled
>> where as he/she should be able to drag the gadgets, and delete them if
>> he/she doesn't want it.
>>
>> Thanks,
>> Sinthuja.
>>
>> Thanks,
>>> Tanya
>>>

 Simple customization includes(as per the RM),
 1. Deleting a gadget
 2. Moving a gadget
 3. Resize a gadget

 Still, viewer should be able to go to the designer for extensive
 customizations.

 How should we distinguish these two operations in the dashboard view?
 Right now we have following menu item,


 ​

 Shall we get an input from the user once he/she press the Customize
 Dashboard menu and continue?

 Eg:-


 ​

 Even with this kind of an interaction(simple vs extensive) it's hard to
 convey what is the difference between these two types.

 Appreciate your feedback.

 --
 Regards,
 UdaraR

>>>
>>>
>>>
>>> --
>>> Tanya Madurapperuma
>>>
>>> Senior Software Engineer,
>>> WSO2 Inc. : wso2.com
>>> Mobile : +94718184439
>>> Blog : http://tanyamadurapperuma.blogspot.com
>>>
>>
>>
>>
>> --
>> *Sinthuja Rajendran*
>> Technical Lead
>> WSO2, Inc.:http://wso2.com
>>
>> Blog: http://sinthu-rajan.blogspot.com/
>> Mobile: +94774273955
>>
>>
>>
>
>
> --
> *Jerad Rutnam*
> *Software Engineer*
>
> WSO2 Inc.
> lean | enterprise | middleware
> M : +94 77 959 1609 | E : je...@wso2.com | W : www.wso2.com
>



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


[Dev] Mesos DNS support for Mesos membership scheme

2016-06-27 Thread Akila Ravihansa Perera
Hi,

Currently Mesos membership scheme relies on Marathon REST API to discover
the members in a cluster. There can be situations where access to Marathon
REST API could be restricted and access cannot be granted for Carbon
products due to security concerns.

However, we can still discover members in the cluster by using Mesos DNS
REST API [1]. I've implemented this functionality in [2]. We can set the
DNS endpoint via MESOS_DNS_ENDPOINT parameter in axis2.xml.
We can change the member discovery scheme by defining
the MESOS_MEMBER_DISCOVERY_SCHEME parameter in axis2.xml. The default will
be 'Marathon' (via Marathon REST API). It is important to understand that
Mesos DNS will periodically query the master node to get a list of members,
therefore it is possible that there will be a delay to reflect the latest
state. I've introduced a DNS update timeout (DNS_UPDATE_TIMEOUT which
defaults to 10s), period of time to keep retrying if the service is not
found.

Note that if there are shared Marathon applications when creating a single
Hazelcast cluster you need to include them in MARATHON_APPLICATIONS
parameter as comma separated values. For eg: WSO2 ESB worker/manager setup
wso2esb manager should not have any value for MARATHON_APPLICATIONS since
it should be started first, before the worker. Members in the same
application (wso2esb-manager in this case) will be added by default

wso2esb worker should have "wso2esb-manager" as MARATHON_APPLICATIONS since
it will be started after the manager.

[1] https://mesosphere.github.io/mesos-dns/docs/http.html
[2]
https://github.com/wso2/mesos-artifacts/tree/master/common/mesos-membership-scheme

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] deep neural network for detect frauds

2016-06-27 Thread Asantha Thilina
Hi Nirmal,

As tharindu mentioned i would be planning to gather user identity data
through the AbstractEventListener then those data will be used to train my
model

Thanks,
Asantha

On Mon, Jun 27, 2016 at 9:26 AM, Tharindu Edirisinghe 
wrote:

> Hi Nirmal,
>
> The data is not in hand right now.. but we can assume we have data.
>
> Currently in Identity Server, it does not publish security related events
> such as login, logout, password change etc.
>
> What Asantha would do is write a Listener ( i.e extend
> AbstractUserOperationEventListener) and for each user operation it would
> publish an event.
>
> Once he does it, we can perform some user operations with a load test and
> gather data (get the events generated).
>
> Based on this data he needs to carry out the analysis.
>
> Thanks,
> TharinduE
>
> On Mon, Jun 27, 2016 at 6:22 PM, Nirmal Fernando  wrote:
>
>> Seshika implemented a fraud detection toolbox using Markov chain models
>> (using real-time siddhi queries) [1]. API-M Analytics product uses Markov
>> chain model to detect abnormal resource access patterns.
>>
>> In WSO2 ML, we have implemented a clustering based anomaly detection
>> algorithm [2].
>>
>> [1]
>> http://wso2.com/analytics/solutions/fraud-and-anomaly-detection-solution/
>> [2]
>> https://docs.wso2.com/display/ML110/Generating+a+Model+Using+the+K+Means+Anomaly+Detection+Algorithm+with+Labeled+Data
>>
>>
>> On Mon, Jun 27, 2016 at 5:45 PM, Tharindu Edirisinghe > > wrote:
>>
>>> +DamithN, Seshika, Nirmal
>>>
>>>
>>> @DamithN - I found the mail thread [1] bit similar. Are there any other
>>> reference to the work you've done for that ?
>>>
>>> @Seshika, Nirmal - Do you guys have any input for the work Asantha is
>>> trying to do ? He is a GSoC student that I mentor this year.
>>>
>>> Appreciate if you can help him out with this.
>>>
>>>
>>> [1] "[Architecture] Security Authentication Analytics"
>>>
>>> Thanks,
>>> TharinduE
>>>
>>> On Mon, Jun 27, 2016 at 4:15 PM, Asantha Thilina <
>>> asanthathil...@gmail.com> wrote:
>>>
 Hi all,

 i am a GSOC student who doing the *project 21 : NoSQL User Store
 Development for Identity Server* and i am developing a *convolutional
 neural network* to detect *frauds* using deeplearning4j[1] for my
 research, i have done some case studies regarding fraud patterns ,i have
 mainly focused on frauds that can be occur in online money transactions and
 in login authentications i have refer some research papers[2],[3] and  a
 white paper[4] regrading those possible fraud patterns
 I choosed convolutional neural network to develop my model but i am
 little confused about how could include those fraud patterns in to my model
 in a way it can detect a fraud in real time

>>>
>> Once you have a built model, you could write a siddhi extension to
>> perform predictions (i.e. detect frauds in this case).
>>
>> Question: do we have data in hand? or are you trying to build a model on
>> the fly?
>>
>> and also is convolutional network is a best way to achieve my task or is
 there any better method than this?,i would be grateful if anyone can guide
 me to achieve this task
 [1]http://deeplearning4j.org/convolutionalnets
 [2]
 http://www.ijsce.org/attachments/File/NCAI2011/IJSCE_NCAI2011_025.pdf
 [3]
 https://www.researchgate.net/publication/200795976_Fraud_Detection_using_Neural_Networks
 [4]https://neo4j.com/resources/fraud-detection-white-paper/

 Thanks,
 Asantha

>>>
>>>
>>>
>>> --
>>>
>>> Tharindu Edirisinghe
>>> Senior Software Engineer | WSO2 Inc
>>> Platform Security Team
>>> Blog : tharindue.blogspot.com
>>> mobile : +94 775181586
>>>
>>
>>
>>
>> --
>>
>> Thanks & regards,
>> Nirmal
>>
>> Team Lead - WSO2 Machine Learner
>> Associate Technical Lead - Data Technologies Team, WSO2 Inc.
>> Mobile: +94715779733
>> Blog: http://nirmalfdo.blogspot.com/
>>
>>
>>
>
>
> --
>
> Tharindu Edirisinghe
> Senior Software Engineer | WSO2 Inc
> Platform Security Team
> Blog : tharindue.blogspot.com
> mobile : +94 775181586
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2 Docker images layered composition

2016-06-27 Thread Akila Ravihansa Perera
Hi Ramon,

Thanks for sharing this but we will not be able make these official due to
OracleJDK license issues. OpenJDK will be fully supported in Carbon 5 based
products but that will take some time.

Regarding tag names, it was done on purpose do multiple Puppet module
releases for a specific WSO2 product version. I know it's ugly, but would
like to hear others' thoughts/suggestions.

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


Re: [Dev] Fixing APIMANAGER-4202 at carbon-mediation level

2016-06-27 Thread Uvindra Dias Jayasinha
Thanks Kishanthan

If we were to fix this by calling startTenantFlow() the fix would be a lot
more complicated and may lead to other issues. So I have tested the
original fix done by Jagath in this case and didn't run into any issues
functional wise. Though I could not recreate the issue in the first place
so we still dont know what causes this exactly.

@ChanakaF, I have sent the PR with the fix that I tested[1], please merge

[1] https://github.com/wso2/carbon-mediation/pull/671

On 27 June 2016 at 17:15, Kishanthan Thangarajah 
wrote:

>
>
> On Mon, Jun 27, 2016 at 12:13 PM, Uvindra Dias Jayasinha  > wrote:
>
>> Before I just apply the stated fix I would like some feedback from the
>> Carbon team regarding what maybe causing this issue.
>>
>> So here is what we are seeing so far,
>>
>> 1. IllegalStateException is being thrown by
>> CarbonContextDataHolder.setTenantDomain()
>>
>> 2. The logic in setTenantDomain() is as follows,
>>   a) If the this.tenantDomain of the CarbonContextDataHolder is null
>> or is equal to the super tenant domain then its fine
>>
>>   b) But if the this.tenantDomain of the CarbonContextDataHolder is
>> Not Equal to the tenant domain value that is being set then there is a
>> chance for the IllegalStateException to be thrown.
>>
>> So what this seems to indicate is that you cannot call setTenantDomain()
>> if the current tenantDomain within the carbon context is already set to
>> another tenants domain. This could be due to startTenantFlow() not being
>> called before setting the tenant domain. Could this be the cause?
>>
>
> If the tenant domain is already set, then it can not be set again within
> the same thread flow, unless you start a new tenant flow or setting a
> tenant domain other than super tenant.
>
> Starting a new tenant flow means, the current ContextHolder instance will
> be pushed onto the stack and then the thread would see a new ContextHolder
> instance until that tenant flow is properly ended (popped from the stack),
> which then the thread would see the previous ContextHolder instance which
> was there before starting the tenant flow.
>
>
>> On 24 June 2016 at 14:44, Uvindra Dias Jayasinha 
>> wrote:
>>
>>> Problem is the issue is intermittent so its difficult to verify but I
>>> will test the fix out and send a PR
>>>
>>> On 24 June 2016 at 13:52, Chanaka Fernando  wrote:
>>>
 Hi Uvindra,

 Could you please verify the fix and send us a PR so that we can merge
 it?

 On Fri, Jun 24, 2016 at 1:02 PM, Uvindra Dias Jayasinha <
 uvin...@wso2.com> wrote:

> Hi All,
>
> The original issue encountered in [1] was fixed via the resolution of
> [2].
>
> But now this has been reopened and in this case the same issue has got
> exposed, but on this occasion the call stack is different. This is
> happening when setting the tenant info at [3]. So we need to apply the 
> same
> fix that was done in resolving [2] to the WSO2Registry class when setting
> the tenant info.
>
> Can we get this fixed?
>
>
> [1] https://wso2.org/jira/browse/APIMANAGER-4202
> [2] https://wso2.org/jira/browse/ESBJAVA-4333
> [3]
> https://github.com/wso2/carbon-mediation/blob/v4.6.1-BETA3/components/mediation-registry/org.wso2.carbon.mediation.registry/src/main/java/org/wso2/carbon/mediation/registry/WSO2Registry.java#L747
>
>
> --
> Regards,
> Uvindra
>
> Mobile: 33962
>



 --
 Thank you and Best Regards,
 Chanaka Fernando
 Senior Technical Lead
 WSO2, Inc.; http://wso2.com
 lean.enterprise.middleware

 mobile: +94 773337238
 Blog : http://soatutorials.blogspot.com
 LinkedIn:http://www.linkedin.com/pub/chanaka-fernando/19/a20/5b0
 Twitter:https://twitter.com/chanakaudaya





>>>
>>>
>>> --
>>> Regards,
>>> Uvindra
>>>
>>> Mobile: 33962
>>>
>>
>>
>>
>> --
>> Regards,
>> Uvindra
>>
>> Mobile: 33962
>>
>
>
>
> --
> *Kishanthan Thangarajah*
> Technical Lead,
> Platform Technologies Team,
> WSO2, Inc.
> lean.enterprise.middleware
>
> Mobile - +94773426635
> Blog - *http://kishanthan.wordpress.com *
> Twitter - *http://twitter.com/kishanthan *
>



-- 
Regards,
Uvindra

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


Re: [Dev] deep neural network for detect frauds

2016-06-27 Thread Tharindu Edirisinghe
Hi Nirmal,

The data is not in hand right now.. but we can assume we have data.

Currently in Identity Server, it does not publish security related events
such as login, logout, password change etc.

What Asantha would do is write a Listener ( i.e extend
AbstractUserOperationEventListener) and for each user operation it would
publish an event.

Once he does it, we can perform some user operations with a load test and
gather data (get the events generated).

Based on this data he needs to carry out the analysis.

Thanks,
TharinduE

On Mon, Jun 27, 2016 at 6:22 PM, Nirmal Fernando  wrote:

> Seshika implemented a fraud detection toolbox using Markov chain models
> (using real-time siddhi queries) [1]. API-M Analytics product uses Markov
> chain model to detect abnormal resource access patterns.
>
> In WSO2 ML, we have implemented a clustering based anomaly detection
> algorithm [2].
>
> [1]
> http://wso2.com/analytics/solutions/fraud-and-anomaly-detection-solution/
> [2]
> https://docs.wso2.com/display/ML110/Generating+a+Model+Using+the+K+Means+Anomaly+Detection+Algorithm+with+Labeled+Data
>
>
> On Mon, Jun 27, 2016 at 5:45 PM, Tharindu Edirisinghe 
> wrote:
>
>> +DamithN, Seshika, Nirmal
>>
>>
>> @DamithN - I found the mail thread [1] bit similar. Are there any other
>> reference to the work you've done for that ?
>>
>> @Seshika, Nirmal - Do you guys have any input for the work Asantha is
>> trying to do ? He is a GSoC student that I mentor this year.
>>
>> Appreciate if you can help him out with this.
>>
>>
>> [1] "[Architecture] Security Authentication Analytics"
>>
>> Thanks,
>> TharinduE
>>
>> On Mon, Jun 27, 2016 at 4:15 PM, Asantha Thilina <
>> asanthathil...@gmail.com> wrote:
>>
>>> Hi all,
>>>
>>> i am a GSOC student who doing the *project 21 : NoSQL User Store
>>> Development for Identity Server* and i am developing a *convolutional
>>> neural network* to detect *frauds* using deeplearning4j[1] for my
>>> research, i have done some case studies regarding fraud patterns ,i have
>>> mainly focused on frauds that can be occur in online money transactions and
>>> in login authentications i have refer some research papers[2],[3] and  a
>>> white paper[4] regrading those possible fraud patterns
>>> I choosed convolutional neural network to develop my model but i am
>>> little confused about how could include those fraud patterns in to my model
>>> in a way it can detect a fraud in real time
>>>
>>
> Once you have a built model, you could write a siddhi extension to perform
> predictions (i.e. detect frauds in this case).
>
> Question: do we have data in hand? or are you trying to build a model on
> the fly?
>
> and also is convolutional network is a best way to achieve my task or is
>>> there any better method than this?,i would be grateful if anyone can guide
>>> me to achieve this task
>>> [1]http://deeplearning4j.org/convolutionalnets
>>> [2]http://www.ijsce.org/attachments/File/NCAI2011/IJSCE_NCAI2011_025.pdf
>>> [3]
>>> https://www.researchgate.net/publication/200795976_Fraud_Detection_using_Neural_Networks
>>> [4]https://neo4j.com/resources/fraud-detection-white-paper/
>>>
>>> Thanks,
>>> Asantha
>>>
>>
>>
>>
>> --
>>
>> Tharindu Edirisinghe
>> Senior Software Engineer | WSO2 Inc
>> Platform Security Team
>> Blog : tharindue.blogspot.com
>> mobile : +94 775181586
>>
>
>
>
> --
>
> Thanks & regards,
> Nirmal
>
> Team Lead - WSO2 Machine Learner
> Associate Technical Lead - Data Technologies Team, WSO2 Inc.
> Mobile: +94715779733
> Blog: http://nirmalfdo.blogspot.com/
>
>
>


-- 

Tharindu Edirisinghe
Senior Software Engineer | WSO2 Inc
Platform Security Team
Blog : tharindue.blogspot.com
mobile : +94 775181586
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] deep neural network for detect frauds

2016-06-27 Thread Nirmal Fernando
Seshika implemented a fraud detection toolbox using Markov chain models
(using real-time siddhi queries) [1]. API-M Analytics product uses Markov
chain model to detect abnormal resource access patterns.

In WSO2 ML, we have implemented a clustering based anomaly detection
algorithm [2].

[1]
http://wso2.com/analytics/solutions/fraud-and-anomaly-detection-solution/
[2]
https://docs.wso2.com/display/ML110/Generating+a+Model+Using+the+K+Means+Anomaly+Detection+Algorithm+with+Labeled+Data


On Mon, Jun 27, 2016 at 5:45 PM, Tharindu Edirisinghe 
wrote:

> +DamithN, Seshika, Nirmal
>
>
> @DamithN - I found the mail thread [1] bit similar. Are there any other
> reference to the work you've done for that ?
>
> @Seshika, Nirmal - Do you guys have any input for the work Asantha is
> trying to do ? He is a GSoC student that I mentor this year.
>
> Appreciate if you can help him out with this.
>
>
> [1] "[Architecture] Security Authentication Analytics"
>
> Thanks,
> TharinduE
>
> On Mon, Jun 27, 2016 at 4:15 PM, Asantha Thilina  > wrote:
>
>> Hi all,
>>
>> i am a GSOC student who doing the *project 21 : NoSQL User Store
>> Development for Identity Server* and i am developing a *convolutional
>> neural network* to detect *frauds* using deeplearning4j[1] for my
>> research, i have done some case studies regarding fraud patterns ,i have
>> mainly focused on frauds that can be occur in online money transactions and
>> in login authentications i have refer some research papers[2],[3] and  a
>> white paper[4] regrading those possible fraud patterns
>> I choosed convolutional neural network to develop my model but i am
>> little confused about how could include those fraud patterns in to my model
>> in a way it can detect a fraud in real time
>>
>
Once you have a built model, you could write a siddhi extension to perform
predictions (i.e. detect frauds in this case).

Question: do we have data in hand? or are you trying to build a model on
the fly?

and also is convolutional network is a best way to achieve my task or is
>> there any better method than this?,i would be grateful if anyone can guide
>> me to achieve this task
>> [1]http://deeplearning4j.org/convolutionalnets
>> [2]http://www.ijsce.org/attachments/File/NCAI2011/IJSCE_NCAI2011_025.pdf
>> [3]
>> https://www.researchgate.net/publication/200795976_Fraud_Detection_using_Neural_Networks
>> [4]https://neo4j.com/resources/fraud-detection-white-paper/
>>
>> Thanks,
>> Asantha
>>
>
>
>
> --
>
> Tharindu Edirisinghe
> Senior Software Engineer | WSO2 Inc
> Platform Security Team
> Blog : tharindue.blogspot.com
> mobile : +94 775181586
>



-- 

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] Clarification regarding JIRA connector.

2016-06-27 Thread Kathees Rajendram
Hi Bhashinee,

Now we have the jira connector code in the location [1]. All connectors
from esb-connectors repo [2] are moved to wso2-extensions location [3].

[1] - https://github.com/wso2-extensions/esb-connector-jira
[2] - https://github.com/wso2-attic/esb-connectors 
[3] - https://github.com/wso2-extensions

Thanks,
Kathees

On Mon, Jun 27, 2016 at 6:10 PM, Bhashinee Nirmali 
wrote:

> Hi All,
>
> There is a mismatch between the create issue in JIRA connector
> documentation[1] and the createIssue.xml in github[2]. There is no such
> parameter named "issueFields" in createIssue.xml. Kindly someone point me
> to the latest code?
>
> [1]
> https://docs.wso2.com/display/ESBCONNECTORS/Working+with+Issues+in+JIRA#WorkingwithIssuesinJIRA-createIssue
>
> [2]
> https://github.com/wso2-attic/esb-connectors/blob/master/jira/jira-connector/jira-connector-2.0.0/org.wso2.carbon.connector/src/main/resources/jira_issue/createIssue.xml
>
>
> Thanks
> --
> *Bhashinee Nirmali*
> Software Engineering Intern
> WSO2 Inc.; http://wso2.com
> Mobile : +94 (0) 712150003 <%2B94%20%280%29%20716%20590818>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Kathees
Software Engineer,
email: kath...@wso2.com
mobile: +94772596173
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Clarification regarding JIRA connector.

2016-06-27 Thread Keerthika Mahendralingam
Hi Bhashinee,

The latest code is available at [1].

[1].
https://github.com/wso2-extensions/esb-connector-jira/blob/master/src/main/resources/jira_issue/createIssue.xml

Thanks,
Keerthika

On Mon, Jun 27, 2016 at 6:10 PM, Bhashinee Nirmali 
wrote:

> Hi All,
>
> There is a mismatch between the create issue in JIRA connector
> documentation[1] and the createIssue.xml in github[2]. There is no such
> parameter named "issueFields" in createIssue.xml. Kindly someone point me
> to the latest code?
>
> [1]
> https://docs.wso2.com/display/ESBCONNECTORS/Working+with+Issues+in+JIRA#WorkingwithIssuesinJIRA-createIssue
>
> [2]
> https://github.com/wso2-attic/esb-connectors/blob/master/jira/jira-connector/jira-connector-2.0.0/org.wso2.carbon.connector/src/main/resources/jira_issue/createIssue.xml
>
>
> Thanks
> --
> *Bhashinee Nirmali*
> Software Engineering Intern
> WSO2 Inc.; http://wso2.com
> Mobile : +94 (0) 712150003 <%2B94%20%280%29%20716%20590818>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 

Keerthika Mahendralingam
Software Engineer
Mobile :+94 (0) 776 121144
keerth...@wso2.com
WSO2, Inc.
lean . enterprise . middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Clarification regarding JIRA connector.

2016-06-27 Thread Bhashinee Nirmali
Hi All,

There is a mismatch between the create issue in JIRA connector
documentation[1] and the createIssue.xml in github[2]. There is no such
parameter named "issueFields" in createIssue.xml. Kindly someone point me
to the latest code?

[1]
https://docs.wso2.com/display/ESBCONNECTORS/Working+with+Issues+in+JIRA#WorkingwithIssuesinJIRA-createIssue

[2]
https://github.com/wso2-attic/esb-connectors/blob/master/jira/jira-connector/jira-connector-2.0.0/org.wso2.carbon.connector/src/main/resources/jira_issue/createIssue.xml


Thanks
-- 
*Bhashinee Nirmali*
Software Engineering Intern
WSO2 Inc.; http://wso2.com
Mobile : +94 (0) 712150003 <%2B94%20%280%29%20716%20590818>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [Analytics] Resources for implementing a Jaggery App Template Deployer

2016-06-27 Thread Dilini Muthumala
Hi Chehara, Anoukh,

As the Jaggery App Template Deployer which you're planning to implement has
some similarities with Gadget Template Deployer, please find some resources
relating to Gadget Template Deployer which might help you, below:

*Gadget Template Example: *
Jaggery App Template element will be similar to that of Gadget. Therefore,
please refer the Gadget Template in following sample in Analytics IoTs pack:
https://github.com/wso2/analytics-iots/blob/master/product/distribution/src/repository/conf/template-manager/domain-template/SensorDataAnalyticsDomain.xml

*Storing Gadget Templates:*
Gadget Templates are stored in
repository/conf/template-manager/gadget-templates/
I think you will have to store Jaggery App files in a similar location.
You can find example Gadget Templates in
https://github.com/wso2/analytics-iots/tree/master/product/distribution/src/repository/conf/template-manager/gadget-templates

*GadgetTemplateDeployer component implementation:*
Finally, when you're done with desgining the Template, you can refer to
Gadget Template Deployer implementation as a reference:
https://github.com/wso2/carbon-analytics-common/blob/master/components/gadget-template-deployer/org.wso2.carbon.gadget.template.deployer/src/main/java/org/wso2/carbon/gadget/template/deployer/GadgetTemplateDeployer.java

Thanks,
Dilini

-- 
*Dilini Muthumala*
Senior Software Engineer,
WSO2 Inc.

*E-mail :* dil...@wso2.com
*Mobile: *+94 713-400-029
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] deep neural network for detect frauds

2016-06-27 Thread Tharindu Edirisinghe
+DamithN, Seshika, Nirmal


@DamithN - I found the mail thread [1] bit similar. Are there any other
reference to the work you've done for that ?

@Seshika, Nirmal - Do you guys have any input for the work Asantha is
trying to do ? He is a GSoC student that I mentor this year.

Appreciate if you can help him out with this.


[1] "[Architecture] Security Authentication Analytics"

Thanks,
TharinduE

On Mon, Jun 27, 2016 at 4:15 PM, Asantha Thilina 
wrote:

> Hi all,
>
> i am a GSOC student who doing the *project 21 : NoSQL User Store
> Development for Identity Server* and i am developing a *convolutional
> neural network* to detect *frauds* using deeplearning4j[1] for my
> research, i have done some case studies regarding fraud patterns ,i have
> mainly focused on frauds that can be occur in online money transactions and
> in login authentications i have refer some research papers[2],[3] and  a
> white paper[4] regrading those possible fraud patterns
> I choosed convolutional neural network to develop my model but i am little
> confused about how could include those fraud patterns in to my model in a
> way it can detect a fraud in real time and also is convolutional network is
> a best way to achieve my task or is there any better method than this?,i
> would be grateful if anyone can guide me to achieve this task
> [1]http://deeplearning4j.org/convolutionalnets
> [2]http://www.ijsce.org/attachments/File/NCAI2011/IJSCE_NCAI2011_025.pdf
> [3]
> https://www.researchgate.net/publication/200795976_Fraud_Detection_using_Neural_Networks
> [4]https://neo4j.com/resources/fraud-detection-white-paper/
>
> Thanks,
> Asantha
>



-- 

Tharindu Edirisinghe
Senior Software Engineer | WSO2 Inc
Platform Security Team
Blog : tharindue.blogspot.com
mobile : +94 775181586
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Fixing APIMANAGER-4202 at carbon-mediation level

2016-06-27 Thread Kishanthan Thangarajah
On Mon, Jun 27, 2016 at 12:13 PM, Uvindra Dias Jayasinha 
wrote:

> Before I just apply the stated fix I would like some feedback from the
> Carbon team regarding what maybe causing this issue.
>
> So here is what we are seeing so far,
>
> 1. IllegalStateException is being thrown by
> CarbonContextDataHolder.setTenantDomain()
>
> 2. The logic in setTenantDomain() is as follows,
>   a) If the this.tenantDomain of the CarbonContextDataHolder is null
> or is equal to the super tenant domain then its fine
>
>   b) But if the this.tenantDomain of the CarbonContextDataHolder is
> Not Equal to the tenant domain value that is being set then there is a
> chance for the IllegalStateException to be thrown.
>
> So what this seems to indicate is that you cannot call setTenantDomain()
> if the current tenantDomain within the carbon context is already set to
> another tenants domain. This could be due to startTenantFlow() not being
> called before setting the tenant domain. Could this be the cause?
>

If the tenant domain is already set, then it can not be set again within
the same thread flow, unless you start a new tenant flow or setting a
tenant domain other than super tenant.

Starting a new tenant flow means, the current ContextHolder instance will
be pushed onto the stack and then the thread would see a new ContextHolder
instance until that tenant flow is properly ended (popped from the stack),
which then the thread would see the previous ContextHolder instance which
was there before starting the tenant flow.


> On 24 June 2016 at 14:44, Uvindra Dias Jayasinha  wrote:
>
>> Problem is the issue is intermittent so its difficult to verify but I
>> will test the fix out and send a PR
>>
>> On 24 June 2016 at 13:52, Chanaka Fernando  wrote:
>>
>>> Hi Uvindra,
>>>
>>> Could you please verify the fix and send us a PR so that we can merge it?
>>>
>>> On Fri, Jun 24, 2016 at 1:02 PM, Uvindra Dias Jayasinha <
>>> uvin...@wso2.com> wrote:
>>>
 Hi All,

 The original issue encountered in [1] was fixed via the resolution of
 [2].

 But now this has been reopened and in this case the same issue has got
 exposed, but on this occasion the call stack is different. This is
 happening when setting the tenant info at [3]. So we need to apply the same
 fix that was done in resolving [2] to the WSO2Registry class when setting
 the tenant info.

 Can we get this fixed?


 [1] https://wso2.org/jira/browse/APIMANAGER-4202
 [2] https://wso2.org/jira/browse/ESBJAVA-4333
 [3]
 https://github.com/wso2/carbon-mediation/blob/v4.6.1-BETA3/components/mediation-registry/org.wso2.carbon.mediation.registry/src/main/java/org/wso2/carbon/mediation/registry/WSO2Registry.java#L747


 --
 Regards,
 Uvindra

 Mobile: 33962

>>>
>>>
>>>
>>> --
>>> Thank you and Best Regards,
>>> Chanaka Fernando
>>> Senior Technical Lead
>>> WSO2, Inc.; http://wso2.com
>>> lean.enterprise.middleware
>>>
>>> mobile: +94 773337238
>>> Blog : http://soatutorials.blogspot.com
>>> LinkedIn:http://www.linkedin.com/pub/chanaka-fernando/19/a20/5b0
>>> Twitter:https://twitter.com/chanakaudaya
>>>
>>>
>>>
>>>
>>>
>>
>>
>> --
>> Regards,
>> Uvindra
>>
>> Mobile: 33962
>>
>
>
>
> --
> Regards,
> Uvindra
>
> Mobile: 33962
>



-- 
*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] Fixing APIMANAGER-4202 at carbon-mediation level

2016-06-27 Thread Uvindra Dias Jayasinha
Ping! Need your feedback Carbon team.

On 27 June 2016 at 12:13, Uvindra Dias Jayasinha  wrote:

> Before I just apply the stated fix I would like some feedback from the
> Carbon team regarding what maybe causing this issue.
>
> So here is what we are seeing so far,
>
> 1. IllegalStateException is being thrown by
> CarbonContextDataHolder.setTenantDomain()
>
> 2. The logic in setTenantDomain() is as follows,
>   a) If the this.tenantDomain of the CarbonContextDataHolder is null
> or is equal to the super tenant domain then its fine
>
>   b) But if the this.tenantDomain of the CarbonContextDataHolder is
> Not Equal to the tenant domain value that is being set then there is a
> chance for the IllegalStateException to be thrown.
>
> So what this seems to indicate is that you cannot call setTenantDomain()
> if the current tenantDomain within the carbon context is already set to
> another tenants domain. This could be due to startTenantFlow() not being
> called before setting the tenant domain. Could this be the cause?
>
> On 24 June 2016 at 14:44, Uvindra Dias Jayasinha  wrote:
>
>> Problem is the issue is intermittent so its difficult to verify but I
>> will test the fix out and send a PR
>>
>> On 24 June 2016 at 13:52, Chanaka Fernando  wrote:
>>
>>> Hi Uvindra,
>>>
>>> Could you please verify the fix and send us a PR so that we can merge it?
>>>
>>> On Fri, Jun 24, 2016 at 1:02 PM, Uvindra Dias Jayasinha <
>>> uvin...@wso2.com> wrote:
>>>
 Hi All,

 The original issue encountered in [1] was fixed via the resolution of
 [2].

 But now this has been reopened and in this case the same issue has got
 exposed, but on this occasion the call stack is different. This is
 happening when setting the tenant info at [3]. So we need to apply the same
 fix that was done in resolving [2] to the WSO2Registry class when setting
 the tenant info.

 Can we get this fixed?


 [1] https://wso2.org/jira/browse/APIMANAGER-4202
 [2] https://wso2.org/jira/browse/ESBJAVA-4333
 [3]
 https://github.com/wso2/carbon-mediation/blob/v4.6.1-BETA3/components/mediation-registry/org.wso2.carbon.mediation.registry/src/main/java/org/wso2/carbon/mediation/registry/WSO2Registry.java#L747


 --
 Regards,
 Uvindra

 Mobile: 33962

>>>
>>>
>>>
>>> --
>>> Thank you and Best Regards,
>>> Chanaka Fernando
>>> Senior Technical Lead
>>> WSO2, Inc.; http://wso2.com
>>> lean.enterprise.middleware
>>>
>>> mobile: +94 773337238
>>> Blog : http://soatutorials.blogspot.com
>>> LinkedIn:http://www.linkedin.com/pub/chanaka-fernando/19/a20/5b0
>>> Twitter:https://twitter.com/chanakaudaya
>>>
>>>
>>>
>>>
>>>
>>
>>
>> --
>> Regards,
>> Uvindra
>>
>> Mobile: 33962
>>
>
>
>
> --
> Regards,
> Uvindra
>
> Mobile: 33962
>



-- 
Regards,
Uvindra

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


[Dev] No unit tests for Carbon-Transports

2016-06-27 Thread Niranjan Karunanandham
Hi all,

AFAIK in the current master branch of carbon-transports, there are no
tests. IMO we need to atleast have unit tests, therefore added a JIRA [1]
for this.

[1] - https://wso2.org/jira/browse/CTRANSPORT-8

Regards,
Nira

-- 


*Niranjan Karunanandham*
Associate Technical Lead - WSO2 Inc.
WSO2 Inc.: http://www.wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [DS] Support primitive edit operations (moving and delete gadgets) operations in the view mode

2016-06-27 Thread Jerad Rutnam
Hi Sinthuja,

+1, I also think its better. We can simply enable designer mode only for
designers and admins. And end users will have the capable of doing simple
modifications on view mode it self.

I believe in this case we will have a dynamic layout on view mode by
default.

Cheers!
Jerad

On Mon, Jun 27, 2016 at 1:35 PM, Sinthuja Ragendran 
wrote:

> Hi Udara,
>
> On Mon, Jun 27, 2016 at 1:27 PM, Tanya Madurapperuma 
> wrote:
>
>> Hi Udara,
>>
>>
>> On Mon, Jun 27, 2016 at 12:41 PM, Udara Rathnayake 
>> wrote:
>>
>>> Hi UX team,
>>>
>>> Requirement is to provide simple dashboard viewer level customization
>>> within the dashboard view rather redirecting to the designer.
>>>
>> If a user in the designer role logs into the dashboard, do we redirect
>> him/her to designer view or do we allow them also to do minor changes being
>> on the view mode ? Or is this just for personalization.
>>
>
> The main idea is to avoid user to switch the modes (ie, switching between
> designer/view modes) when doing such simple personalization modifications.
> Hence IMHO we should not again ask for go to simple/advanced designing,
> rather by default the view mode should have the simple designing enabled
> where as he/she should be able to drag the gadgets, and delete them if
> he/she doesn't want it.
>
> Thanks,
> Sinthuja.
>
> Thanks,
>> Tanya
>>
>>>
>>> Simple customization includes(as per the RM),
>>> 1. Deleting a gadget
>>> 2. Moving a gadget
>>> 3. Resize a gadget
>>>
>>> Still, viewer should be able to go to the designer for extensive
>>> customizations.
>>>
>>> How should we distinguish these two operations in the dashboard view?
>>> Right now we have following menu item,
>>>
>>>
>>> ​
>>>
>>> Shall we get an input from the user once he/she press the Customize
>>> Dashboard menu and continue?
>>>
>>> Eg:-
>>>
>>>
>>> ​
>>>
>>> Even with this kind of an interaction(simple vs extensive) it's hard to
>>> convey what is the difference between these two types.
>>>
>>> Appreciate your feedback.
>>>
>>> --
>>> Regards,
>>> UdaraR
>>>
>>
>>
>>
>> --
>> Tanya Madurapperuma
>>
>> Senior Software Engineer,
>> WSO2 Inc. : wso2.com
>> Mobile : +94718184439
>> Blog : http://tanyamadurapperuma.blogspot.com
>>
>
>
>
> --
> *Sinthuja Rajendran*
> Technical Lead
> WSO2, Inc.:http://wso2.com
>
> Blog: http://sinthu-rajan.blogspot.com/
> Mobile: +94774273955
>
>
>


-- 
*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] Fwd: Improvements to the RESTful APIs in CDMF

2016-06-27 Thread Prabath Abeysekera
Hi Rasika,

Thanks for the improvements suggested. Please find my comments below.

On Mon, Jun 27, 2016 at 12:53 PM, Rasika Perera  wrote:

> Hi All,
>
> I have some suggestions for improving REST APIs in CDMF.
>
> *1. Why have we implemented custom exception classes for JAX-RSs in many
> places and why we wrap ErrorResponseBuilder in them?*
>
> throw new ConflictException(
> new 
> ErrorResponse.ErrorResponseBuilder().setCode(409l).setMessage("User by 
> username: " +
> userWrapper.getUsername() +  " already exists. Therefore, 
> request made to add user " +
> "was refused.").build());
>
>
> For instance
> [1][2].UnexpectedServerErrorException, UnknownApplicationTypeException, 
> ConflictException we
> don't need them.
>
> *on success*
>
> return Response.ok().entity(result).build();
>
> *on errors(4xx-5xx);*
>
> return new ErrorResponse.ErrorResponseBuilder().setCode(409l).setMessage("User
> by username: " +
>
> userWrapper.getUsername() +  " already exists. Therefore, request made to add 
> user " +
> "was refused.").build()
>
> +1.

Further, what's suggested above needs to change as below (depending on the
type of error).

return Response.serverError().entity(
ErrorResponse.ErrorResponseBuilder().setCode(409l).setMessage("User by
username: " + userWrapper.getUsername() + " already exists. Therefore,
request made to add user was refused.").build()).build();

JAX-RSs are at the top most layer, we generally use our own custom
> exception classes when we have different logics to handle exceptions.
>
> For instance when BackEnd returning IOException, we don't know for what
> reason this have raised. Hence BE wrap it with their own custom exception
> classes to differentiate them for the *upper* layer. I don't think we need
> custom exception classes at REST APIs level, *status* of the resource
> should always represented with HTTP Status.
>
> *2. Why are we keeping owner,device-type,device-name,ownership...etc in
> PaginationRequest?*
>
> IMO Pagination needs *only* limit and offset. Others are belongs to
> SearchCriteria. Can we introduce/rename it into SearchCriteria?
>

+1.


>
> *3. Move null check validations into PaginationRequest / SearchCriteria.*
>
> Have a look on this method. All these null checks can be moved to the
> PaginationRequest / SearchCriteria. For instance; SearchCriteria.validate()
>
> try {
> RequestValidationUtil.validateSelectionCriteria(type, user, roleName, 
> ownership, status);
>
> DeviceManagementProviderService dms = 
> DeviceMgtAPIUtils.getDeviceManagementService();
> PaginationRequest request = new PaginationRequest(offset, limit);
> PaginationResult result;
>
> if (type != null) {
> request.setDeviceType(type);
> }
> if (user != null) {
> request.setOwner(user);
> }
> if (ownership != null) {
> RequestValidationUtil.validateOwnershipType(ownership);
> request.setOwnership(ownership);
> }
> if (status != null) {
> RequestValidationUtil.validateStatus(status);
> request.setStatus(status);
> }
>
> if (ifModifiedSince != null) {
> Date sinceDate;
> SimpleDateFormat format = new SimpleDateFormat("EEE, d MMM  
> HH:mm:ss Z");
> try {
> sinceDate = format.parse(ifModifiedSince);
> } catch (ParseException e) {
> throw new InputValidationException(
> new 
> ErrorResponse.ErrorResponseBuilder().setCode(400l).setMessage("Invalid date " 
> +
> "string is provided in 'If-Modified-Since' 
> header").build());
> }
> request.setSince(sinceDate);
> result = dms.getAllDevices(request);
> if (result == null || result.getData() == null || 
> result.getData().size() <= 0) {
> return Response.status(Response.Status.NOT_MODIFIED).entity("No 
> device is modified " +
> "after the timestamp provided in 'If-Modified-Since' 
> header").build();
> }
> } else if (since != null) {
> Date sinceDate;
> SimpleDateFormat format = new SimpleDateFormat("EEE, d MMM  
> HH:mm:ss Z");
> try {
> sinceDate = format.parse(since);
> } catch (ParseException e) {
> throw new InputValidationException(
> new 
> ErrorResponse.ErrorResponseBuilder().setCode(400l).setMessage("Invalid date " 
> +
> "string is provided in 'since' filter").build());
> }
> request.setSince(sinceDate);
> result = dms.getAllDevices(request);
> if (result == null || result.getData() == null || 
> result.getData().size() <= 0) {
> return Response.status(Response.Status.OK).entity("No device is 
> modified " +
> "after the timestamp provided in 'since' filter").build();
> }
> } else {
>
> 

Re: [Dev] [DS] Support primitive edit operations (moving and delete gadgets) operations in the view mode

2016-06-27 Thread Sinthuja Ragendran
Hi Udara,

On Mon, Jun 27, 2016 at 1:27 PM, Tanya Madurapperuma  wrote:

> Hi Udara,
>
>
> On Mon, Jun 27, 2016 at 12:41 PM, Udara Rathnayake 
> wrote:
>
>> Hi UX team,
>>
>> Requirement is to provide simple dashboard viewer level customization
>> within the dashboard view rather redirecting to the designer.
>>
> If a user in the designer role logs into the dashboard, do we redirect
> him/her to designer view or do we allow them also to do minor changes being
> on the view mode ? Or is this just for personalization.
>

The main idea is to avoid user to switch the modes (ie, switching between
designer/view modes) when doing such simple personalization modifications.
Hence IMHO we should not again ask for go to simple/advanced designing,
rather by default the view mode should have the simple designing enabled
where as he/she should be able to drag the gadgets, and delete them if
he/she doesn't want it.

Thanks,
Sinthuja.

Thanks,
> Tanya
>
>>
>> Simple customization includes(as per the RM),
>> 1. Deleting a gadget
>> 2. Moving a gadget
>> 3. Resize a gadget
>>
>> Still, viewer should be able to go to the designer for extensive
>> customizations.
>>
>> How should we distinguish these two operations in the dashboard view?
>> Right now we have following menu item,
>>
>>
>> ​
>>
>> Shall we get an input from the user once he/she press the Customize
>> Dashboard menu and continue?
>>
>> Eg:-
>>
>>
>> ​
>>
>> Even with this kind of an interaction(simple vs extensive) it's hard to
>> convey what is the difference between these two types.
>>
>> Appreciate your feedback.
>>
>> --
>> Regards,
>> UdaraR
>>
>
>
>
> --
> Tanya Madurapperuma
>
> Senior Software Engineer,
> WSO2 Inc. : wso2.com
> Mobile : +94718184439
> Blog : http://tanyamadurapperuma.blogspot.com
>



-- 
*Sinthuja Rajendran*
Technical Lead
WSO2, Inc.:http://wso2.com

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


Re: [Dev] [DS] Support primitive edit operations (moving and delete gadgets) operations in the view mode

2016-06-27 Thread Jerad Rutnam
Hi Udara,

IMO, there should be an option for end-user (non-admin) to arrange there
are gadgets etc ... (personalization) in the dashboard. But this is an
optional feature. And which can be turn on/off by the dashboard
creator/editor. Only dashboard designer/admin will have the permission to
change the advance settings by login to designer mode/view. But again this
depends on the dashboard type (static/dynamic). I believe this will make
layout bit complex.

Regards,
Jerad

On Mon, Jun 27, 2016 at 12:41 PM, Udara Rathnayake  wrote:

> Hi UX team,
>
> Requirement is to provide simple dashboard viewer level customization
> within the dashboard view rather redirecting to the designer.
>
> Simple customization includes(as per the RM),
> 1. Deleting a gadget
> 2. Moving a gadget
> 3. Resize a gadget
>
> Still, viewer should be able to go to the designer for extensive
> customizations.
>
> How should we distinguish these two operations in the dashboard view?
> Right now we have following menu item,
>
>
> ​
>
> Shall we get an input from the user once he/she press the Customize
> Dashboard menu and continue?
>
> Eg:-
>
>
> ​
>
> Even with this kind of an interaction(simple vs extensive) it's hard to
> convey what is the difference between these two types.
>
> Appreciate your feedback.
>
> --
> Regards,
> UdaraR
>



-- 
*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] [DS] Support primitive edit operations (moving and delete gadgets) operations in the view mode

2016-06-27 Thread Tanya Madurapperuma
Hi Udara,


On Mon, Jun 27, 2016 at 12:41 PM, Udara Rathnayake  wrote:

> Hi UX team,
>
> Requirement is to provide simple dashboard viewer level customization
> within the dashboard view rather redirecting to the designer.
>
If a user in the designer role logs into the dashboard, do we redirect
him/her to designer view or do we allow them also to do minor changes being
on the view mode ? Or is this just for personalization.

Thanks,
Tanya

>
> Simple customization includes(as per the RM),
> 1. Deleting a gadget
> 2. Moving a gadget
> 3. Resize a gadget
>
> Still, viewer should be able to go to the designer for extensive
> customizations.
>
> How should we distinguish these two operations in the dashboard view?
> Right now we have following menu item,
>
>
> ​
>
> Shall we get an input from the user once he/she press the Customize
> Dashboard menu and continue?
>
> Eg:-
>
>
> ​
>
> Even with this kind of an interaction(simple vs extensive) it's hard to
> convey what is the difference between these two types.
>
> Appreciate your feedback.
>
> --
> Regards,
> UdaraR
>



-- 
Tanya Madurapperuma

Senior Software Engineer,
WSO2 Inc. : wso2.com
Mobile : +94718184439
Blog : http://tanyamadurapperuma.blogspot.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Fwd: Improvements to the RESTful APIs in CDMF

2016-06-27 Thread Rasika Perera
Hi All,

I have some suggestions for improving REST APIs in CDMF.

*1. Why have we implemented custom exception classes for JAX-RSs in many
places and why we wrap ErrorResponseBuilder in them?*

throw new ConflictException(
new ErrorResponse.ErrorResponseBuilder().setCode(409l).setMessage("User
by username: " +
userWrapper.getUsername() +  " already exists.
Therefore, request made to add user " +
"was refused.").build());


For instance
[1][2].UnexpectedServerErrorException,
UnknownApplicationTypeException, ConflictException we
don't need them.

*on success*

return Response.ok().entity(result).build();

*on errors(4xx-5xx);*

return new ErrorResponse.ErrorResponseBuilder().setCode(409l).setMessage("User
by username: " +

userWrapper.getUsername() +  " already exists. Therefore, request made
to add user " +
"was refused.").build()

JAX-RSs are at the top most layer, we generally use our own custom
exception classes when we have different logics to handle exceptions.

For instance when BackEnd returning IOException, we don't know for what
reason this have raised. Hence BE wrap it with their own custom exception
classes to differentiate them for the *upper* layer. I don't think we need
custom exception classes at REST APIs level, *status* of the resource
should always represented with HTTP Status.

*2. Why are we keeping owner,device-type,device-name,ownership...etc in
PaginationRequest?*

IMO Pagination needs *only* limit and offset. Others are belongs to
SearchCriteria. Can we introduce/rename it into SearchCriteria?

*3. Move null check validations into PaginationRequest / SearchCriteria.*

Have a look on this method. All these null checks can be moved to the
PaginationRequest / SearchCriteria. For instance; SearchCriteria.validate()

try {
RequestValidationUtil.validateSelectionCriteria(type, user,
roleName, ownership, status);

DeviceManagementProviderService dms =
DeviceMgtAPIUtils.getDeviceManagementService();
PaginationRequest request = new PaginationRequest(offset, limit);
PaginationResult result;

if (type != null) {
request.setDeviceType(type);
}
if (user != null) {
request.setOwner(user);
}
if (ownership != null) {
RequestValidationUtil.validateOwnershipType(ownership);
request.setOwnership(ownership);
}
if (status != null) {
RequestValidationUtil.validateStatus(status);
request.setStatus(status);
}

if (ifModifiedSince != null) {
Date sinceDate;
SimpleDateFormat format = new SimpleDateFormat("EEE, d MMM
 HH:mm:ss Z");
try {
sinceDate = format.parse(ifModifiedSince);
} catch (ParseException e) {
throw new InputValidationException(
new
ErrorResponse.ErrorResponseBuilder().setCode(400l).setMessage("Invalid
date " +
"string is provided in 'If-Modified-Since'
header").build());
}
request.setSince(sinceDate);
result = dms.getAllDevices(request);
if (result == null || result.getData() == null ||
result.getData().size() <= 0) {
return
Response.status(Response.Status.NOT_MODIFIED).entity("No device is
modified " +
"after the timestamp provided in
'If-Modified-Since' header").build();
}
} else if (since != null) {
Date sinceDate;
SimpleDateFormat format = new SimpleDateFormat("EEE, d MMM
 HH:mm:ss Z");
try {
sinceDate = format.parse(since);
} catch (ParseException e) {
throw new InputValidationException(
new
ErrorResponse.ErrorResponseBuilder().setCode(400l).setMessage("Invalid
date " +
"string is provided in 'since' filter").build());
}
request.setSince(sinceDate);
result = dms.getAllDevices(request);
if (result == null || result.getData() == null ||
result.getData().size() <= 0) {
return Response.status(Response.Status.OK).entity("No
device is modified " +
"after the timestamp provided in 'since' filter").build();
}
} else {

*---our real logic starts
here-*
result = dms.getAllDevices(request);
int resultCount = result.getRecordsTotal();
if (resultCount == 0) {
throw new NotFoundException(
new
ErrorResponse.ErrorResponseBuilder().setCode(404l).setMessage("No
device is currently" +
" enrolled with the server").build());
}
}

return Response.ok().entity(result).build();

DeviceList devices = new DeviceList();
devices.setList((List) result.getData());
devices.setCount(result.getRecordsTotal());
return Response.status(Response.Status.OK).entity(devices).build();
} catch (DeviceManagementException e) {

[Dev] [DS] Support primitive edit operations (moving and delete gadgets) operations in the view mode

2016-06-27 Thread Udara Rathnayake
Hi UX team,

Requirement is to provide simple dashboard viewer level customization
within the dashboard view rather redirecting to the designer.

Simple customization includes(as per the RM),
1. Deleting a gadget
2. Moving a gadget
3. Resize a gadget

Still, viewer should be able to go to the designer for extensive
customizations.

How should we distinguish these two operations in the dashboard view? Right
now we have following menu item,


​

Shall we get an input from the user once he/she press the Customize
Dashboard menu and continue?

Eg:-


​

Even with this kind of an interaction(simple vs extensive) it's hard to
convey what is the difference between these two types.

Appreciate your feedback.

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


Re: [Dev] Need a org.wso2.carbon.identity.saml.common bundle

2016-06-27 Thread Chamara Philips
+1.

Hope that we can use this to address [1] and [2] also.
[1] https://wso2.org/jira/browse/IDENTITY-4730
[2] https://wso2.org/jira/browse/IDENTITY-4731

On Mon, Jun 27, 2016 at 8:29 AM, Dulanja Liyanage  wrote:

> Me and Farasath had a brief discussion on this last Friday. The concern we
> are facing now is slowing down the startup time. Let's discuss further with
> Kernel folks as well.
>
> On Sat, Jun 25, 2016 at 11:39 AM, Malithi Edirisinghe 
> wrote:
>
>> We can address [1] also, along with this effort.
>> Let's discuss this with Dulanja.
>>
>> [1] [Dev] APIM Getting SSLPeerUnverifiedException after upgrading to
>> kernel 4.4.4
>>
>> Thanks,
>> Malithi.
>>
>> On Sat, Jun 25, 2016 at 10:46 AM, Darshana Gunawardana > > wrote:
>>
>>> Will this be a seperate repo?
>>>
>>>
>>> On Saturday, 25 June 2016, Omindu Rathnaweera  wrote:
>>>
 +1 for having a common bundle. Also if we are to bootstrap opensaml in
 the bundle's activator, better to do it in a manner so that the server
 startup time will not get affected.

 Regards,
 Omindu.

 On Sat, Jun 25, 2016 at 12:00 AM, Malithi Edirisinghe <
 malit...@wso2.com> wrote:

> +1
>
> We are also packing opensaml bundle with several features. I think
> it's better if we can pack only from a common feature.
>
> Thanks,
> Malithi.
>
> On Fri, Jun 24, 2016 at 11:16 PM, Farasath Ahamed 
> wrote:
>
>> +1.
>>
>> Currently, we are bootstrapping the OpenSAML library once in each of
>> the above-mentioned components once. Bootstrapping OpenSAML is a heavy
>> operation and it is only required to be done once within a JVM. We can
>> avoid bootstrapping more than once if we could do it within the activator
>> of this proposed SAML common bundle.
>>
>> Thanks.
>>
>> Farasath Ahamed
>> Software Engineer,
>> WSO2 Inc.; http://wso2.com
>> lean.enterprise.middleware
>>
>>
>> Email: farasa...@wso2.com
>> Mobile: +94777603866
>> Blog: blog.farazath.com
>> Twitter: @farazath619 
>>
>> On Fri, Jun 24, 2016 at 10:56 PM, Johann Nallathamby > > wrote:
>>
>>> We have many bundles using SAML2. Inbound and outbound SAML2 SSO
>>> authenticators, Carbon authenticators, SAML2 grant type in OAuth2, SAML2
>>> STS, Passive STS, entitlement, etc. Following items are seen duplicated 
>>> in
>>> these components.
>>>
>>> 1. Utility methods
>>> 2. Constants
>>> 3. Bootstrapping the OpenSAML library
>>>
>>> If we introduce a  org.wso2.carbon.identity.saml.common bundle we
>>> can have all these stuff in this single component and avoid all the
>>> problems. This bundle can be a dependency to all the necessary 
>>> components
>>> and packed in all relevant features.
>>>
>>> Created JIRA: https://wso2.org/jira/browse/IDENTITY-4729
>>>
>>> --
>>> Thanks & Regards,
>>>
>>> *Johann Dilantha Nallathamby*
>>> Technical Lead & Product Lead of WSO2 Identity Server
>>> Governance Technologies Team
>>> WSO2, Inc.
>>> lean.enterprise.middleware
>>>
>>> Mobile - *+9476950*
>>> Blog - *http://nallaa.wordpress.com *
>>>
>>
>>
>
>
> --
>
> *Malithi Edirisinghe*
> Associate Technical Lead
> WSO2 Inc.
>
> Mobile : +94 (0) 718176807
> malit...@wso2.com
>



 --
 Omindu Rathnaweera
 Software Engineer, WSO2 Inc.
 Mobile: +94 771 197 211

>>>
>>>
>>> --
>>> Regards,
>>>
>>>
>>> *Darshana Gunawardana*Associate Technical Lead
>>> WSO2 Inc.; http://wso2.com
>>>
>>> *E-mail: darsh...@wso2.com *
>>> *Mobile: +94718566859 <%2B94718566859>*Lean . Enterprise . Middleware
>>>
>>>
>>
>>
>> --
>>
>> *Malithi Edirisinghe*
>> Associate Technical Lead
>> WSO2 Inc.
>>
>> Mobile : +94 (0) 718176807
>> malit...@wso2.com
>>
>
>
>
> --
> Thanks & Regards,
> Dulanja Liyanage
> Lead, Platform Security Team
> WSO2 Inc.
>



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


Re: [Dev] [GSOC2016]Proposal 4: [ML] Ensemble Methods Support for WSO2 Machine Learner

2016-06-27 Thread Supun Sethunga
Hi Misgana,

Can you commit all the changes to your fork of carbon-ml, and share us the
link. So that I can check whats happening.

Also, do I need to manually edit the machinelearner.xml file(s) to include
> Stacking?

Yes. No need to add hyper-parameters, since we can't predefine them.

Thanks,
Supun

On Mon, Jun 27, 2016 at 4:33 AM, Misgana Negassi <
negas...@tf.uni-freiburg.de> wrote:

> Hello Supun,
> sorry to bother you again with the same problem but I am not making any
> progress right now :(
> I can't get the sample script running.
>
> I tried two approaches:
> A) Using the server provided and applying patches.
> Problem: I can not apply my patch. I suspect the problem is that my patch
> is of a newer version. The server's carbon ml is 1.1.1. and mine is 1.1.2.
> Can I somewhere change the version number when I build my project?
>
> B) Building carbon and then product-ml and then unpacking
> modules/distribution/target/wso2ml-2.0.0-SNAPSHOT.zip
> I can start the server with the right components except for one exception:
>
> log4j:ERROR Could not instantiate appender named "CARBON_MEMORY".
> log4j:ERROR Could not instantiate class
> [org.wso2.carbon.logging.service.appender.CarbonMemoryAppender].
> java.lang.ClassNotFoundException:
> org.wso2.carbon.logging.service.appender.CarbonMemoryAppender cannot be
> found by org.wso2.carbon.logging_4.4.3
> at
> org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:501)
>
>
> However, when I try to run my example script there seems to be nothing
> happening on the server side. No exceptions but also the debugger does not
> stop when I expect it would. It seems something is crashing but the
> exceptions are swallowed. Is there a way to increase the debug output?
>
> Also, do I need to manually edit the machinelearner.xml file(s) to include
> Stacking?
>
>
> On 21.06.2016 05:41, Supun Sethunga wrote:
>
> Hi Misgana,
>
> I have two issues:
> 1. Issue:
>
> Exception in thread "pool-17-thread-7" java.lang.IllegalArgumentException:
>> No enum constant org.wso2.carbon.ml.commons.con
>> stants.MLConstants.SUPERVISED_ALGORITHM.STACKING
>> at java.lang.Enum.valueOf(Enum.java:238)
>> at org.wso2.carbon.ml.commons.constants.MLConstants$SUPERVISED_
>> ALGORITHM.valueOf(MLConstants.java:225)
>> at org.wso2.carbon.ml.core.spark.algorithms.SupervisedSparkMode
>> lBuilder.build(SupervisedSparkModelBuilder.java:158)
>
> Which approach did you try? putting the jar as a patch (patch)? or
> build the carbon-ml and product ml respectively? If it was patching method,
> did you build org.wso2.carbon.ml.commons as well?
>
> Caused by: org.wso2.carbon.ml.database.exceptions.DatabaseHandlerException:
>> An error occurred while inserting hyper parameter  to the database: Value
>> too long for column "VALUE VARCHAR(50)": "'rO0ABXNyABNqYXZhLnV0aWwuQXJy
>> YXlMaXN0eIHSHZnHYZ0DAAFJAARzaXpleHACdwQCc3IAEWphdmEu
>> dXRpbC5IYXNoTWFwBQfawcMWYNEDAAJGAApsb2F... (372)"; SQL statement:
>> INSERT INTO ML_HYPER_PARAMETER(ANALYSIS_ID, ALGORITHM_NAME, NAME, VALUE,
>> LAST_MODIFIED_TIME) VALUES(?,?,?,?, CURRENT_TIMESTAMP()) [90005-140]
>> The Logic is: The hyperparameters of base-algorithms are serialized and
>> passed in the product-ml hyperparamters script file.This is a serialized
>> string of List of Maps, where each map contains hyperparameters of each
>> base-algorithm and will be deserialized in buildStackingModel() in
>> SupervisedSparkModelBuilder and fed to Stacking train().
>> Current idea to solve it is:
>>  1. Increase column capacity more than VALUE VARCHAR(50)
>>  2. Change serialization logic
>> What do you think?
>
>
> I believe we don't need to pass a serialized a map and put the string in
> DB. Can we store the hyperparamerets as follows, in the ML_HYPER_PARAMETER
> table?
>
> *ANALYSIS_ID* *ALGORITHM_NAME* *NAME* *VALUE* *LAST_MODIFIED_TIME*
> 123 Meta_Algorithm_1 Learning Rate 0.001 
> 123 Meta_Algorithm_1 Num_Trees 10 
> 123 Meta_Algorithm_1 Max_Depth 0.001 
> 123 Meta_Algorithm_1 Seed 4567 
> 123 Meta_Algorithm_2 Learning Rate 0.001 
> 123 Meta_Algorithm_2 Iterations 100 
> 123 Meta_Algorithm_2 Seed 789 
> … … … … …
> 123 Base_Algorithm Learning Rate 0.001 
> 123 Base_Algorithm Iterations 100 
> 123 Base_Algorithm Seed 6325 
>
> Do you see any complications/issues in doing so?
>
>
>
> Thanks,
> Supun
>
> On Mon, Jun 20, 2016 at 6:58 PM, Misgana Negassi <
> negas...@tf.uni-freiburg.de> wrote:
>
>> Hi Supun,
>>
>> I have two issues:
>> 1. Issue:
>>
>> Exception in thread "pool-17-thread-7"
>> java.lang.IllegalArgumentException: No enum constant
>> org.wso2.carbon.ml.commons.constants.MLConstants.SUPERVISED_ALGORITHM.STACKING
>> at java.lang.Enum.valueOf(Enum.java:238)
>> at
>> org.wso2.carbon.ml.commons.constants.MLConstants$SUPERVISED_ALGORITHM.valueOf(MLConstants.java:225)
>> at
>> org.wso2.carbon.ml.core.spark.algorithms.SupervisedSparkModelBuilder.build(SupervisedSparkModelBuilder.java:158)
>>
>>
>> It doesn't 

Re: [Dev] WSO2 Docker images layered composition

2016-06-27 Thread Imesh Gunaratne
On Sat, Jun 25, 2016 at 10:21 AM, Akila Ravihansa Perera  wrote:

> Hi,
>
> I've merged the PR [1] which introduces wso2base image. This base image
> will include packages that were previously installed from Puppet (zip and
> unzip), and those are removed from Puppet/Hiera side. With that we should
> be able to build WSO2 Docker images in offline mode.
>
> wso2base image is pushed to DockerHub [2] as well. You don't need to build
> it locally.
>

​Great work! Will try this out!

Thanks​


>
> [1] https://github.com/wso2/dockerfiles/pull/46
> [2] https://hub.docker.com/r/wso2/wso2base/
>
> Thanks.
>
> On Thu, Jun 23, 2016 at 3:06 PM, Imesh Gunaratne  wrote:
>
>> Hi Isuru/Akila,
>>
>> On Tue, Jun 21, 2016 at 3:19 PM, Isuru Haththotuwa 
>> wrote:
>>
>> To summarize:
>>
>>- Publish a wso2 product specific docker image to a local docker
>>repository (we can even push to dockerhub, without the JDK distribution 
>> and
>>ask the users to provide the JDK when spinning up a container from the
>>image).
>>
>> A good suggestion, since we currently track product downloads for
>> analytics we might need to find a way to do the same with Docker if we were
>> to publicly share WSO2 Docker images. Otherwise using a local registry with
>> a base/product image would do.
>>
>>- Guide the users/developers to create their own Dockerfile extending
>>from the original wso2 product Docker image.
>>
>> We might need to solve 1, to do this.
>>
>> On Thu, Jun 23, 2016 at 9:42 AM, Isuru Haththotuwa 
>> wrote:
>>
>>>
>>> On Tue, Jun 21, 2016 at 6:54 PM, Akila Ravihansa Perera <
>>> raviha...@wso2.com> wrote:
>>>

 I'm not against having a base image for the WSO2 Docker images. But,
>>> IMHO the advantages should be significant for doing so. AFAIU there is no
>>> significant advantage of doing so currently. But, this is my take only.
>>> Therefore lets get the input from the community on this matter.
>>>
>>> @Imesh: WDYT?
>>>
>>> ​Currently almost all of us use a base image locally to reduce the
>> internet bandwidth usage due to executing docker builds from scratch.
>> Therefore I think it would be better to push that to the remote repository.
>>
>> As Akila has mentioned the only downside of this is the image size being
>> increased by around 100 MB. ​When creating Docker images for production
>> deployment those optimizations can be taken into account.
>>
>> Thanks
>>
>>>
>>> --
>>> Thanks and Regards,
>>>
>>> Isuru H.
>>> +94 716 358 048* *
>>>
>>>
>>>
>>
>>
>> --
>> *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
>> Lean . Enterprise . Middleware
>>
>>
>
>
> --
> 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
Lean . Enterprise . Middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Fixing APIMANAGER-4202 at carbon-mediation level

2016-06-27 Thread Uvindra Dias Jayasinha
Before I just apply the stated fix I would like some feedback from the
Carbon team regarding what maybe causing this issue.

So here is what we are seeing so far,

1. IllegalStateException is being thrown by
CarbonContextDataHolder.setTenantDomain()

2. The logic in setTenantDomain() is as follows,
  a) If the this.tenantDomain of the CarbonContextDataHolder is null or
is equal to the super tenant domain then its fine

  b) But if the this.tenantDomain of the CarbonContextDataHolder is Not
Equal to the tenant domain value that is being set then there is a chance
for the IllegalStateException to be thrown.

So what this seems to indicate is that you cannot call setTenantDomain() if
the current tenantDomain within the carbon context is already set to
another tenants domain. This could be due to startTenantFlow() not being
called before setting the tenant domain. Could this be the cause?

On 24 June 2016 at 14:44, Uvindra Dias Jayasinha  wrote:

> Problem is the issue is intermittent so its difficult to verify but I will
> test the fix out and send a PR
>
> On 24 June 2016 at 13:52, Chanaka Fernando  wrote:
>
>> Hi Uvindra,
>>
>> Could you please verify the fix and send us a PR so that we can merge it?
>>
>> On Fri, Jun 24, 2016 at 1:02 PM, Uvindra Dias Jayasinha > > wrote:
>>
>>> Hi All,
>>>
>>> The original issue encountered in [1] was fixed via the resolution of
>>> [2].
>>>
>>> But now this has been reopened and in this case the same issue has got
>>> exposed, but on this occasion the call stack is different. This is
>>> happening when setting the tenant info at [3]. So we need to apply the same
>>> fix that was done in resolving [2] to the WSO2Registry class when setting
>>> the tenant info.
>>>
>>> Can we get this fixed?
>>>
>>>
>>> [1] https://wso2.org/jira/browse/APIMANAGER-4202
>>> [2] https://wso2.org/jira/browse/ESBJAVA-4333
>>> [3]
>>> https://github.com/wso2/carbon-mediation/blob/v4.6.1-BETA3/components/mediation-registry/org.wso2.carbon.mediation.registry/src/main/java/org/wso2/carbon/mediation/registry/WSO2Registry.java#L747
>>>
>>>
>>> --
>>> Regards,
>>> Uvindra
>>>
>>> Mobile: 33962
>>>
>>
>>
>>
>> --
>> Thank you and Best Regards,
>> Chanaka Fernando
>> Senior Technical Lead
>> WSO2, Inc.; http://wso2.com
>> lean.enterprise.middleware
>>
>> mobile: +94 773337238
>> Blog : http://soatutorials.blogspot.com
>> LinkedIn:http://www.linkedin.com/pub/chanaka-fernando/19/a20/5b0
>> Twitter:https://twitter.com/chanakaudaya
>>
>>
>>
>>
>>
>
>
> --
> Regards,
> Uvindra
>
> Mobile: 33962
>



-- 
Regards,
Uvindra

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