Re: [Dev] IS 5.2.0 DB2 migration scripts

2017-05-05 Thread Ishara Karunarathna
Thanks Rajith for finding out this.

@Dinali Can you please update the scripts.

-Ishara

On Fri, May 5, 2017 at 11:52 PM, Rajith Roshan  wrote:

> The migration resources for db2 specified in step 11 of doc [1] is giving
> errors. It tries to insert boolean values to columns which have type
> smallint. They should be replaced with 0s and 1s. Please find the modified
> script below [2]
>
> [1] - https://docs.wso2.com/display/IS520/Upgrading+from+
> a+Previous+Release
>
> [2] -
> INSERT INTO UM_CLAIM (
> UM_DIALECT_ID,
> UM_CLAIM_URI,
> UM_DISPLAY_TAG,
> UM_DESCRIPTION,
> UM_MAPPED_ATTRIBUTE,
> UM_TENANT_ID,
> UM_READ_ONLY,
>UM_SUPPORTED,
>UM_REQUIRED,
>UM_DISPLAY_ORDER,
>UM_CHECKED_ATTRIBUTE)
> VALUES ((SELECT UM_ID FROM UM_DIALECT WHERE UM_DIALECT_URI='http://wso2.
> org/claims' AND UM_TENANT_ID=-1234),
> 'http://wso2.org/claims/identity/lastLoginTime','Last Login Time','Last
> Login Time','carLicense',-1234,1,0,0,7,0)/
>
>
> INSERT INTO UM_CLAIM (
>UM_DIALECT_ID,
>UM_CLAIM_URI,
>UM_DISPLAY_TAG,
>UM_DESCRIPTION,
>UM_MAPPED_ATTRIBUTE,
>UM_TENANT_ID,
>UM_READ_ONLY)
>
> SELECT DIALECT.UM_ID,
>   'http://wso2.org/claims/identity/lastLoginTime',
>'Last Login Time',
>'Last Login Time',
>'carLicense',
>   DIALECT.UM_TENANT_ID,
>1
>FROM UM_DIALECT as DIALECT JOIN UM_TENANT as TENANT ON
> DIALECT.UM_TENANT_ID=TENANT.UM_ID WHERE DIALECT.UM_DIALECT_URI='http:/
> /wso2.org/claims'/
>
>
> INSERT INTO UM_CLAIM (
> UM_DIALECT_ID,
> UM_CLAIM_URI,
> UM_DISPLAY_TAG,
> UM_DESCRIPTION,
> UM_MAPPED_ATTRIBUTE,
> UM_TENANT_ID,
> UM_READ_ONLY,
>UM_SUPPORTED,
>UM_REQUIRED,
>UM_DISPLAY_ORDER,
>UM_CHECKED_ATTRIBUTE)
> VALUES ((SELECT UM_ID FROM UM_DIALECT WHERE UM_DIALECT_URI='http://wso2.
> org/claims' AND UM_TENANT_ID=-1234),
> 'http://wso2.org/claims/identity/lastPasswordUpdateTime','Last Password
> Update','Last Password Update','businessCategory',-1234,1,0,0,7,0)/
>
>
> INSERT INTO UM_CLAIM (
>UM_DIALECT_ID,
>UM_CLAIM_URI,
>UM_DISPLAY_TAG,
>UM_DESCRIPTION,
>UM_MAPPED_ATTRIBUTE,
>UM_TENANT_ID,
>UM_READ_ONLY)
>
> SELECT DIALECT.UM_ID,
> 'http://wso2.org/claims/identity/lastPasswordUpdateTime',
> 'Last Password Update',
> 'Last Password Update',
> 'businessCategory',
> DIALECT.UM_TENANT_ID,
> 1
> FROM UM_DIALECT as DIALECT JOIN UM_TENANT as TENANT ON
> DIALECT.UM_TENANT_ID=TENANT.UM_ID WHERE DIALECT.UM_DIALECT_URI='http:/
> /wso2.org/claims'/
>
>
> CREATE INDEX REG_LOG_IND_BY_P1
> ON REG_LOG(REG_LOGGED_TIME, REG_TENANT_ID)/
>
> CREATE INDEX REG_RESOURCE_IND_3
> ON REG_RESOURCE(REG_UUID)/
>
> CREATE INDEX REG_RESOURCE_IND_4
> ON REG_RESOURCE(REG_TENANT_ID, REG_UUID)/
>
> CREATE INDEX REG_RESOURCE_IND_5
> ON REG_RESOURCE(REG_TENANT_ID, REG_MEDIA_TYPE)/
> --
> Rajith Roshan
> Software Engineer, WSO2 Inc.
> Mobile: +94-72-642-8350 <%2B94-71-554-8430>
>



-- 
Ishara Karunarathna
Associate Technical Lead
WSO2 Inc. - lean . enterprise . middleware |  wso2.com

email: isha...@wso2.com,   blog: isharaaruna.blogspot.com,   mobile:
+94717996791
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Please review and merge

2017-05-05 Thread Rajjaz Mohammed
Hi,

We will do the needful to release the extension.

On Fri, May 5, 2017 at 6:07 PM, Farasath Ahamed  wrote:

> Hi Kathees,
>
> Also, can you do the needful to update the connector store with this
> latest version?
>
>
> Thanks,
> Farasath
>
> Farasath Ahamed
> Software Engineer, WSO2 Inc.; http://wso2.com
> Mobile: +94777603866
> Blog: blog.farazath.com
> Twitter: @farazath619 
> 
>
>
>
> On Fri, May 5, 2017 at 5:37 PM, Kathees Rajendram 
> wrote:
>
>> Hi Ishara/Hasanthi,
>>
>> The PR is merged.
>>
>> Thanks,
>> Kathees
>>
>>
>>
>> On Fri, May 5, 2017 at 1:00 PM, Ishara Karunarathna 
>> wrote:
>>
>>> Hi connector team,
>>>
>>> Can we get this merged ?
>>>
>>> -Ishara
>>>
>>> On Fri, May 5, 2017 at 10:11 AM, Hasanthi Purnima Dissanayake <
>>> hasan...@wso2.com> wrote:
>>>
 Hi Kathees

 Fixed the comments.

 Thanks,

 Hasanthi Dissanayake

 Software Engineer | WSO2

 E: hasan...@wso2.com
 M :0718407133| http://wso2.com 

 On Fri, May 5, 2017 at 9:45 AM, Kathees Rajendram 
 wrote:

> Thanks Hasanthi for your fix.
>
> Please fix those comments in the PR.
>
> Thanks,
> Kathees
>
> On Thu, May 4, 2017 at 3:16 PM, Hasanthi Purnima Dissanayake <
> hasan...@wso2.com> wrote:
>
>> Hi connector team,
>> Please review and merge [1] which fixes [2].
>> [1]https://github.com/wso2-extensions/identity-oauth2-grant-
>> jwt/pull/14
>> [2]https://wso2.org/jira/browse/IDENTITY-5888
>>
>> Thanks,
>>
>> Hasanthi Dissanayake
>>
>> Software Engineer | WSO2
>>
>> E: hasan...@wso2.com
>> M :0718407133| http://wso2.com 
>>
>
>
>
> --
> Kathees
> Software Engineer,
> email: kath...@wso2.com
> mobile: +94772596173 <+94%2077%20259%206173>
>


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


>>>
>>>
>>> --
>>> Ishara Karunarathna
>>> Associate Technical Lead
>>> WSO2 Inc. - lean . enterprise . middleware |  wso2.com
>>>
>>> email: isha...@wso2.com,   blog: isharaaruna.blogspot.com,   mobile:
>>> +94717996791 <+94%2071%20799%206791>
>>>
>>>
>>>
>>
>>
>> --
>> Kathees
>> Software Engineer,
>> email: kath...@wso2.com
>> mobile: +94772596173 <+94%2077%20259%206173>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Thank you
Best Regards

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

[image: https://wso2.com/signature] 
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [GSOC][CEP][DEV] Python API for Siddhi CEP

2017-05-05 Thread Sriskandarajah Suhothayan
@Mohan on DAS 4.0 do we have similar services like admin services at the
worker?

Shall we come up with the exact list of apis that we need to have ? So he
can also incorporate them.

Regards
Suho

On Fri, May 5, 2017 at 9:16 PM Mohanadarshan Vivekanandalingam <
mo...@wso2.com> wrote:

> [Adding other project mentors]
>
> On Fri, May 5, 2017 at 5:52 PM, Madhawa Vidanapathirana <
> madhawavidanapathir...@gmail.com> wrote:
>
>> Hi,
>> Thank you for accepting my proposal for Project "Python API for Siddhi
>> CEP" in GSoC.
>>
>> The original proposal submitted by myself is available at [1].
>>
>> Progress made so far is as follows.
>>
>>1. Figured out a good technique to access JAVA APIs from Python via
>>Native Calls.
>>- Pyjnius Framework supports both method calls and callbacks between
>>   Python and Java.
>>2. Has wrapped the basic functionality of Siddhi CEP Java Library
>>using Python in prototype implementations [2].
>>3. Currently in the process of figuring out a good method to
>>communicate with Admin Services from Python.
>>   - Zeep API [3] seems to be a good solution. It supports SSL as
>>   well. I have already managed to authenticate and invoke some methods of
>>   WSO2 DAS through this API.
>>
>> During the community bonding period, my plan is to gain more clarity on
>> expected architecture of the system such as what sort of a public interface
>> would be suitable for the Python API. I also hope to learn more on Admin
>> Services Interface of WSO2 DAS.
>>
>> Would you like to see any changes in the proposal? Shall I proceed as per
>> the plan their?
>>
>> [1] -
>> https://drive.google.com/file/d/0B7wIuEzJseiwUF9xWGFRUnQyMWc/view?usp=sharing
>> [2] -
>> https://github.com/madhawav/CEP-Python-Wraps/tree/master/Pyjnius_Prototype_Wrap_Python2_3
>> [3] - http://docs.python-zeep.org/en/master/
>>
>> Thanks and Regards,
>>
>> Madhawa
>>
>> On Tue, Apr 4, 2017 at 1:52 PM, Sriskandarajah Suhothayan 
>> wrote:
>>
>>> Great
>>>
>>> Suho
>>>
>>> On Tue, Apr 4, 2017 at 11:10 AM, Madhawa Vidanapathirana <
>>> madhawavidanapathir...@gmail.com> wrote:
>>>
 Hi Suho,

 I have submitted the final proposal through GSoC Dashboard. Thank you
 for all the support given.

 Looking forward for a great GSoC with WSO2.

 Regards,
 Madhawa


 On Monday, March 27, 2017, Madhawa Vidanapathirana <
 madhawavidanapathir...@gmail.com> wrote:

> Hi,
>
> I have shared the finalized draft proposal via the Google Summer of
> Code Web Portal. Kindly let me know if any changes are required.
> Hoping to submit the final proposal with changes based on your
> feedback.
>
> Regards,
> Madhawa
>
>
> On Fri, Mar 24, 2017 at 4:15 PM, Madhawa Vidanapathirana <
> madhawavidanapathir...@gmail.com> wrote:
>
>> Hi,
>>
>> Good news.
>>
>> Requested a release from Pyjnius Developer Team [1] and managed to
>> get a new release [2] to Python Package Index (PIP). Therefore, we no
>> longer have to develop their library from GitHub code.
>> We can simply consider it as a dependency which gets auto installed
>> when our final product is deployed.
>>
>> [1] -
>> https://github.com/kivy/pyjnius/issues/189#issuecomment-288750222
>> [2] - https://pypi.python.org/pypi/pyjnius/1.1.1
>>
>> Pyjnius is a library which can be used for calling Java methods from
>> Python and obtaining callback responses. It uses native method calls.
>>
>> Regards,
>> Madhawa
>>
>> On Thu, Mar 23, 2017 at 1:48 AM, Sriskandarajah Suhothayan <
>> s...@wso2.com> wrote:
>>
>>> Good to know that it worked :)
>>>
>>> Regards
>>> Suho
>>>
>>> On Wed, Mar 22, 2017 at 11:24 PM, Madhawa Vidanapathirana <
>>> madhawavidanapathir...@gmail.com> wrote:
>>>
 Hi Suho,

 Got the prototype working with Python 3 as well. Refer the link
 below for sources.


 https://github.com/madhawav/CEP-Python-Wraps/tree/master/Pyjnius_Prototype_Wrap_Python2_3

 This version works with both Python 2.7 and 3.x. (Tested on 2.7 and
 3.5). Uses native calls via Pyjnius API.

 Please note: When you are installing Pyjnius from source, don't use
 the same local copy of source files for both Python2 and Python3. The
 install scripts of Pyjnius leaves temporary files that make subsequent
 installs on a different version of Python fail.

 Regards,
 Madhawa


 On Mon, Mar 20, 2017 at 12:44 PM, Madhawa Vidanapathirana <
 madhawavidanapathir...@gmail.com> wrote:

> Hi Suho,
>
> Installation via PIP can be done. I will add it to Project
> Proposal.
>
> Regards,
> Madhawa
>
> On Mon, 

[Dev] IS 5.2.0 DB2 migration scripts

2017-05-05 Thread Rajith Roshan
The migration resources for db2 specified in step 11 of doc [1] is giving
errors. It tries to insert boolean values to columns which have type
smallint. They should be replaced with 0s and 1s. Please find the modified
script below [2]

[1] - https://docs.wso2.com/display/IS520/Upgrading+from+a+Previous+Release

[2] -
INSERT INTO UM_CLAIM (
UM_DIALECT_ID,
UM_CLAIM_URI,
UM_DISPLAY_TAG,
UM_DESCRIPTION,
UM_MAPPED_ATTRIBUTE,
UM_TENANT_ID,
UM_READ_ONLY,
   UM_SUPPORTED,
   UM_REQUIRED,
   UM_DISPLAY_ORDER,
   UM_CHECKED_ATTRIBUTE)
VALUES ((SELECT UM_ID FROM UM_DIALECT WHERE UM_DIALECT_URI='
http://wso2.org/claims' AND UM_TENANT_ID=-1234),
'http://wso2.org/claims/identity/lastLoginTime','Last Login Time','Last
Login Time','carLicense',-1234,1,0,0,7,0)/


INSERT INTO UM_CLAIM (
   UM_DIALECT_ID,
   UM_CLAIM_URI,
   UM_DISPLAY_TAG,
   UM_DESCRIPTION,
   UM_MAPPED_ATTRIBUTE,
   UM_TENANT_ID,
   UM_READ_ONLY)

SELECT DIALECT.UM_ID,
  'http://wso2.org/claims/identity/lastLoginTime',
   'Last Login Time',
   'Last Login Time',
   'carLicense',
  DIALECT.UM_TENANT_ID,
   1
   FROM UM_DIALECT as DIALECT JOIN UM_TENANT as TENANT ON
DIALECT.UM_TENANT_ID=TENANT.UM_ID WHERE DIALECT.UM_DIALECT_URI='
http://wso2.org/claims'/


INSERT INTO UM_CLAIM (
UM_DIALECT_ID,
UM_CLAIM_URI,
UM_DISPLAY_TAG,
UM_DESCRIPTION,
UM_MAPPED_ATTRIBUTE,
UM_TENANT_ID,
UM_READ_ONLY,
   UM_SUPPORTED,
   UM_REQUIRED,
   UM_DISPLAY_ORDER,
   UM_CHECKED_ATTRIBUTE)
VALUES ((SELECT UM_ID FROM UM_DIALECT WHERE UM_DIALECT_URI='
http://wso2.org/claims' AND UM_TENANT_ID=-1234),
'http://wso2.org/claims/identity/lastPasswordUpdateTime','Last Password
Update','Last Password Update','businessCategory',-1234,1,0,0,7,0)/


INSERT INTO UM_CLAIM (
   UM_DIALECT_ID,
   UM_CLAIM_URI,
   UM_DISPLAY_TAG,
   UM_DESCRIPTION,
   UM_MAPPED_ATTRIBUTE,
   UM_TENANT_ID,
   UM_READ_ONLY)

SELECT DIALECT.UM_ID,
'http://wso2.org/claims/identity/lastPasswordUpdateTime',
'Last Password Update',
'Last Password Update',
'businessCategory',
DIALECT.UM_TENANT_ID,
1
FROM UM_DIALECT as DIALECT JOIN UM_TENANT as TENANT ON
DIALECT.UM_TENANT_ID=TENANT.UM_ID WHERE DIALECT.UM_DIALECT_URI='
http://wso2.org/claims'/


CREATE INDEX REG_LOG_IND_BY_P1
ON REG_LOG(REG_LOGGED_TIME, REG_TENANT_ID)/

CREATE INDEX REG_RESOURCE_IND_3
ON REG_RESOURCE(REG_UUID)/

CREATE INDEX REG_RESOURCE_IND_4
ON REG_RESOURCE(REG_TENANT_ID, REG_UUID)/

CREATE INDEX REG_RESOURCE_IND_5
ON REG_RESOURCE(REG_TENANT_ID, REG_MEDIA_TYPE)/
-- 
Rajith Roshan
Software Engineer, WSO2 Inc.
Mobile: +94-72-642-8350 <%2B94-71-554-8430>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Clarification on 'Use tenant domain in local subject identifier' attribute

2017-05-05 Thread Maduranga Siriwardena
Hi Hasanthi,

When we added this configuration, the expectation was to add the tenant
domain to the subject identifier no matter what is used as the subject
claim or it is a requested claim (it can be username or telephone number,
if this is enabled tenant domain should be appended). If we deviate from
this there can be lots of unexpected inconsistencies.

Thanks,

Maduranga Siriwardena
Senior Software Engineer
WSO2 Inc; http://wso2.com/

On May 5, 2017 2:03 PM, "Isura Karunaratne"  wrote:

> Hi,
>
> On Fri, May 5, 2017 at 10:59 AM, Hasanthi Purnima Dissanayake <
> hasan...@wso2.com> wrote:
>
>> Hi All,
>>
>> There are few jiras [1],[2],[3],[4] reported related to the above
>> attribute and thought of discussing the expected behavior of this attribute.
>>
>> AFAIU if the above attribute is checked in both federated and local
>> scenarios:
>> -  the tenant domain should append with the sub claim even when the
>> username is added as a requested claim or username is set as the subject
>> claim uri.
>>
>> If the above attribute is unchecked :
>> - The tenant domain should not append with the sub claim even when the
>> user name is subject claim uri or a requested claim.
>>
>
>> [1] https://wso2.org/jira/browse/IDENTITY-5013
>> [2] https://wso2.org/jira/browse/IDENTITY-4931
>> [3]https://wso2.org/jira/browse/IDENTITY-4956
>> [4]https://wso2.org/jira/browse/IDENTITY-4470
>>
>> Please let me know if the behavior of this attribute is something
>> different.
>>
> Yes. That is the behavior of 'Use tenant domain in local subject
> identifier" attribute.
>
> Thanks
> Isura.
>
>>
>>
>> Thanks,
>>
>> Hasanthi Dissanayake
>>
>> Software Engineer | WSO2
>>
>> E: hasan...@wso2.com
>> M :0718407133| http://wso2.com 
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
>
> *Isura Dilhara Karunaratne*
> Senior Software Engineer | WSO2
> Email: is...@wso2.com
> Mob : +94 772 254 810 <+94%2077%20225%204810>
> Blog : http://isurad.blogspot.com/
>
>
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Appworx

2017-05-05 Thread Júnior
Hello,

Someone in this list has experience in integrating WSO2 ESB with appworx?

Could we use to monitor the status of the tasks running on WSo2?

Any advice is welcome.

Thanks,

-- 
Francisco Ribeiro
*SCEA|SCJP|SCWCD|IBM Certified SOA Associate*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [GSOC][CEP][DEV] Python API for Siddhi CEP

2017-05-05 Thread Mohanadarshan Vivekanandalingam
[Adding other project mentors]

On Fri, May 5, 2017 at 5:52 PM, Madhawa Vidanapathirana <
madhawavidanapathir...@gmail.com> wrote:

> Hi,
> Thank you for accepting my proposal for Project "Python API for Siddhi
> CEP" in GSoC.
>
> The original proposal submitted by myself is available at [1].
>
> Progress made so far is as follows.
>
>1. Figured out a good technique to access JAVA APIs from Python via
>Native Calls.
>- Pyjnius Framework supports both method calls and callbacks between
>   Python and Java.
>2. Has wrapped the basic functionality of Siddhi CEP Java Library
>using Python in prototype implementations [2].
>3. Currently in the process of figuring out a good method to
>communicate with Admin Services from Python.
>   - Zeep API [3] seems to be a good solution. It supports SSL as
>   well. I have already managed to authenticate and invoke some methods of
>   WSO2 DAS through this API.
>
> During the community bonding period, my plan is to gain more clarity on
> expected architecture of the system such as what sort of a public interface
> would be suitable for the Python API. I also hope to learn more on Admin
> Services Interface of WSO2 DAS.
>
> Would you like to see any changes in the proposal? Shall I proceed as per
> the plan their?
>
> [1] - https://drive.google.com/file/d/0B7wIuEzJseiwUF9xWGFRUnQyMWc
> /view?usp=sharing
> [2] - https://github.com/madhawav/CEP-Python-Wraps/tree/master/Pyj
> nius_Prototype_Wrap_Python2_3
> [3] - http://docs.python-zeep.org/en/master/
>
> Thanks and Regards,
>
> Madhawa
>
> On Tue, Apr 4, 2017 at 1:52 PM, Sriskandarajah Suhothayan 
> wrote:
>
>> Great
>>
>> Suho
>>
>> On Tue, Apr 4, 2017 at 11:10 AM, Madhawa Vidanapathirana <
>> madhawavidanapathir...@gmail.com> wrote:
>>
>>> Hi Suho,
>>>
>>> I have submitted the final proposal through GSoC Dashboard. Thank you
>>> for all the support given.
>>>
>>> Looking forward for a great GSoC with WSO2.
>>>
>>> Regards,
>>> Madhawa
>>>
>>>
>>> On Monday, March 27, 2017, Madhawa Vidanapathirana <
>>> madhawavidanapathir...@gmail.com> wrote:
>>>
 Hi,

 I have shared the finalized draft proposal via the Google Summer of
 Code Web Portal. Kindly let me know if any changes are required.
 Hoping to submit the final proposal with changes based on your feedback.

 Regards,
 Madhawa


 On Fri, Mar 24, 2017 at 4:15 PM, Madhawa Vidanapathirana <
 madhawavidanapathir...@gmail.com> wrote:

> Hi,
>
> Good news.
>
> Requested a release from Pyjnius Developer Team [1] and managed to get
> a new release [2] to Python Package Index (PIP). Therefore, we no longer
> have to develop their library from GitHub code.
> We can simply consider it as a dependency which gets auto installed
> when our final product is deployed.
>
> [1] - https://github.com/kivy/pyjnius/issues/189#issuecomment-2887
> 50222
> [2] - https://pypi.python.org/pypi/pyjnius/1.1.1
>
> Pyjnius is a library which can be used for calling Java methods from
> Python and obtaining callback responses. It uses native method calls.
>
> Regards,
> Madhawa
>
> On Thu, Mar 23, 2017 at 1:48 AM, Sriskandarajah Suhothayan <
> s...@wso2.com> wrote:
>
>> Good to know that it worked :)
>>
>> Regards
>> Suho
>>
>> On Wed, Mar 22, 2017 at 11:24 PM, Madhawa Vidanapathirana <
>> madhawavidanapathir...@gmail.com> wrote:
>>
>>> Hi Suho,
>>>
>>> Got the prototype working with Python 3 as well. Refer the link
>>> below for sources.
>>>
>>> https://github.com/madhawav/CEP-Python-Wraps/tree/master/Pyj
>>> nius_Prototype_Wrap_Python2_3
>>>
>>> This version works with both Python 2.7 and 3.x. (Tested on 2.7 and
>>> 3.5). Uses native calls via Pyjnius API.
>>>
>>> Please note: When you are installing Pyjnius from source, don't use
>>> the same local copy of source files for both Python2 and Python3. The
>>> install scripts of Pyjnius leaves temporary files that make subsequent
>>> installs on a different version of Python fail.
>>>
>>> Regards,
>>> Madhawa
>>>
>>>
>>> On Mon, Mar 20, 2017 at 12:44 PM, Madhawa Vidanapathirana <
>>> madhawavidanapathir...@gmail.com> wrote:
>>>
 Hi Suho,

 Installation via PIP can be done. I will add it to Project
 Proposal.

 Regards,
 Madhawa

 On Mon, Mar 20, 2017 at 11:25 AM, Sriskandarajah Suhothayan <
 s...@wso2.com> wrote:

>
>
> On Sun, Mar 19, 2017 at 4:02 PM, Madhawa Vidanapathirana <
> madhawavidanapathir...@gmail.com> wrote:
>
>> Hi Suho,
>>
>> Going ahead with the proposal, few questions crossed my mind.
>>
>>1. You mentioned previously that WSO2 DAS should also be

[Dev] [Carbon] Clarifications about keystores in WSO2 Products

2017-05-05 Thread Dilan Udara Ariyaratne
Hi Folks,

Following conceptions are still there regarding keystores used in WSO2
products.

   1. Primary KeyStore must contain only one private key. There can not be
   two private keys. (This is due to some issue in WSO2 products which may be
   fixed in future).
   2. Primary KeyStore must contain *same* password as KeyStore password
   and private key password. (This is due to some issue in WSO2 products which
   may be fixed in future)

Are these conceptions still valid or have these issues been already fixed ?

Thanks.
*Dilan U. Ariyaratne*
Senior Software Engineer
WSO2 Inc. 
Mobile: +94766405580 <%2B94766405580>
lean . enterprise . middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [WSO2-IoTS] About some kind of %pattern% inside configuration files

2017-05-05 Thread Sinthuja Ragendran
Hi Clovis,

These are parameters are passed as JVM properties along with server startup
script. And these configurations are resolved at runtime based on the
respective values for those properties.

If you are using the IoT server version 3.0.0, then it's passed as shown
below via IoT_HOME/core/bin/wso2server.sh UNIX-based systems and
IoT_HOME/core/bin/wso2server.bat for windows.

-*Diot.analytics.host="localhost*" \
-*Diot.analytics.https.port="9445"* \
-Dmqtt.broker.host="localhost" \
-Dmqtt.broker.port="1886" \
-Diot.core.host="localhost" \
-Diot.core.https.port="9443" \
-Diot.keymanager.host="localhost" \
-Diot.keymanager.https.port="9443" \
-Diot.gateway.host="localhost" \
-Diot.gateway.https.port="8243" \
-Diot.gateway.http.port="8280" \

Thanks,
Sinthuja.

On Fri, May 5, 2017 at 6:12 PM, Clovis Wichoski 
wrote:

> Hi,
>
> In many configuration files, we see some words between % sign, for example:
>
> "portalURL": "https://%iot.analytics.host%:%iot.analytics.https.port%;
>
> This is a pattern that will be changed dynamically at runtime or we must
> change this with sed?
>
> Please you can clarify the use of this kind of pattern?
>
> Best regards
>
> Clóvis
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


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


[Dev] [WSO2-IoTS] About some kind of %pattern% inside configuration files

2017-05-05 Thread Clovis Wichoski
Hi,

In many configuration files, we see some words between % sign, for example:

"portalURL": "https://%iot.analytics.host%:%iot.analytics.https.port%;

This is a pattern that will be changed dynamically at runtime or we must
change this with sed?

Please you can clarify the use of this kind of pattern?

Best regards

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


Re: [Dev] Please review and merge

2017-05-05 Thread Farasath Ahamed
Hi Kathees,

Also, can you do the needful to update the connector store with this latest
version?


Thanks,
Farasath

Farasath Ahamed
Software Engineer, WSO2 Inc.; http://wso2.com
Mobile: +94777603866
Blog: blog.farazath.com
Twitter: @farazath619 




On Fri, May 5, 2017 at 5:37 PM, Kathees Rajendram  wrote:

> Hi Ishara/Hasanthi,
>
> The PR is merged.
>
> Thanks,
> Kathees
>
>
>
> On Fri, May 5, 2017 at 1:00 PM, Ishara Karunarathna 
> wrote:
>
>> Hi connector team,
>>
>> Can we get this merged ?
>>
>> -Ishara
>>
>> On Fri, May 5, 2017 at 10:11 AM, Hasanthi Purnima Dissanayake <
>> hasan...@wso2.com> wrote:
>>
>>> Hi Kathees
>>>
>>> Fixed the comments.
>>>
>>> Thanks,
>>>
>>> Hasanthi Dissanayake
>>>
>>> Software Engineer | WSO2
>>>
>>> E: hasan...@wso2.com
>>> M :0718407133| http://wso2.com 
>>>
>>> On Fri, May 5, 2017 at 9:45 AM, Kathees Rajendram 
>>> wrote:
>>>
 Thanks Hasanthi for your fix.

 Please fix those comments in the PR.

 Thanks,
 Kathees

 On Thu, May 4, 2017 at 3:16 PM, Hasanthi Purnima Dissanayake <
 hasan...@wso2.com> wrote:

> Hi connector team,
> Please review and merge [1] which fixes [2].
> [1]https://github.com/wso2-extensions/identity-oauth2-grant-
> jwt/pull/14
> [2]https://wso2.org/jira/browse/IDENTITY-5888
>
> Thanks,
>
> Hasanthi Dissanayake
>
> Software Engineer | WSO2
>
> E: hasan...@wso2.com
> M :0718407133| http://wso2.com 
>



 --
 Kathees
 Software Engineer,
 email: kath...@wso2.com
 mobile: +94772596173 <+94%2077%20259%206173>

>>>
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Ishara Karunarathna
>> Associate Technical Lead
>> WSO2 Inc. - lean . enterprise . middleware |  wso2.com
>>
>> email: isha...@wso2.com,   blog: isharaaruna.blogspot.com,   mobile:
>> +94717996791 <+94%2071%20799%206791>
>>
>>
>>
>
>
> --
> Kathees
> Software Engineer,
> email: kath...@wso2.com
> mobile: +94772596173 <+94%2077%20259%206173>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] JPA in a custom connector

2017-05-05 Thread KasunG Gajasinghe
That is probably because when creating an osgi bundle, EI simply wraps
around the existing jar. So, any META-INF/services you had will be hidden
under that wrapped jar.

You can create your own osgi bundle via maven using a simple pom.xml like
this. In there, you need to mention three things.

1. Your maven dependency for openjpa-all
2. Export packages - the openjpa-all has several such as -
org.apache.openjpa.*, serp.*
3. Specify the resource files to copy

This ought to do it.

[1] https://github.com/wso2/orbit/blob/master/hazelcast/3.5.4.wso2v2/pom.xml

On Fri, May 5, 2017 at 2:07 PM, Thomas LEGRAND  wrote:

> Hello,
>
> That seems to be OK :)
>
> osgi> p org.apache.openjpa.persistence
> org.apache.openjpa.persistence; version="0.0.0" [132]>
> org.apache.openjpa.persistence; version="2.3.0"
>   compass_2.0.1.wso2v2 [54] imports
>   tomcat_7.0.75.wso2v1 [627] imports
> osgi> ss openjpa
> "Framework is launched."
>
>
> id  State   Bundle
> 132 ACTIVE  openjpa_all_2.4.2_1.0.0
> osgi>
>
> So, I deployed my little JPA project and I can see that my package is
> "registered":
>
> osgi> p my.little.project.jpa
> my.little.project.jpa; version="1.0.0"
>   synapse-core_2.1.7.wso2v13 [619] imports
> osgi>
>
> So I tried to invoke my class to retrieve an EntityManager and now, I have:
>
> javax.persistence.PersistenceException: Failed to load provider from
> META-INF/services
>
> I think that it is because the services/ directory in the META-INF in the
> openjpa bundle is not parsed and I don't know what to do because this is
> not me who generate the OSGi bundle but the ESB at startup.
>
> Do you have an idea?
>
> Regards,
>
> Thomas
>
>
> 2017-05-04 20:37 GMT+02:00 KasunG Gajasinghe :
>
>>
>> I do not think openjpa register any osgi services. Can you check whether
>> the package is exposed? Also verify the status of the openjpa bundle.
>>
>> osgi> p org.apache.openjpa.persistence
>> osgi> ss openjpa
>>
>> On Thu, May 4, 2017 at 7:01 PM, Thomas LEGRAND <
>> thomas.legr...@versusmind.eu> wrote:
>>
>>> Hello again :)
>>>
>>> I retrieved the openjpa-all-2.4.2.jar file and dropped it in the 
>>> /lib
>>> directory to let the runtime taking care of the bundle generation during
>>> the startup. The effect was the generation of the file
>>> openjpa_all_2.4.2_1.0.0.jar in the directory /dropins.
>>>
>>> I restarted the EI with:
>>>
>>>  D:\ProjetESB\wso2ei-6.0.0\bin> .\integrator.bat -DosgiConsole=19444
>>>
>>> So I can connect to the OSGI  console via telnet. But, when I try to
>>> retrieve the objectclasses starting with org.apache.openjpa.*, I have
>>> nothing :(
>>>
>>> osgi> services (objectclass=org.apache.openjpa.*)
>>> "No registered services."
>>>
>>> Am I missing something?
>>>
>>> Regards,
>>>
>>> Thomas
>>>
>>> 2017-05-04 10:49 GMT+02:00 KasunG Gajasinghe :
>>>
 Hi Thomas,

 Well, the connector itself cannot be deployed as an osgi bundle. But,
 you can call classes in osgi bundles from your connector. So, place your
 JPA logic in an osgi bundle and add it to dropins/ folder. Then, call that
 from your connector.

 This should give you flexibility over your classloading. I cannot
 comment on JPA stuff though.

 On Thu, May 4, 2017 at 1:26 PM, Thomas LEGRAND <
 thomas.legr...@versusmind.eu> wrote:

> Hello KasunG,
>
> I forgot to mention that I am using wso2ei-6.0.0.
>
> During the build of my connector, I noticed that a .jar is created
> with the .zip for the connector so I tried to deploy it. Actually, I tried
> the following directories and my sequence does not find any of the
> components like if my connector was not deployed :
> - /repository/components/dropins (this directory did
> not exist so I created it)
> - /dropins
>
> In addition, I don't find anything in the documentation mentioning
> that we can deploy connectors as an OSGi bundle :(
>
> When I deploy the .zip of the connector via the interface, it is
> deployed in /repository/deployment/server/synapse-libs
> which is the same directory used by Synapse:
> http://synapse.apache.org/userguide/template_library.html
>
> Concerning the "architecture" of my component, I deployed a .zip with
> a META-INF directory containing the persistence.xml but I don't think it 
> is
> used like the absence of mention in the Synaspe documentation above. :)
> Then, I call OpenJPA with the following lines:
>
> EntityManagerFactory emf = Persistence.createEntityManage
> rFactory("my-pu");
> EntityManager mgr = emf.createEntityManager();
>
> But then, I have the exception.
>
> I made a topic on StackOverflow one or two weeks ago:
> https://stackoverflow.com/questions/43538743/wso2-is-there-a
> -way-to-use-jpa-in-a-custom-connector
>
> I you know a documentation to generate an OSGi bundle for a 

Re: [Dev] [GSOC][CEP][DEV] Python API for Siddhi CEP

2017-05-05 Thread Madhawa Vidanapathirana
Hi,
Thank you for accepting my proposal for Project "Python API for Siddhi CEP"
in GSoC.

The original proposal submitted by myself is available at [1].

Progress made so far is as follows.

   1. Figured out a good technique to access JAVA APIs from Python via
   Native Calls.
   - Pyjnius Framework supports both method calls and callbacks between
  Python and Java.
   2. Has wrapped the basic functionality of Siddhi CEP Java Library using
   Python in prototype implementations [2].
   3. Currently in the process of figuring out a good method to communicate
   with Admin Services from Python.
  - Zeep API [3] seems to be a good solution. It supports SSL as well.
  I have already managed to authenticate and invoke some methods
of WSO2 DAS
  through this API.

During the community bonding period, my plan is to gain more clarity on
expected architecture of the system such as what sort of a public interface
would be suitable for the Python API. I also hope to learn more on Admin
Services Interface of WSO2 DAS.

Would you like to see any changes in the proposal? Shall I proceed as per
the plan their?

[1] - https://drive.google.com/file/d/0B7wIuEzJseiwUF9xWGFRUnQyMWc
/view?usp=sharing
[2] - https://github.com/madhawav/CEP-Python-Wraps/tree/master/
Pyjnius_Prototype_Wrap_Python2_3
[3] - http://docs.python-zeep.org/en/master/

Thanks and Regards,

Madhawa

On Tue, Apr 4, 2017 at 1:52 PM, Sriskandarajah Suhothayan 
wrote:

> Great
>
> Suho
>
> On Tue, Apr 4, 2017 at 11:10 AM, Madhawa Vidanapathirana <
> madhawavidanapathir...@gmail.com> wrote:
>
>> Hi Suho,
>>
>> I have submitted the final proposal through GSoC Dashboard. Thank you for
>> all the support given.
>>
>> Looking forward for a great GSoC with WSO2.
>>
>> Regards,
>> Madhawa
>>
>>
>> On Monday, March 27, 2017, Madhawa Vidanapathirana <
>> madhawavidanapathir...@gmail.com> wrote:
>>
>>> Hi,
>>>
>>> I have shared the finalized draft proposal via the Google Summer of Code
>>> Web Portal. Kindly let me know if any changes are required.
>>> Hoping to submit the final proposal with changes based on your feedback.
>>>
>>> Regards,
>>> Madhawa
>>>
>>>
>>> On Fri, Mar 24, 2017 at 4:15 PM, Madhawa Vidanapathirana <
>>> madhawavidanapathir...@gmail.com> wrote:
>>>
 Hi,

 Good news.

 Requested a release from Pyjnius Developer Team [1] and managed to get
 a new release [2] to Python Package Index (PIP). Therefore, we no longer
 have to develop their library from GitHub code.
 We can simply consider it as a dependency which gets auto installed
 when our final product is deployed.

 [1] - https://github.com/kivy/pyjnius/issues/189#issuecomment-288750222
 [2] - https://pypi.python.org/pypi/pyjnius/1.1.1

 Pyjnius is a library which can be used for calling Java methods from
 Python and obtaining callback responses. It uses native method calls.

 Regards,
 Madhawa

 On Thu, Mar 23, 2017 at 1:48 AM, Sriskandarajah Suhothayan <
 s...@wso2.com> wrote:

> Good to know that it worked :)
>
> Regards
> Suho
>
> On Wed, Mar 22, 2017 at 11:24 PM, Madhawa Vidanapathirana <
> madhawavidanapathir...@gmail.com> wrote:
>
>> Hi Suho,
>>
>> Got the prototype working with Python 3 as well. Refer the link below
>> for sources.
>>
>> https://github.com/madhawav/CEP-Python-Wraps/tree/master/Pyj
>> nius_Prototype_Wrap_Python2_3
>>
>> This version works with both Python 2.7 and 3.x. (Tested on 2.7 and
>> 3.5). Uses native calls via Pyjnius API.
>>
>> Please note: When you are installing Pyjnius from source, don't use
>> the same local copy of source files for both Python2 and Python3. The
>> install scripts of Pyjnius leaves temporary files that make subsequent
>> installs on a different version of Python fail.
>>
>> Regards,
>> Madhawa
>>
>>
>> On Mon, Mar 20, 2017 at 12:44 PM, Madhawa Vidanapathirana <
>> madhawavidanapathir...@gmail.com> wrote:
>>
>>> Hi Suho,
>>>
>>> Installation via PIP can be done. I will add it to Project Proposal.
>>>
>>> Regards,
>>> Madhawa
>>>
>>> On Mon, Mar 20, 2017 at 11:25 AM, Sriskandarajah Suhothayan <
>>> s...@wso2.com> wrote:
>>>


 On Sun, Mar 19, 2017 at 4:02 PM, Madhawa Vidanapathirana <
 madhawavidanapathir...@gmail.com> wrote:

> Hi Suho,
>
> Going ahead with the proposal, few questions crossed my mind.
>
>1. You mentioned previously that WSO2 DAS should also be
>supported. What sort of interactions are expected with WSO2 DAS?
>1. Should publishing events to WSO2 DAS from Python Siddhi API
>   supported?
>   2. Should deploying of Siddhi Queries to WSO2 DAS through
>   Python Siddhi API be supported?
>   3. Any other 

Re: [Dev] Please review and merge

2017-05-05 Thread Kathees Rajendram
Hi Ishara/Hasanthi,

The PR is merged.

Thanks,
Kathees



On Fri, May 5, 2017 at 1:00 PM, Ishara Karunarathna 
wrote:

> Hi connector team,
>
> Can we get this merged ?
>
> -Ishara
>
> On Fri, May 5, 2017 at 10:11 AM, Hasanthi Purnima Dissanayake <
> hasan...@wso2.com> wrote:
>
>> Hi Kathees
>>
>> Fixed the comments.
>>
>> Thanks,
>>
>> Hasanthi Dissanayake
>>
>> Software Engineer | WSO2
>>
>> E: hasan...@wso2.com
>> M :0718407133| http://wso2.com 
>>
>> On Fri, May 5, 2017 at 9:45 AM, Kathees Rajendram 
>> wrote:
>>
>>> Thanks Hasanthi for your fix.
>>>
>>> Please fix those comments in the PR.
>>>
>>> Thanks,
>>> Kathees
>>>
>>> On Thu, May 4, 2017 at 3:16 PM, Hasanthi Purnima Dissanayake <
>>> hasan...@wso2.com> wrote:
>>>
 Hi connector team,
 Please review and merge [1] which fixes [2].
 [1]https://github.com/wso2-extensions/identity-oauth2-grant-jwt/pull/14
 [2]https://wso2.org/jira/browse/IDENTITY-5888

 Thanks,

 Hasanthi Dissanayake

 Software Engineer | WSO2

 E: hasan...@wso2.com
 M :0718407133| http://wso2.com 

>>>
>>>
>>>
>>> --
>>> Kathees
>>> Software Engineer,
>>> email: kath...@wso2.com
>>> mobile: +94772596173 <+94%2077%20259%206173>
>>>
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Ishara Karunarathna
> Associate Technical Lead
> WSO2 Inc. - lean . enterprise . middleware |  wso2.com
>
> email: isha...@wso2.com,   blog: isharaaruna.blogspot.com,   mobile:
> +94717996791 <+94%2071%20799%206791>
>
>
>


-- 
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] Expiration Time of the password reset url

2017-05-05 Thread Isura Karunaratne
If you are using IS 5.3.0 Rest APIs, you can use IdentityGovernanceService
service to get the expiry time.

Thanks
Isura.

On Fri, May 5, 2017 at 5:25 PM, Isura Karunaratne  wrote:

> Could you more elaborate?
>
>- Which IS version?
>- Rest or SOAP APIs used?
>
>
> Thanks
> Isura.
>
> On Fri, May 5, 2017 at 5:17 PM, Danushka Fernando 
> wrote:
>
>> Can we get $subject? Is there an api or java call we could do?
>>
>> Thanks & Regards
>> Danushka Fernando
>> Associate Tech Lead
>> WSO2 inc. http://wso2.com/
>> Mobile : +94716332729 <+94%2071%20633%202729>
>>
>
>
>
> --
>
> *Isura Dilhara Karunaratne*
> Senior Software Engineer | WSO2
> Email: is...@wso2.com
> Mob : +94 772 254 810 <+94%2077%20225%204810>
> Blog : http://isurad.blogspot.com/
>
>
>
>


-- 

*Isura Dilhara Karunaratne*
Senior Software Engineer | WSO2
Email: is...@wso2.com
Mob : +94 772 254 810
Blog : http://isurad.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Expiration Time of the password reset url

2017-05-05 Thread Isura Karunaratne
Could you more elaborate?

   - Which IS version?
   - Rest or SOAP APIs used?


Thanks
Isura.

On Fri, May 5, 2017 at 5:17 PM, Danushka Fernando 
wrote:

> Can we get $subject? Is there an api or java call we could do?
>
> Thanks & Regards
> Danushka Fernando
> Associate Tech Lead
> WSO2 inc. http://wso2.com/
> Mobile : +94716332729 <+94%2071%20633%202729>
>



-- 

*Isura Dilhara Karunaratne*
Senior Software Engineer | WSO2
Email: is...@wso2.com
Mob : +94 772 254 810
Blog : http://isurad.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Expiration Time of the password reset url

2017-05-05 Thread Danushka Fernando
Can we get $subject? Is there an api or java call we could do?

Thanks & Regards
Danushka Fernando
Associate Tech Lead
WSO2 inc. http://wso2.com/
Mobile : +94716332729
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Dashboard] Sharing a dashboard in UUF Dashboard Component

2017-05-05 Thread Ayoma Wijethunga
Hi Lasantha,

Fragment ID of a Fragment URL (part after hash sign) will not be sent in
the HTTP Request back to the server. Also "Referer" header sent by browsers
should not include fragment ID [1]. Hence, data will not be logged in
intermediate proxies or any sort of server side access logs, and will not
be exposed to external application via Referer header.

One concern is that the end user (and for example a shoulder surfer) will
be able to see the data part directly in the browser URL. It will open up a
security loophole if confidential information is sent in the fragment ID.
Such confidential information will include session identifiers, credentials
or tokens.

If this does not concern confidential information, I do not think this will
open up a security loophole.

It is best if you could further clarify if we are planning to pass any
confidential values in fragment ID. If so we might need to look at other
approaches.

@Team: Any other thoughts?

[1] https://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.36

Best Regards,
Ayoma.


On Fri, May 5, 2017 at 4:45 PM, Lasantha Samarakoon 
wrote:

> [+Adding security team]
>
> @Security team: In the above first approach, we suppose to store widget
> state details in the URL hash as the given example. Can this be a security
> loophole since it exposes some of the data (ex. search criteria) used by
> the widgets via the URL?
>
> *Lasantha Samarakoon* | Software Engineer
> WSO2, Inc.
> #20, Palm Grove, Colombo 03, Sri Lanka
> Mobile: +94 (71) 214 1576 <+94%2071%20214%201576>
> Email:  lasant...@wso2.com
> Web:www.wso2.com
>
> lean . enterprise . middleware
>
> On Fri, May 5, 2017 at 11:35 AM, Lasantha Samarakoon 
> wrote:
>
>> [Dashboard] Sharing a dashboard
>>
>> Hi all,
>>
>> I am currently working on dashboard sharing feature in UUF dashboard
>> component which will allow a user to share a dashboard with current state
>> (i.e. selected field values, chart drill-downs, etc.). To implement this we
>> need to maintain the state of each widget somewhere and retrieve those on
>> dashboard restoring process. The same feature has been implemented in the
>> previous dashboard version and it worked as follows.
>>
>> In the dashboard 2.0.0 the gadget state is persisted in the URL hash. The
>> dashboard exposes a client side API[1] for gadgets to persist and retrieve
>> data in URL hash.
>>
>> *APIs:*
>>
>>  wso2.gadgets.state.setGadgetState(state, callback);
>>
>> wso2.gadgets.state.getGadgetState(callback);
>>
>> wso2.gadgets.state.getGlobalState(callback);
>>
>> wso2.gadgets.state.setGlobalState(key, state, callback);
>>
>> Once the states are saved the URL will looks like;
>>
>> https://dashboard.example.com/portal/dashboard/my-dashboard#
>> /gadget-a/{data of gadget-a}/gadget-b/{data of gadget-b
>>
>> One of the main advantage of this approach is that a user can simply copy
>> the URL and share. If the permission has been granted others can view the
>> dashboard with exact state.
>>
>> In addition to the above approach there was another approach has come up
>> in our discussions to implement this feature, i.e. using the database as a
>> persistence medium for widget states.
>>
>> *Using database as persistence medium:*
>>
>> In this approach we need to introduce a new button to save the current
>> state of the dashboard in the database and provide a sharable link to
>> restore (somewhat similar to how the Google docs works). The sharable link
>> will looks like;
>>
>> https://dashboard.example.com/portal/shared/
>>
>> The  in the above URL can be used to fetch the state with other
>> meta-info from the database and restore the dashboard. Drawbacks of this
>> approach are as follows.
>>
>>1. User has to perform an extra action to get the sharable link.
>>2. Database will persist data for each share, so sometimes purging
>>will be needed.
>>
>> Appreciate your comments on above to finalize the approach we are going
>> to use on UUF dashboard component.
>>
>> [1] https://github.com/wso2/carbon-dashboards/blob/2.0.x/com
>> ponents/shindig-wso2-features/src/main/javascript/wso2featur
>> es/state/state.js
>>
>>
>> Thanks,
>>
>> *Lasantha Samarakoon* | Software Engineer
>> WSO2, Inc.
>> #20, Palm Grove, Colombo 03, Sri Lanka
>> Mobile: +94 (71) 214 1576 <+94%2071%20214%201576>
>> Email:  lasant...@wso2.com
>> Web:www.wso2.com
>>
>> lean . enterprise . middleware
>>
>
>


-- 
Ayoma Wijethunga
Associate Technical Lead
Platform Security Team
WSO2, Inc.; http://wso2.com
lean.enterprise.middleware

Mobile : +94 (0) 719428123 <+94+(0)+719428123>
Blog : http://www.ayomaonline.com
LinkedIn: https://www.linkedin.com/in/ayoma
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Dashboard] Sharing a dashboard in UUF Dashboard Component

2017-05-05 Thread Lasantha Samarakoon
[+Adding security team]

@Security team: In the above first approach, we suppose to store widget
state details in the URL hash as the given example. Can this be a security
loophole since it exposes some of the data (ex. search criteria) used by
the widgets via the URL?

*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 Fri, May 5, 2017 at 11:35 AM, Lasantha Samarakoon 
wrote:

> [Dashboard] Sharing a dashboard
>
> Hi all,
>
> I am currently working on dashboard sharing feature in UUF dashboard
> component which will allow a user to share a dashboard with current state
> (i.e. selected field values, chart drill-downs, etc.). To implement this we
> need to maintain the state of each widget somewhere and retrieve those on
> dashboard restoring process. The same feature has been implemented in the
> previous dashboard version and it worked as follows.
>
> In the dashboard 2.0.0 the gadget state is persisted in the URL hash. The
> dashboard exposes a client side API[1] for gadgets to persist and retrieve
> data in URL hash.
>
> *APIs:*
>
>  wso2.gadgets.state.setGadgetState(state, callback);
>
> wso2.gadgets.state.getGadgetState(callback);
>
> wso2.gadgets.state.getGlobalState(callback);
>
> wso2.gadgets.state.setGlobalState(key, state, callback);
>
> Once the states are saved the URL will looks like;
>
> https://dashboard.example.com/portal/dashboard/my-dashboard#
> /gadget-a/{data of gadget-a}/gadget-b/{data of gadget-b
>
> One of the main advantage of this approach is that a user can simply copy
> the URL and share. If the permission has been granted others can view the
> dashboard with exact state.
>
> In addition to the above approach there was another approach has come up
> in our discussions to implement this feature, i.e. using the database as a
> persistence medium for widget states.
>
> *Using database as persistence medium:*
>
> In this approach we need to introduce a new button to save the current
> state of the dashboard in the database and provide a sharable link to
> restore (somewhat similar to how the Google docs works). The sharable link
> will looks like;
>
> https://dashboard.example.com/portal/shared/
>
> The  in the above URL can be used to fetch the state with other
> meta-info from the database and restore the dashboard. Drawbacks of this
> approach are as follows.
>
>1. User has to perform an extra action to get the sharable link.
>2. Database will persist data for each share, so sometimes purging
>will be needed.
>
> Appreciate your comments on above to finalize the approach we are going to
> use on UUF dashboard component.
>
> [1] https://github.com/wso2/carbon-dashboards/blob/2.0.x/
> components/shindig-wso2-features/src/main/javascript/
> wso2features/state/state.js
>
>
> Thanks,
>
> *Lasantha Samarakoon* | Software Engineer
> WSO2, Inc.
> #20, Palm Grove, Colombo 03, Sri Lanka
> Mobile: +94 (71) 214 1576 <+94%2071%20214%201576>
> Email:  lasant...@wso2.com
> Web:www.wso2.com
>
> lean . enterprise . middleware
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Tool to Analyze Performance of MB 4 Message Store

2017-05-05 Thread Malaka Gangananda
Hi Asanka,

At present we are doing a research on database systems which we can use.

Thanks.

On Fri, May 5, 2017 at 2:18 PM, Asanka Abeyweera  wrote:

> Hi Malaka,
>
> What are the other database systems we are going to compare? Have we
> decided them yet?
>
> On Fri, May 5, 2017 at 1:18 PM, Malaka Gangananda 
> wrote:
>
>> Hi Firzan,
>>
>> Yes we are going to compare  performance against level DB as well since
>> it is used by ActiveMQ also.
>>
>> Thanks.
>>
>> On Fri, May 5, 2017 at 12:11 PM, Firzhan Naqash  wrote:
>>
>>> Hi Malaka,
>>>
>>> Will you be considering to check the performance against level DB as
>>> well? Since it's a flat file based DB system, I believe that we can use it
>>> to achieve significant performance gain.
>>>
>>> On May 5, 2017 8:36 AM, "Malaka Gangananda"  wrote:
>>>
 Hi All,

 Adding reference for JMH : http://java-performance.info/jmh/

 Thanks,

 On Fri, May 5, 2017 at 11:23 AM, Malaka Gangananda 
 wrote:

> Hi All,
>
> I am implementing message store for MB4 while doing that I am
> developing a tool to analyze and compare performance of message store
> functionalities when different database instances are being used with MB.
> Also this tool will have the capability to evolve  with message store and
> evaluate new functionalities of message store.To generate the benchmarks I
> have used JMH.
>
> Thnks.
> --
> Malaka.
> --
> Malaka Gangananda - Software Engineer | WSO2
> Email : mala...@wso2.com
> Mobile : +94713564340 <+94%2071%20356%204340>
> Web : http://wso2.com
>   
>



 --
 Malaka.
 --
 Malaka Gangananda - Software Engineer | WSO2
 Email : mala...@wso2.com
 Mobile : +94713564340 <+94%2071%20356%204340>
 Web : http://wso2.com
   

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


>>
>>
>> --
>> Malaka.
>> --
>> Malaka Gangananda - Software Engineer | WSO2
>> Email : mala...@wso2.com
>> Mobile : +94713564340 <+94%2071%20356%204340>
>> Web : http://wso2.com
>>   
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Asanka Abeyweera
> Senior Software Engineer
> WSO2 Inc.
>
> Phone: +94 712228648 <+94%2071%20222%208648>
> Blog: a5anka.github.io
>
> 
>



-- 
Malaka.
-- 
Malaka Gangananda - Software Engineer | WSO2
Email : mala...@wso2.com
Mobile : +94713564340
Web : http://wso2.com
  
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [DEV] [IS] Improvements for scope awareness in consent management and token revocation in IS

2017-05-05 Thread Indunil Upeksha Rathnayake
Hi,

Currently both consent management and token revocation in IS, lack of scope
awareness. Please find the following concerns and it will be better if we
include at least some of the improvements for the next IS 5.4.0 release.
Note that some of them are actual customer requirements.


*User Consent Management*

1) We are storing the user consent for applications in IDN_OPENID_USER_RPS
table [1]. Currently, stored consent is based on user name, tenant and
application. *We are not considering the scope when we store consents in
IDN_OPENID_USER_RPS*, but I think it should be differ scope wise, so that
added a JIRA in [2].

2) We haven't consider about *consent expiration*. Currently we have to
invoke updateApproveAlwaysForAppConsentByResourceOwner of OAuthAdminService
and change the state of the consent [3]. Isn't it better to include a
*global/application
wise configuration* to mention the expiration time of a consent? Or provide
a way for a *user to change the expiration of a consent in UI*?

3) Currently we can update the consent of a particular application for a
particular user in a particular tenant using OAuthAdminService. So that if
the user has selected the consent as "approve always", we can change it and
then client will have to ask for the consent again.
Shall we also provide ways to:

   - *revoke all consents given for a particular scope/ particular
   application/ particular user?*
   - *get a list of user consents for a particular scope/ particular
   application/ particular user?*
   - *get a list of the current OAuth consents with scope and expiration
   date?*


*Token Revocation*

1) Currently in IS, access tokens can be revoked for particular client,
user and scope combination if its ACTIVE or EXPIRED. And it can be done
using revokeAuthzForAppsByResoureOwner method of OAuthAdminService [4].
When we revoking the tokens, it will revoke the consents for particular
client, user and tenant combination.
Isn't is better to concern about the following scenarios as well?

   - *Revoke access token/refresh token based on the consent (Revoke tokens
   with the consent "approve always")*
   - *Revoke access token/refresh token for given client and a scope*


Appreciate your ideas on this. Add please add if I have missed any other
scenarios in consent management and token revocation where the scope should
be aware.
[1]
https://github.com/wso2/carbon-identity-framework/blob/master/features/identity-core/org.wso2.carbon.identity.core.server.feature/resources/dbscripts/mysql-5.7.sql#L146
[2] https://wso2.org/jira/browse/IDENTITY-5899
[3]
https://github.com/wso2-extensions/identity-inbound-auth-oauth/blob/master/components/org.wso2.carbon.identity.oauth/src/main/java/org/wso2/carbon/identity/oauth/OAuthAdminService.java#L679
[4]
https://github.com/wso2-extensions/identity-inbound-auth-oauth/blob/master/components/org.wso2.carbon.identity.oauth/src/main/java/org/wso2/carbon/identity/oauth/OAuthAdminService.java#L570

Thanks and Regards
-- 
Indunil Upeksha Rathnayake
Software Engineer | WSO2 Inc
Emailindu...@wso2.com
Mobile   0772182255
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Issue with SSO login when re-starting the IOTs server and trying to logging in from a private window

2017-05-05 Thread Rasika Perera
Hi Malithi,

We have changed the authentication endpoint URL into our own jaggery app
which is "/devicemgt/login". When SSO is enabled it submits credentials
into "/commonauth" same as authenticationendpoint.war does.

We have added a SP for "devicemgt" with through the xml configurations.

Thanks,
Rasika

On Fri, May 5, 2017 at 2:11 PM, Malithi Edirisinghe 
wrote:

> This kind of a behavior was visible while authenticating to IS dashboard
> application because it sends that param. IIRC this is not observable with
> SPs configured in IS. What's the exact flow here. Is this exactly the
> authentication endpoint in IS that you are talking of ?
>
> Thanks,
> Malithi
>
> On Fri, May 5, 2017 at 11:34 AM, Megala Uthayakumar 
> wrote:
>
>> Hi Nuwandi,
>>
>> There are no error logs in the back-end.
>>
>> Thanks.
>>
>>
>> On Fri, May 5, 2017 at 11:27 AM, Nuwandi Wickramasinghe <
>> nuwan...@wso2.com> wrote:
>>
>>> Hi Megala,
>>>
>>> Do you see any back end logs in this scenario?
>>>
>>> thanks
>>> Nuwandi
>>>
>>> On Fri, May 5, 2017 at 10:48 AM, Megala Uthayakumar 
>>> wrote:
>>>
 Please note this can also be re-producible when we run j-meter scripts
 for logging in.

 Thanks.

 On Fri, May 5, 2017 at 10:41 AM, Megala Uthayakumar 
 wrote:

> Hi IS Team,
>
> We are experiencing an issue [1] when logging in to IOTs server in
> private window, after re-starting the server. The issue happens due to
> SSO-redirection, it redirects to the login page url with a jsession id
> getting appended to it [2]. This only happens once for each re-start. As
> per the offline-chat with Nuwandi seems like this was reported previously
> as well. Is this issue fixed? If not, can we get this fixed for our IOTs
> 3.1.0 release which is scheduled to be released within 2 weeks.
>
> [1] https://github.com/wso2/product-iots/issues/402
> [2] https://cloud.githubusercontent.com/assets/4003116/25698
> 762/ca55719a-30dd-11e7-983f-c0c1731799da.png
>
> Thanks.
>
> Regards,
> Megala
> --
> Megala Uthayakumar
>
> Software Engineer
> Mobile : 0779967122
>



 --
 Megala Uthayakumar

 Software Engineer
 Mobile : 0779967122

>>>
>>>
>>>
>>> --
>>>
>>> Best Regards,
>>>
>>> Nuwandi Wickramasinghe
>>>
>>> Software Engineer
>>>
>>> WSO2 Inc.
>>>
>>> Web : http://wso2.com
>>>
>>> Mobile : 0719214873
>>>
>>
>>
>>
>> --
>> Megala Uthayakumar
>>
>> Software Engineer
>> Mobile : 0779967122
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
>
> *Malithi Edirisinghe*
> Associate Technical Lead
> WSO2 Inc.
>
> Mobile : +94 (0) 718176807
> malit...@wso2.com
>



-- 
With Regards,

*Rasika Perera*
Senior Software Engineer
LinkedIn: http://lk.linkedin.com/in/rasika90



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


Re: [Dev] Tool to Analyze Performance of MB 4 Message Store

2017-05-05 Thread Asanka Abeyweera
Hi Malaka,

What are the other database systems we are going to compare? Have we
decided them yet?

On Fri, May 5, 2017 at 1:18 PM, Malaka Gangananda  wrote:

> Hi Firzan,
>
> Yes we are going to compare  performance against level DB as well since
> it is used by ActiveMQ also.
>
> Thanks.
>
> On Fri, May 5, 2017 at 12:11 PM, Firzhan Naqash  wrote:
>
>> Hi Malaka,
>>
>> Will you be considering to check the performance against level DB as
>> well? Since it's a flat file based DB system, I believe that we can use it
>> to achieve significant performance gain.
>>
>> On May 5, 2017 8:36 AM, "Malaka Gangananda"  wrote:
>>
>>> Hi All,
>>>
>>> Adding reference for JMH : http://java-performance.info/jmh/
>>>
>>> Thanks,
>>>
>>> On Fri, May 5, 2017 at 11:23 AM, Malaka Gangananda 
>>> wrote:
>>>
 Hi All,

 I am implementing message store for MB4 while doing that I am
 developing a tool to analyze and compare performance of message store
 functionalities when different database instances are being used with MB.
 Also this tool will have the capability to evolve  with message store and
 evaluate new functionalities of message store.To generate the benchmarks I
 have used JMH.

 Thnks.
 --
 Malaka.
 --
 Malaka Gangananda - Software Engineer | WSO2
 Email : mala...@wso2.com
 Mobile : +94713564340 <+94%2071%20356%204340>
 Web : http://wso2.com
   

>>>
>>>
>>>
>>> --
>>> Malaka.
>>> --
>>> Malaka Gangananda - Software Engineer | WSO2
>>> Email : mala...@wso2.com
>>> Mobile : +94713564340 <+94%2071%20356%204340>
>>> Web : http://wso2.com
>>>   
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>
>
> --
> Malaka.
> --
> Malaka Gangananda - Software Engineer | WSO2
> Email : mala...@wso2.com
> Mobile : +94713564340 <+94%2071%20356%204340>
> Web : http://wso2.com
>   
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Asanka Abeyweera
Senior Software Engineer
WSO2 Inc.

Phone: +94 712228648
Blog: a5anka.github.io


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


Re: [Dev] [CEP] GSoC Project - Siddhi Extension Doc Auto Generation

2017-05-05 Thread Nadun De Silva
Hi,

Thank you for accepting my proposal for "Siddhi Extension Doc Auto
Generation" GSoC project.

I have already implemented the following in the prototype and it is
available in a GitHub repository [1].

   - Retrieving annotated metadata using ClassIndex library
   - Generating documentation using the retrieved metadata
  - Generating HTML and markdown documentation using Apache FreeMarker.
  - Generating HTML documentation file using HandlebarsJS had been
  implemented as well since it was the recommended templating engine.
  (However, I don't think we can use this approach for markdown files since
  Handlebars is a JS library)

As of now, I am saving the generated documentation files inside the
"target/" directory and I have only created simple HTML files since I am
not sure of the themes that should be used.

Please correct me if my current approach is not what is expected.

Also, I would be grateful if we can elaborate further on our plan for the
upcoming months; whether we should stick with my proposal [2] or whether
there should be any deviations from it (especially regarding the method for
combining multiple documentation into a single documentation. In the
proposal, I suggested my initial idea where we could retrieve the
documentation files in all the repositories using the GitHub Contents API
and combine them using a completely separate program.).

Thank you again for accepting my proposal. Hope to have a great experience
in doing the project in the upcoming months.

[1] https://github.com/nadundesilva/wso2-siddhi-extension-
documentation-generator
[2] https://docs.google.com/document/d/1amSz_YXZjCP9FYmLyG0Y
VGog7LrlSSIfferhVNN2En8/edit?usp=sharing

Thanks,
Nadun De Silva

On Fri, May 5, 2017 at 2:12 PM, Nadun De Silva  wrote:

> Hi,
>
> Sorry. My mistake. I will resend.
>
> Thank you for pointing out.
>
> Nadun De Silva.
>
> On Fri, May 5, 2017 at 2:07 PM, Nirmal Fernando  wrote:
>
>> Congratulations! Please loop dev@wso2.org always.
>>
>> On Fri, May 5, 2017 at 2:05 PM, Nadun De Silva 
>> wrote:
>>
>>> Hi,
>>>
>>> Thank you for accepting my proposal for "Siddhi Extension Doc Auto
>>> Generation" GSoC project.
>>>
>>> I have already implemented the following in the prototype and it is
>>> available in a GitHub repository [1].
>>>
>>>- Retrieving annotated metadata using ClassIndex library
>>>- Generating documentation using the retrieved metadata
>>>   - Generating HTML and markdown documentation using Apache
>>>   FreeMarker.
>>>   - Generating HTML documentation file using HandlebarsJS had been
>>>   implemented as well since it was the recommended templating engine.
>>>   (However, I don't think we can use this approach for markdown files 
>>> since
>>>   Handlebars is a JS library)
>>>
>>> As of now, I am saving the generated documentation files inside the
>>> "target/" directory and I have only created simple HTML files since I am
>>> not sure of the themes that should be used.
>>>
>>> Please correct me if my current approach is not what is expected.
>>>
>>> Also, I would be grateful if we can elaborate further on our plan for
>>> the upcoming months; whether we should stick with my proposal [2] or
>>> whether there should be any deviations from it (especially regarding the
>>> method for combining multiple documentation into a single documentation. In
>>> the proposal, I suggested my initial idea where we could retrieve the
>>> documentation files in all the repositories using the GitHub Contents API
>>> and combine them using a completely separate program.).
>>>
>>> Thank you again for accepting my proposal. Hope to have a great
>>> experience in doing the project in the upcoming months.
>>>
>>> [1] https://github.com/nadundesilva/wso2-siddhi-extension-do
>>> cumentation-generator
>>> [2] https://docs.google.com/document/d/1amSz_YXZjCP9FYmLyG0Y
>>> VGog7LrlSSIfferhVNN2En8/edit?usp=sharing
>>>
>>> Thanks,
>>> Nadun De Silva
>>>
>>> On Mon, Apr 3, 2017 at 8:49 PM, Nadun De Silva 
>>> wrote:
>>>
 Hi,

 I have submitted the final proposal via the GSoC web portal. Thank you
 very much for all the support given.

 On Sat, Apr 1, 2017 at 11:02 AM, Nadun De Silva 
 wrote:

> Hi,
>
> Thank you for the updates. I will make the necessary changes and
> submit.
>
> On Fri, Mar 31, 2017 at 2:52 PM, Sriskandarajah Suhothayan <
> s...@wso2.com> wrote:
>
>> I have given some update in the proposal please fix and submit.
>>
>> On Mon, Mar 27, 2017 at 4:24 PM, Nadun De Silva 
>> wrote:
>>
>>> Hi,
>>>
>>> I have prepared a proposal and I have shared it with WSO2 via the
>>> GSoC web portal.
>>>
>>> In the proposal, I have not gone into detail about the design and
>>> implementation of the "combination of documentation" part 

Re: [Dev] Issue with SSO login when re-starting the IOTs server and trying to logging in from a private window

2017-05-05 Thread Malithi Edirisinghe
This kind of a behavior was visible while authenticating to IS dashboard
application because it sends that param. IIRC this is not observable with
SPs configured in IS. What's the exact flow here. Is this exactly the
authentication endpoint in IS that you are talking of ?

Thanks,
Malithi

On Fri, May 5, 2017 at 11:34 AM, Megala Uthayakumar  wrote:

> Hi Nuwandi,
>
> There are no error logs in the back-end.
>
> Thanks.
>
>
> On Fri, May 5, 2017 at 11:27 AM, Nuwandi Wickramasinghe  > wrote:
>
>> Hi Megala,
>>
>> Do you see any back end logs in this scenario?
>>
>> thanks
>> Nuwandi
>>
>> On Fri, May 5, 2017 at 10:48 AM, Megala Uthayakumar 
>> wrote:
>>
>>> Please note this can also be re-producible when we run j-meter scripts
>>> for logging in.
>>>
>>> Thanks.
>>>
>>> On Fri, May 5, 2017 at 10:41 AM, Megala Uthayakumar 
>>> wrote:
>>>
 Hi IS Team,

 We are experiencing an issue [1] when logging in to IOTs server in
 private window, after re-starting the server. The issue happens due to
 SSO-redirection, it redirects to the login page url with a jsession id
 getting appended to it [2]. This only happens once for each re-start. As
 per the offline-chat with Nuwandi seems like this was reported previously
 as well. Is this issue fixed? If not, can we get this fixed for our IOTs
 3.1.0 release which is scheduled to be released within 2 weeks.

 [1] https://github.com/wso2/product-iots/issues/402
 [2] https://cloud.githubusercontent.com/assets/4003116/25698
 762/ca55719a-30dd-11e7-983f-c0c1731799da.png

 Thanks.

 Regards,
 Megala
 --
 Megala Uthayakumar

 Software Engineer
 Mobile : 0779967122

>>>
>>>
>>>
>>> --
>>> Megala Uthayakumar
>>>
>>> Software Engineer
>>> Mobile : 0779967122
>>>
>>
>>
>>
>> --
>>
>> Best Regards,
>>
>> Nuwandi Wickramasinghe
>>
>> Software Engineer
>>
>> WSO2 Inc.
>>
>> Web : http://wso2.com
>>
>> Mobile : 0719214873
>>
>
>
>
> --
> Megala Uthayakumar
>
> Software Engineer
> Mobile : 0779967122
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 

*Malithi Edirisinghe*
Associate Technical Lead
WSO2 Inc.

Mobile : +94 (0) 718176807
malit...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] JPA in a custom connector

2017-05-05 Thread Thomas LEGRAND
Hello,

That seems to be OK :)

osgi> p org.apache.openjpa.persistence
org.apache.openjpa.persistence; version="0.0.0"
org.apache.openjpa.persistence; version="2.3.0"
  compass_2.0.1.wso2v2 [54] imports
  tomcat_7.0.75.wso2v1 [627] imports
osgi> ss openjpa
"Framework is launched."


id  State   Bundle
132 ACTIVE  openjpa_all_2.4.2_1.0.0
osgi>

So, I deployed my little JPA project and I can see that my package is
"registered":

osgi> p my.little.project.jpa
my.little.project.jpa; version="1.0.0"
  synapse-core_2.1.7.wso2v13 [619] imports
osgi>

So I tried to invoke my class to retrieve an EntityManager and now, I have:

javax.persistence.PersistenceException: Failed to load provider from
META-INF/services

I think that it is because the services/ directory in the META-INF in the
openjpa bundle is not parsed and I don't know what to do because this is
not me who generate the OSGi bundle but the ESB at startup.

Do you have an idea?

Regards,

Thomas


2017-05-04 20:37 GMT+02:00 KasunG Gajasinghe :

>
> I do not think openjpa register any osgi services. Can you check whether
> the package is exposed? Also verify the status of the openjpa bundle.
>
> osgi> p org.apache.openjpa.persistence
> osgi> ss openjpa
>
> On Thu, May 4, 2017 at 7:01 PM, Thomas LEGRAND <
> thomas.legr...@versusmind.eu> wrote:
>
>> Hello again :)
>>
>> I retrieved the openjpa-all-2.4.2.jar file and dropped it in the 
>> /lib
>> directory to let the runtime taking care of the bundle generation during
>> the startup. The effect was the generation of the file
>> openjpa_all_2.4.2_1.0.0.jar in the directory /dropins.
>>
>> I restarted the EI with:
>>
>>  D:\ProjetESB\wso2ei-6.0.0\bin> .\integrator.bat -DosgiConsole=19444
>>
>> So I can connect to the OSGI  console via telnet. But, when I try to
>> retrieve the objectclasses starting with org.apache.openjpa.*, I have
>> nothing :(
>>
>> osgi> services (objectclass=org.apache.openjpa.*)
>> "No registered services."
>>
>> Am I missing something?
>>
>> Regards,
>>
>> Thomas
>>
>> 2017-05-04 10:49 GMT+02:00 KasunG Gajasinghe :
>>
>>> Hi Thomas,
>>>
>>> Well, the connector itself cannot be deployed as an osgi bundle. But,
>>> you can call classes in osgi bundles from your connector. So, place your
>>> JPA logic in an osgi bundle and add it to dropins/ folder. Then, call that
>>> from your connector.
>>>
>>> This should give you flexibility over your classloading. I cannot
>>> comment on JPA stuff though.
>>>
>>> On Thu, May 4, 2017 at 1:26 PM, Thomas LEGRAND <
>>> thomas.legr...@versusmind.eu> wrote:
>>>
 Hello KasunG,

 I forgot to mention that I am using wso2ei-6.0.0.

 During the build of my connector, I noticed that a .jar is created with
 the .zip for the connector so I tried to deploy it. Actually, I tried the
 following directories and my sequence does not find any of the components
 like if my connector was not deployed :
 - /repository/components/dropins (this directory did
 not exist so I created it)
 - /dropins

 In addition, I don't find anything in the documentation mentioning that
 we can deploy connectors as an OSGi bundle :(

 When I deploy the .zip of the connector via the interface, it is
 deployed in /repository/deployment/server/synapse-libs
 which is the same directory used by Synapse:
 http://synapse.apache.org/userguide/template_library.html

 Concerning the "architecture" of my component, I deployed a .zip with a
 META-INF directory containing the persistence.xml but I don't think it is
 used like the absence of mention in the Synaspe documentation above. :)
 Then, I call OpenJPA with the following lines:

 EntityManagerFactory emf = Persistence.createEntityManage
 rFactory("my-pu");
 EntityManager mgr = emf.createEntityManager();

 But then, I have the exception.

 I made a topic on StackOverflow one or two weeks ago:
 https://stackoverflow.com/questions/43538743/wso2-is-there-a
 -way-to-use-jpa-in-a-custom-connector

 I you know a documentation to generate an OSGi bundle for a connector,
 I am very interested. :)

 Regards,

 Thomas

 2017-05-03 18:29 GMT+02:00 KasunG Gajasinghe :

> You are working in an OSGi environment, so you need to be thinking
> from the osgi classloading perspective. Each osgi bundle under
> repository/components/{plugins,dropins} has its own classloader and a
> classpath.
>
> Hence, the place you put your persistence.xml is important. I'm not
> sure how you call OpenJPA, so I cannot comment on what steps to follow. 
> But
> in essence, re-build your connector as an osgi bundle (its just a jar with
> a set of manifest entries in MANIFEST.MF), and place it in
> repository/components/dropins. I have not tested this myself though.
>
> Regards,
> KasunG
>

Re: [Dev] Clarification on 'Use tenant domain in local subject identifier' attribute

2017-05-05 Thread Isura Karunaratne
Hi,

On Fri, May 5, 2017 at 10:59 AM, Hasanthi Purnima Dissanayake <
hasan...@wso2.com> wrote:

> Hi All,
>
> There are few jiras [1],[2],[3],[4] reported related to the above
> attribute and thought of discussing the expected behavior of this attribute.
>
> AFAIU if the above attribute is checked in both federated and local
> scenarios:
> -  the tenant domain should append with the sub claim even when the
> username is added as a requested claim or username is set as the subject
> claim uri.
>
> If the above attribute is unchecked :
> - The tenant domain should not append with the sub claim even when the
> user name is subject claim uri or a requested claim.
>

> [1] https://wso2.org/jira/browse/IDENTITY-5013
> [2] https://wso2.org/jira/browse/IDENTITY-4931
> [3]https://wso2.org/jira/browse/IDENTITY-4956
> [4]https://wso2.org/jira/browse/IDENTITY-4470
>
> Please let me know if the behavior of this attribute is something
> different.
>
Yes. That is the behavior of 'Use tenant domain in local subject
identifier" attribute.

Thanks
Isura.

>
>
> Thanks,
>
> Hasanthi Dissanayake
>
> Software Engineer | WSO2
>
> E: hasan...@wso2.com
> M :0718407133| http://wso2.com 
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 

*Isura Dilhara Karunaratne*
Senior Software Engineer | WSO2
Email: is...@wso2.com
Mob : +94 772 254 810
Blog : http://isurad.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Environments Support for WSO2 API Manager

2017-05-05 Thread Ravindu Perera
Hi

Thanks a lot for selecting me for Google summer of codes 2017 , and also
helping me to create an good proposal . I will work hard and keep the trust
that you all have kept on me  .

Thank you
Ravindu Perera

On Mon, Apr 3, 2017 at 4:44 PM, Ravindu Perera 
wrote:

> Hi
>
> I successfully submitted my proposal , and thank you all for helping me
> and providing me support and guidance as well as Providing information on
> project which helped me a lot in writing my proposal and once again thank
> you .
>
> I will continue my work on Environment Support for WSO2 API Manager ,
> Implementation and designing parts , If i have any doubts i will contact
> you all via the mailing list .
>
> Thank you
> Ravindu Perera
>
> On Thu, Mar 23, 2017 at 10:21 PM, Ravindu Perera <
> ravindu.2014...@iit.ac.lk> wrote:
>
>> Hi
>> This was about the the problem which was mentioned about the
>> authentication should be done after switching from one environment to
>> another as i did a small research and found out a solution , For example if
>> we need to move from Dev environment to production environment an
>> authentication should be done because the same auth token cannot be used.
>> instead of logging again when the user logs in to one environment initially
>> in the authentication stage we can have a built-in method which will
>> generate token to other environments as well so , then by using the tokens
>> generated without redirecting a login can directly access the other
>> environments.
>>
>> This is one solution that i found after doing a small research , so the
>> solution will help to overcome the problem , but i just gave an idea but
>> there may be better solutions .
>>
>> Thank you
>> Regards
>> Ravindu
>>
>>
>> On Wed, Mar 22, 2017 at 1:08 AM, Ravindu Perera <
>> ravindu.2014...@iit.ac.lk> wrote:
>>
>>> Hi
>>> I wrote a blog post on how to build WSO2 API Manager from code base step
>>> by step , and more blog post coming up about UUF-Framework and working with
>>> it . I also went through Swagger js as well , and i forked the code from
>>> GitHub and working on coding part in-order to get familiarized with coding
>>> and coding standards as well.
>>>
>>> blog post link :-http://ravinduperer.blogspot
>>> .com/2017/03/wso2-building-api-manager-from-codebase.html.
>>>
>>> Thank you.
>>>
>>> On Mon, Mar 20, 2017 at 9:21 PM, Ravindu Perera <
>>> ravindu.2014...@iit.ac.lk> wrote:
>>>
 Thanks a lot Mr Nuwan Dias

 The information provide was really helpful to understand the overall
 requirement and the architecture of the project , and with these
 information that was provide i am focusing on frameworks for creating the
 user-interface which UUF-Framework and also the Swagger-JS client library
 to call REST APIs.

 And Once again thank you.

 On Mon, Mar 20, 2017 at 2:00 PM, Nuwan Dias  wrote:

> Hi Ravindu,
>
> The below diagram might help you to understand this better.
>
> [image: Inline image 2]
>
> The API Manager UI is built following a Single Page Application
> architecture. Which means the UI rendering code runs mostly on the client
> (web browser). The data is fetched to the client using Rest APIs which
> reside on the "Core". This single page application is hosted on server. In
> this particular project, what we're trying to do is to make the UI app
> (SPA) aware of "Cores" residing in different environments. So that when
> someone switches environments, the client (browser) connects to the Rest
> API in the respective environment to fetch data.
>
> So what really changes when you switch environments is the data. For
> example, in you dev environment if you have 5 APIs and your prod
> environment you just have two APIs. When you switch from dev to prod, the 
> 5
> dev APIs should vanish and the 2 prod APIs should appear on your page. The
> surrounding layout, style, colors and stuff would remain the same since
> they're being served from a single app (SPA), its just the data that
> changes since those are being served by Rest APIs in respective
> environments.
>
> Thanks,
> NuwanD.
>
> On Sat, Mar 18, 2017 at 5:47 AM, Ravindu Perera <
> ravindu.2014...@iit.ac.lk> wrote:
>
>> Hi
>>
>> I have an question regarding the UI about what are the changes that
>> should be made when the API Manager changes its Environment.
>>
>> Eg:- lets say i have Dev server and then it switches to a production
>> server what are the UI changes that should actually occur when the
>> switching between Environments and where should it change can you all
>> provide a bit more information because this will help me to understand 
>> the
>> project more deeply
>>
>> Thank you
>> Ravindu.
>>
>>
>> On Fri, Mar 17, 2017 at 12:00 AM, Ravindu Perera <
>> 

Re: [Dev] Please review and merge

2017-05-05 Thread Ishara Karunarathna
Hi connector team,

Can we get this merged ?

-Ishara

On Fri, May 5, 2017 at 10:11 AM, Hasanthi Purnima Dissanayake <
hasan...@wso2.com> wrote:

> Hi Kathees
>
> Fixed the comments.
>
> Thanks,
>
> Hasanthi Dissanayake
>
> Software Engineer | WSO2
>
> E: hasan...@wso2.com
> M :0718407133| http://wso2.com 
>
> On Fri, May 5, 2017 at 9:45 AM, Kathees Rajendram 
> wrote:
>
>> Thanks Hasanthi for your fix.
>>
>> Please fix those comments in the PR.
>>
>> Thanks,
>> Kathees
>>
>> On Thu, May 4, 2017 at 3:16 PM, Hasanthi Purnima Dissanayake <
>> hasan...@wso2.com> wrote:
>>
>>> Hi connector team,
>>> Please review and merge [1] which fixes [2].
>>> [1]https://github.com/wso2-extensions/identity-oauth2-grant-jwt/pull/14
>>> [2]https://wso2.org/jira/browse/IDENTITY-5888
>>>
>>> Thanks,
>>>
>>> Hasanthi Dissanayake
>>>
>>> Software Engineer | WSO2
>>>
>>> E: hasan...@wso2.com
>>> M :0718407133| http://wso2.com 
>>>
>>
>>
>>
>> --
>> Kathees
>> Software Engineer,
>> email: kath...@wso2.com
>> mobile: +94772596173 <+94%2077%20259%206173>
>>
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Ishara Karunarathna
Associate Technical Lead
WSO2 Inc. - lean . enterprise . middleware |  wso2.com

email: isha...@wso2.com,   blog: isharaaruna.blogspot.com,   mobile:
+94717996791
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Tool to Analyze Performance of MB 4 Message Store

2017-05-05 Thread Firzhan Naqash
Hi Malaka,

Will you be considering to check the performance against level DB as well?
Since it's a flat file based DB system, I believe that we can use it to
achieve significant performance gain.

On May 5, 2017 8:36 AM, "Malaka Gangananda"  wrote:

> Hi All,
>
> Adding reference for JMH : http://java-performance.info/jmh/
>
> Thanks,
>
> On Fri, May 5, 2017 at 11:23 AM, Malaka Gangananda 
> wrote:
>
>> Hi All,
>>
>> I am implementing message store for MB4 while doing that I am developing
>> a tool to analyze and compare performance of message store functionalities
>> when different database instances are being used with MB. Also this tool
>> will have the capability to evolve  with message store and evaluate new
>> functionalities of message store.To generate the benchmarks I have used JMH.
>>
>> Thnks.
>> --
>> Malaka.
>> --
>> Malaka Gangananda - Software Engineer | WSO2
>> Email : mala...@wso2.com
>> Mobile : +94713564340 <+94%2071%20356%204340>
>> Web : http://wso2.com
>>   
>>
>
>
>
> --
> Malaka.
> --
> Malaka Gangananda - Software Engineer | WSO2
> Email : mala...@wso2.com
> Mobile : +94713564340 <+94%2071%20356%204340>
> Web : http://wso2.com
>   
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Tool to Analyze Performance of MB 4 Message Store

2017-05-05 Thread Malaka Gangananda
Hi All,

Adding reference for JMH : http://java-performance.info/jmh/

Thanks,

On Fri, May 5, 2017 at 11:23 AM, Malaka Gangananda  wrote:

> Hi All,
>
> I am implementing message store for MB4 while doing that I am developing a
> tool to analyze and compare performance of message store functionalities
> when different database instances are being used with MB. Also this tool
> will have the capability to evolve  with message store and evaluate new
> functionalities of message store.To generate the benchmarks I have used JMH.
>
> Thnks.
> --
> Malaka.
> --
> Malaka Gangananda - Software Engineer | WSO2
> Email : mala...@wso2.com
> Mobile : +94713564340 <+94%2071%20356%204340>
> Web : http://wso2.com
>   
>



-- 
Malaka.
-- 
Malaka Gangananda - Software Engineer | WSO2
Email : mala...@wso2.com
Mobile : +94713564340
Web : http://wso2.com
  
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Client credential grant type for ID token generation

2017-05-05 Thread Ishara Karunarathna
Hi,

On Fri, May 5, 2017 at 11:42 AM, Isura Karunaratne  wrote:

> Hi all,
>
> On Thu, May 4, 2017 at 3:03 PM, Gayan Gunawardana  wrote:
>
>>
>>
>> On Thu, May 4, 2017 at 2:41 PM, Pushpalanka Jayawardhana 
>> wrote:
>>
>>> Hi All,
>>>
>>> This is in relation to issue [1] which happened when we issue ID_token
>>> for client credentials grant.
>>>
>>> Client credentials grant type is not really a part of OpenID Connect
>>> specification, as it only mentions of authorization code grant flow(Basic
>>> Profile) and implicit grant flow (Implicit profile), and hybrid flow.
>>> This is an additional thing when we issue id_token for client
>>> credentials grant.
>>>
>>> Also this does not make much sense when we issue an ID_token to an
>>> application which is presented in client credentials grant.
>>> In my opinion we should get rid of this, if noone is currently using it.
>>> Appreciate your inputs.
>>>
>> Also OpenID Connect specification does not talk about issuing ID_token
>> for password grant type as well. Apart from specification POV issuing
>> ID_token for password grant type is not logically wrong.
>> Issuing ID_token for client credentials grant type is logically wrong
>> hence +1 to remove the functionality.
>>
> Yes. +1 to remove ID token for client credentials grant type.
>
> +1
Since there is no user authentication, this is logically wrong. so better
to fix this with removing ID token. But in the password grant type even its
not there in the spec still there are usecases with this to let keep it and
fix related issues.

-Ishara

>
> Thanks
> Isura.
>
>>
>>> [1] - https://wso2.org/jira/browse/IDENTITY-4915
>>>
>>> Thanks,
>>> --
>>> Pushpalanka.
>>> --
>>> Pushpalanka Jayawardhana, B.Sc.Eng.(Hons).
>>> Senior Software Engineer, WSO2 Lanka (pvt) Ltd;  wso2.com/
>>> Mobile: +94779716248
>>> Blog: pushpalankajaya.blogspot.com/ | LinkedIn: lk.linkedin.com/in/p
>>> ushpalanka/ | Twitter: @pushpalanka
>>>
>>>
>>
>>
>> --
>> Gayan Gunawardana
>> Software Engineer; WSO2 Inc.; http://wso2.com/
>> Email: ga...@wso2.com
>> Mobile: +94 (71) 8020933
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
>
> *Isura Dilhara Karunaratne*
> Senior Software Engineer | WSO2
> Email: is...@wso2.com
> Mob : +94 772 254 810 <+94%2077%20225%204810>
> Blog : http://isurad.blogspot.com/
>
>
>
>


-- 
Ishara Karunarathna
Associate Technical Lead
WSO2 Inc. - lean . enterprise . middleware |  wso2.com

email: isha...@wso2.com,   blog: isharaaruna.blogspot.com,   mobile:
+94717996791
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Client credential grant type for ID token generation

2017-05-05 Thread Isura Karunaratne
Hi all,

On Thu, May 4, 2017 at 3:03 PM, Gayan Gunawardana  wrote:

>
>
> On Thu, May 4, 2017 at 2:41 PM, Pushpalanka Jayawardhana 
> wrote:
>
>> Hi All,
>>
>> This is in relation to issue [1] which happened when we issue ID_token
>> for client credentials grant.
>>
>> Client credentials grant type is not really a part of OpenID Connect
>> specification, as it only mentions of authorization code grant flow(Basic
>> Profile) and implicit grant flow (Implicit profile), and hybrid flow.
>> This is an additional thing when we issue id_token for client credentials
>> grant.
>>
>> Also this does not make much sense when we issue an ID_token to an
>> application which is presented in client credentials grant.
>> In my opinion we should get rid of this, if noone is currently using it.
>> Appreciate your inputs.
>>
> Also OpenID Connect specification does not talk about issuing ID_token for
> password grant type as well. Apart from specification POV issuing ID_token
> for password grant type is not logically wrong.
> Issuing ID_token for client credentials grant type is logically wrong
> hence +1 to remove the functionality.
>
Yes. +1 to remove ID token for client credentials grant type.


Thanks
Isura.

>
>> [1] - https://wso2.org/jira/browse/IDENTITY-4915
>>
>> Thanks,
>> --
>> Pushpalanka.
>> --
>> Pushpalanka Jayawardhana, B.Sc.Eng.(Hons).
>> Senior Software Engineer, WSO2 Lanka (pvt) Ltd;  wso2.com/
>> Mobile: +94779716248
>> Blog: pushpalankajaya.blogspot.com/ | LinkedIn: lk.linkedin.com/in/p
>> ushpalanka/ | Twitter: @pushpalanka
>>
>>
>
>
> --
> Gayan Gunawardana
> Software Engineer; WSO2 Inc.; http://wso2.com/
> Email: ga...@wso2.com
> Mobile: +94 (71) 8020933
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 

*Isura Dilhara Karunaratne*
Senior Software Engineer | WSO2
Email: is...@wso2.com
Mob : +94 772 254 810
Blog : http://isurad.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [Dashboard] Sharing a dashboard in UUF Dashboard Component

2017-05-05 Thread Lasantha Samarakoon
[Dashboard] Sharing a dashboard

Hi all,

I am currently working on dashboard sharing feature in UUF dashboard
component which will allow a user to share a dashboard with current state
(i.e. selected field values, chart drill-downs, etc.). To implement this we
need to maintain the state of each widget somewhere and retrieve those on
dashboard restoring process. The same feature has been implemented in the
previous dashboard version and it worked as follows.

In the dashboard 2.0.0 the gadget state is persisted in the URL hash. The
dashboard exposes a client side API[1] for gadgets to persist and retrieve
data in URL hash.

*APIs:*

 wso2.gadgets.state.setGadgetState(state, callback);

wso2.gadgets.state.getGadgetState(callback);

wso2.gadgets.state.getGlobalState(callback);

wso2.gadgets.state.setGlobalState(key, state, callback);

Once the states are saved the URL will looks like;


https://dashboard.example.com/portal/dashboard/my-dashboard#/gadget-a/{data
of gadget-a}/gadget-b/{data of gadget-b

One of the main advantage of this approach is that a user can simply copy
the URL and share. If the permission has been granted others can view the
dashboard with exact state.

In addition to the above approach there was another approach has come up in
our discussions to implement this feature, i.e. using the database as a
persistence medium for widget states.

*Using database as persistence medium:*

In this approach we need to introduce a new button to save the current
state of the dashboard in the database and provide a sharable link to
restore (somewhat similar to how the Google docs works). The sharable link
will looks like;

https://dashboard.example.com/portal/shared/

The  in the above URL can be used to fetch the state with other
meta-info from the database and restore the dashboard. Drawbacks of this
approach are as follows.

   1. User has to perform an extra action to get the sharable link.
   2. Database will persist data for each share, so sometimes purging will
   be needed.

Appreciate your comments on above to finalize the approach we are going to
use on UUF dashboard component.

[1]
https://github.com/wso2/carbon-dashboards/blob/2.0.x/components/shindig-wso2-features/src/main/javascript/wso2features/state/state.js


Thanks,

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


Re: [Dev] Issue with SSO login when re-starting the IOTs server and trying to logging in from a private window

2017-05-05 Thread Megala Uthayakumar
Hi Nuwandi,

There are no error logs in the back-end.

Thanks.


On Fri, May 5, 2017 at 11:27 AM, Nuwandi Wickramasinghe 
wrote:

> Hi Megala,
>
> Do you see any back end logs in this scenario?
>
> thanks
> Nuwandi
>
> On Fri, May 5, 2017 at 10:48 AM, Megala Uthayakumar 
> wrote:
>
>> Please note this can also be re-producible when we run j-meter scripts
>> for logging in.
>>
>> Thanks.
>>
>> On Fri, May 5, 2017 at 10:41 AM, Megala Uthayakumar 
>> wrote:
>>
>>> Hi IS Team,
>>>
>>> We are experiencing an issue [1] when logging in to IOTs server in
>>> private window, after re-starting the server. The issue happens due to
>>> SSO-redirection, it redirects to the login page url with a jsession id
>>> getting appended to it [2]. This only happens once for each re-start. As
>>> per the offline-chat with Nuwandi seems like this was reported previously
>>> as well. Is this issue fixed? If not, can we get this fixed for our IOTs
>>> 3.1.0 release which is scheduled to be released within 2 weeks.
>>>
>>> [1] https://github.com/wso2/product-iots/issues/402
>>> [2] https://cloud.githubusercontent.com/assets/4003116/25698
>>> 762/ca55719a-30dd-11e7-983f-c0c1731799da.png
>>>
>>> Thanks.
>>>
>>> Regards,
>>> Megala
>>> --
>>> Megala Uthayakumar
>>>
>>> Software Engineer
>>> Mobile : 0779967122
>>>
>>
>>
>>
>> --
>> Megala Uthayakumar
>>
>> Software Engineer
>> Mobile : 0779967122
>>
>
>
>
> --
>
> Best Regards,
>
> Nuwandi Wickramasinghe
>
> Software Engineer
>
> WSO2 Inc.
>
> Web : http://wso2.com
>
> Mobile : 0719214873
>



-- 
Megala Uthayakumar

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