Re: [Dev] WSO2 APIM : can you submit a set of instructions for configuring the AppAuth Demo App for Android to interact with WSO2 APIM authorization endpoints?

2017-09-08 Thread Youcef HILEM
Hi,
Yes, I know the solution is ok
(https://stackoverflow.com/questions/39835616/wso2-oauth2-how-to-logout-with-appauth-ios).
But it is better with an official documentation of the Editor.
Thanks,
Youcef HILEM



--
Sent from: http://wso2-oxygen-tank.10903.n7.nabble.com/WSO2-Development-f3.html
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2 APIM : can you submit a set of instructions for configuring the AppAuth Demo App for Android to interact with WSO2 APIM authorization endpoints?

2017-09-08 Thread Harsha Kumara
Hi Youcef,

I don't think we have any specific documentation on this, You may find
http://shenavid.blogspot.com/2016/05/authorization-code-grant-type-with-wso2.html
as a useful resource.

Thanks,
Harsha

On Fri, Sep 8, 2017 at 11:44 PM, Youcef HILEM 
wrote:

> Hi,
> I would like an answer.
>
> Thanks in advance.
>
> Youcef HILEM
>
>
>
> --
> Sent from: http://wso2-oxygen-tank.10903.n7.nabble.com/WSO2-
> Development-f3.html
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>



-- 
Harsha Kumara
Software Engineer, WSO2 Inc.
Mobile: +94775505618
Blog:harshcreationz.blogspot.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2 APIM : can you submit a set of instructions for configuring the AppAuth Demo App for Android to interact with WSO2 APIM authorization endpoints?

2017-09-08 Thread Youcef HILEM
Hi,
I would like an answer.

Thanks in advance.

Youcef HILEM



--
Sent from: http://wso2-oxygen-tank.10903.n7.nabble.com/WSO2-Development-f3.html
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] WSO2 Enterprise Integrator 6.2.0-M4 Released!

2017-09-08 Thread Manorama Perera
The WSO2 Integration team is pleased to announce the release of Enterprise
Integrator 6.2.0 Milestone 4.
Source & binary distribution files of the WSO2 Enterprise Integrator 6.2.0-
M4 is available for download from the following location.

https://github.com/wso2/product-ei/releases/tag/v6.2.0-m4

*Tasks/Bug Fixes and Improvements*

WSO2 Jira - Fixed Issues 
Product EI - Github fixed issues

*List of Open Issues*

WSO2 Jira - Open Issues 
WSO2 EI Github - Open Issues


*Mailing Lists*
Join our mailing list and correspond with the developers directly.
Developer List: dev@wso2.org | Subscribe | Mail Archive
User Forum: StackOverflow

*Reporting Issues*

We encourage you to report issues, improvements and feature requests
regarding WSO2 Integrator through WSO2 EI GIT Issues.

~ The WSO2 Integration Team ~

-- 
Manorama Perera
Software Engineer
WSO2, Inc.;  http://wso2.com/
___
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-09-08 Thread Sriskandarajah Suhothayan
Congrats Nadun for the great work done !!
Hope you continue your contribution and become a committer :)

Thanks
Suho

On Fri, Sep 8, 2017 at 5:58 PM, Nirmal Fernando  wrote:

> Congratulations Nadun and thanks for all the hard work!
>
> On Thu, Sep 7, 2017 at 10:08 PM, Nadun De Silva 
> wrote:
>
>> Hi,
>>
>> I would like to use this email to thank Suho, Nirmal and everyone who
>> helped me to make this project a success in GSoC 2017.
>>
>> I was able to gain a lot of experience through this project and was able
>> to learn many new things. The project had been a great experience for me
>> and I would like to thank everyone for making it so.
>>
>> I have included with this email the link to the GSoC summary submitted
>> which could be helpful in using this plugin. [1]
>>
>> Please feel free to let me know if there are issues with the plugin. I
>> would be more than happy to contribute further.
>>
>> Thank you again for the great experience in working on this project for
>> GSoC 2017!
>>
>> Thank you!
>>
>> [1] https://gist.github.com/nadundesilva/abeac5279468c8c5f37fbd0f8c2d2091
>>
>> Regards,
>> Nadun De Silva
>>
>> On Tue, Aug 22, 2017 at 8:13 PM, Nadun De Silva 
>> wrote:
>>
>>> Hi,
>>>
>>> Thank you for the feedback!
>>>
>>> Regards,
>>> Nadun De Silva
>>>
>>> On Tue, Aug 22, 2017 at 8:08 PM, Sriskandarajah Suhothayan <
>>> s...@wso2.com> wrote:
>>>
 +1 looks good

 On Tue, Aug 22, 2017 at 8:04 PM, Nadun De Silva 
 wrote:

> Hi,
>
> Please note that the links that are created under the predefined
> headings in the README.md using the previous bug fix will not work until
> the GitHub pages are deployed as well.
>
> *I have prepared a GitHub Gist [1] containing information about this
> project. I was thinking of submitting the same in the final evaluation as
> well. Hope this is sufficient. Any suggestions to improve it are highly
> appreciated.*
>
> Moreover, I have updated the documentation I created previously in a
> google doc [2] as well.
>
> [1] https://gist.github.com/nadundesilva/abeac5279468c8c5f37
> fbd0f8c2d2091
> [2] https://docs.google.com/document/d/1uf8crLE73_RQL3_1Sp4V
> BMyDT0AFcH2h9SXF_JTf1l0/edit?usp=sharing
>
> Thank you!
>
> Regards,
> Nadun De Silva
>
> On Mon, Aug 21, 2017 at 11:39 PM, Sriskandarajah Suhothayan <
> s...@wso2.com> wrote:
>
>> Thanks for the improvement.
>>
>> Suho
>>
>> On Mon, Aug 21, 2017 at 8:14 PM, Nadun De Silva 
>> wrote:
>>
>>> Hi,
>>>
>>> I have made the necessary changes to update the README.md as well as
>>> the documentation home page using the relevant headings as mentioned.
>>>
>>> Please find the changes in the PR I created. [1]
>>>
>>> This includes the following changes.
>>>
>>>- Updating the README.md file if the following headings are
>>>found. (The same changes that were done to the home page of the
>>>documentation based on the home page template)
>>>   - ## Features
>>>   - ## Latest API Docs
>>>- Committing and pushing to GitHub the changes made to the
>>>README.md file when *release:prepare* goal is run.
>>>
>>> [1] https://github.com/wso2/siddhi/pull/493
>>>
>>> Thank you!
>>>
>>> Regards,
>>> Nadun De Silva
>>>
>>> On Fri, Aug 18, 2017 at 12:11 PM, Chathurika Amarathunga <
>>> chathuri...@wso2.com> wrote:
>>>
 Hi Nadun,

 Currently, It is updated the descriptions under "Feature" & "latest
 API docs"  headings only in site when we prepare the 'README.md' as you
 mentioned. It is not updated the description in the 'README.md' under 
 those
 headings. Could you please, make it updated on both 'Index.md' and
 'README.md' files.

 Thank you.

 Regards,
 Chathurika Amarathunga.

 --
 *Chathurika Amarathunga*
 Software Engineer - WSO2

 Email: chathuri...@wso2.com
 Mobile: +94783886224 <078%20388%206224>
 

>>>
>>>
>>>
>>> --
>>>
>>> [image: profile_pic.jpg]
>>>
>>> Nadun De Silva
>>>
>>> Undergraduate of Computer Science and Engineering
>>>
>>> University of Moratuwa
>>>
>>> [image: GitHub.png]  [image:
>>> LinkedIn.png]  [image:
>>> Facebook.png] 
>>>
>>> Mobile:
>>>
>>> (+94) 77 8 222 607
>>>
>>> Email:
>>>
>>> nadun...@gmail.com
>>>
>>
>>
>>
>> --
>>
>> *S. Suhothayan*
>> Associate Director / Architect
>> *WSO2 Inc. 

[Dev] DB2 script have some issues

2017-09-08 Thread Nilasini Thirunavukkarasu
Hi,

I have tried to configure DB2 as the database with IS 5.4.0-Alpha2. When I
try to execute identity DB2 scripts, I came across the following errors. I
have attached the corrected scripts here with. Created the following jira
to track this [1].

1)
CREATE TABLE IDN_RECOVERY_DATA (
  ...
  *TENANT_ID INTEGER DEFAULT -1,*
 ...
  REMAINING_SETS VARCHAR(2500) *DEFAULT NULL)*,
  PRIMARY KEY(USER_NAME, USER_DOMAIN, TENANT_ID, SCENARIO,STEP),
  UNIQUE(CODE)

Errors:-
1. The column named "TENANT_ID" cannot be a column of a primary key or
unique key constraint because it can contain null values.
2. Mistakenly used DEFAULT NULL. Syntax error is here. Either it should be
"WITH DEFAULT NULL" or no need to specify the default value as null because
implicitly it will be NULL anyhow.
3. Closing bracket was misplaced.

2)
CREATE TABLE :- IDN_PASSWORD_HISTORY_DATA
Error:- The columns named "TENANT_ID" and "SALT_VALUE" cannot be a column
of a primary key or unique key constraint because it can contain null
values.

3)
CREATE TABLE :- IDN_CLAIM
Error:- The column named "DIALACT_ID" cannot be a column of a primary key
or unique key constraint because it can contain null values.

4)
CREATE TABLE :-IDN_CLAIM_MAPPED_ATTRIBUTE
Error:- The column named LOCAL_CLAIM_ID cannot be a column of a primary key
or unique key constraint because it can contain null values.

5)
CREATE TABLE :-IDN_CLAIM_PROPERTY
Error:- The column named LOCAL_CLAIM_ID cannot be a column of a primary key
or unique key constraint because it can contain null values.

6)
CREATE TABLE IDN_SAML2_ASSERTION_*STORE (*
  ID INTEGER NOT NULL,
  SAML2_ID  VARCHAR(255) ,
  SAML2_ISSUER  VARCHAR(255) ,
  SAML2_SUBJECT  VARCHAR(255) ,
  SAML2_SESSION_INDEX  VARCHAR(255) ,
  SAML2_AUTHN_CONTEXT_CLASS_REF  VARCHAR(255) ,
  SAML2_ASSERTION  VARCHAR(4096) ,
  *PRIMARY KEY (ID)*

Error:- Closing bracket was missed

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



Thanks,
Nila.

-- 
Nilasini Thirunavukkarasu
Software Engineer - WSO2

Email : nilas...@wso2.com
Mobile : +94775241823 <+94%2077%20524%201823>
Web : http://wso2.com/





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


Re: [Dev] NULL as default value in DB2

2017-09-08 Thread Nilasini Thirunavukkarasu
Thanks Hasanthi for the detail explanation.



Thanks,
T.Nila.

On Fri, Sep 8, 2017 at 6:38 PM, Hasanthi Purnima Dissanayake <
hasan...@wso2.com> wrote:

> Hi Nilasini,
>
> The IBM documentations states below when we don't define any default value
> after the column name [1] .
>
> "Omission of NOT NULL and DEFAULT from a column-definition, for a column
> other than an identity column, is an implicit specification of DEFAULT
> NULL. For an identity column, it is an implicit specification of NOT NULL,
> and DB2 generates default values."
>
> So in your case as *'REMAINING_SETS' *is not a primary key column then,
> if we don't define anything it will take 'Null' as the default value. But
> if you don't define a default value for a primary key column, then the
> default value will be NOT NULL.
>
> [1] https://www.ibm.com/support/knowledgecenter/en/SSEPEK_10.
> 0.0/sqlref/src/tpc/db2z_sql_createtable.html
>
> Thanks,
>
>
> Hasanthi Dissanayake
>
> Software Engineer | WSO2
>
> E: hasan...@wso2.com
> M :0718407133| http://wso2.com 
>
> On Fri, Sep 8, 2017 at 5:56 PM, Nilasini Thirunavukkarasu <
> nilas...@wso2.com> wrote:
>
>> Hi,
>>
>> In DB2 if we want to set default value as null for a column, do we need
>> to specify it explicitly?. According to the following[1] blog we don't need
>> to specify the NULL as default since it will implicitly take the default
>> value as NULL if we didn't specify it.
>>
>> For the following script do we need to specify the default value as null
>> for the column *REMAINING_SETS?*
>>
>> CREATE TABLE IDN_RECOVERY_DATA (
>>   USER_NAME VARCHAR(255) NOT NULL,
>>   USER_DOMAIN VARCHAR(127) NOT NULL,
>>   TENANT_ID INTEGER DEFAULT -1 NOT NULL,
>>   CODE VARCHAR(255) NOT NULL,
>>   SCENARIO VARCHAR(255) NOT NULL,
>>   STEP VARCHAR(127) NOT NULL,
>>   TIME_CREATED TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
>> *  REMAINING_SETS VARCHAR(2500) WITH DEFAULT NULL,*
>>   PRIMARY KEY(USER_NAME, USER_DOMAIN, TENANT_ID, SCENARIO,STEP),
>>   UNIQUE(CODE))
>>
>> [1] https://www.datavail.com/blog/using-nulls-db2/
>>
>> --
>> Nilasini Thirunavukkarasu
>> Software Engineer - WSO2
>>
>> Email : nilas...@wso2.com
>> Mobile : +94775241823 <+94%2077%20524%201823>
>> Web : http://wso2.com/
>>
>>
>> 
>>
>
>


-- 
Nilasini Thirunavukkarasu
Software Engineer - WSO2

Email : nilas...@wso2.com
Mobile : +94775241823
Web : http://wso2.com/



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


Re: [Dev] NULL as default value in DB2

2017-09-08 Thread Hasanthi Purnima Dissanayake
Hi Nilasini,

The IBM documentations states below when we don't define any default value
after the column name [1] .

"Omission of NOT NULL and DEFAULT from a column-definition, for a column
other than an identity column, is an implicit specification of DEFAULT
NULL. For an identity column, it is an implicit specification of NOT NULL,
and DB2 generates default values."

So in your case as *'REMAINING_SETS' *is not a primary key column then, if
we don't define anything it will take 'Null' as the default value. But if
you don't define a default value for a primary key column, then the default
value will be NOT NULL.

[1]
https://www.ibm.com/support/knowledgecenter/en/SSEPEK_10.0.0/sqlref/src/tpc/db2z_sql_createtable.html

Thanks,


Hasanthi Dissanayake

Software Engineer | WSO2

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

On Fri, Sep 8, 2017 at 5:56 PM, Nilasini Thirunavukkarasu  wrote:

> Hi,
>
> In DB2 if we want to set default value as null for a column, do we need to
> specify it explicitly?. According to the following[1] blog we don't need to
> specify the NULL as default since it will implicitly take the default value
> as NULL if we didn't specify it.
>
> For the following script do we need to specify the default value as null
> for the column *REMAINING_SETS?*
>
> CREATE TABLE IDN_RECOVERY_DATA (
>   USER_NAME VARCHAR(255) NOT NULL,
>   USER_DOMAIN VARCHAR(127) NOT NULL,
>   TENANT_ID INTEGER DEFAULT -1 NOT NULL,
>   CODE VARCHAR(255) NOT NULL,
>   SCENARIO VARCHAR(255) NOT NULL,
>   STEP VARCHAR(127) NOT NULL,
>   TIME_CREATED TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
> *  REMAINING_SETS VARCHAR(2500) WITH DEFAULT NULL,*
>   PRIMARY KEY(USER_NAME, USER_DOMAIN, TENANT_ID, SCENARIO,STEP),
>   UNIQUE(CODE))
>
> [1] https://www.datavail.com/blog/using-nulls-db2/
>
> --
> Nilasini Thirunavukkarasu
> Software Engineer - WSO2
>
> Email : nilas...@wso2.com
> Mobile : +94775241823 <+94%2077%20524%201823>
> Web : http://wso2.com/
>
>
> 
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] APIM 2.1.1 - The description of API is not well formatted in store.

2017-09-08 Thread Youcef HILEM
Hi,

The description of our API is not well formated in store.


 


Subset of swagger in json :
{
  "swagger": "2.0",
  "info": {
"version": "1.0.0",
"title": "API Qualif Adresse",
"contact": {
  "email": "ld-bscc-service-qualification-adre...@laposte.fr"
},
"description": "**Ce service permet de réaliser des traitements sur une
ou plusieurs adresses et récupérer des informations associées:**\n\n-
adresse existante et associéee à une tournée facteur\n- informations
détaillées de la tournée facteur\n- établissement postal réalisant la
distribution\n- identifiants uniques d'adresses\n- ...\n\n**Engagements de
service**\n\n- Disponibilité : 24h/24 7J/7\n- SLA : 99.5%\n- Plages de 
maintenance : Non\n- Perte de donnée maximale : 15 mins\n- Durée maximale
d'interruption : 4h00\n- Performances : traitement unitaire < 100ms,
traitement fichier : 150 000 adresses/heure\n- Plan de reprise d'activité :
Non\n- Limites d'utilisation par client :  150 000 adresses par fichier, 150
000 adresses par heure\n- Capacité de traitement : 250 000 adresses par
heure\n- Disponibilité : 24h/24 - 7J/7\n\nDonnez votre avis sur le service :
http://bit.ly/APIQADR_votre_avis\n\nVoir les prochaines fonctionnalités :
http://bit.ly/APIQADR_evolutions\n\n**Intégration**\n\nLe fichier swagger
http://ws-apiqa-srec.apps.paas.dev.net-courrier.extra.laposte.fr/swagger/API_qualif_address_swagger.yaml.php
peut être importé dans l'outil de test postman (pour faire des tests
simplemment) ou dans l'éditeur http://editor.swagger.io (pour génération de
code client)\n"
  },
  "host": "ws-apiqa-srec.apps.paas.dev.net-courrier.extra.laposte.fr",
  "basePath": "/address/v1",






--
Sent from: http://wso2-oxygen-tank.10903.n7.nabble.com/WSO2-Development-f3.html
___
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-09-08 Thread Nirmal Fernando
Congratulations Nadun and thanks for all the hard work!

On Thu, Sep 7, 2017 at 10:08 PM, Nadun De Silva  wrote:

> Hi,
>
> I would like to use this email to thank Suho, Nirmal and everyone who
> helped me to make this project a success in GSoC 2017.
>
> I was able to gain a lot of experience through this project and was able
> to learn many new things. The project had been a great experience for me
> and I would like to thank everyone for making it so.
>
> I have included with this email the link to the GSoC summary submitted
> which could be helpful in using this plugin. [1]
>
> Please feel free to let me know if there are issues with the plugin. I
> would be more than happy to contribute further.
>
> Thank you again for the great experience in working on this project for
> GSoC 2017!
>
> Thank you!
>
> [1] https://gist.github.com/nadundesilva/abeac5279468c8c5f37fbd0f8c2d2091
>
> Regards,
> Nadun De Silva
>
> On Tue, Aug 22, 2017 at 8:13 PM, Nadun De Silva 
> wrote:
>
>> Hi,
>>
>> Thank you for the feedback!
>>
>> Regards,
>> Nadun De Silva
>>
>> On Tue, Aug 22, 2017 at 8:08 PM, Sriskandarajah Suhothayan > > wrote:
>>
>>> +1 looks good
>>>
>>> On Tue, Aug 22, 2017 at 8:04 PM, Nadun De Silva 
>>> wrote:
>>>
 Hi,

 Please note that the links that are created under the predefined
 headings in the README.md using the previous bug fix will not work until
 the GitHub pages are deployed as well.

 *I have prepared a GitHub Gist [1] containing information about this
 project. I was thinking of submitting the same in the final evaluation as
 well. Hope this is sufficient. Any suggestions to improve it are highly
 appreciated.*

 Moreover, I have updated the documentation I created previously in a
 google doc [2] as well.

 [1] https://gist.github.com/nadundesilva/abeac5279468c8c5f37
 fbd0f8c2d2091
 [2] https://docs.google.com/document/d/1uf8crLE73_RQL3_1Sp4V
 BMyDT0AFcH2h9SXF_JTf1l0/edit?usp=sharing

 Thank you!

 Regards,
 Nadun De Silva

 On Mon, Aug 21, 2017 at 11:39 PM, Sriskandarajah Suhothayan <
 s...@wso2.com> wrote:

> Thanks for the improvement.
>
> Suho
>
> On Mon, Aug 21, 2017 at 8:14 PM, Nadun De Silva 
> wrote:
>
>> Hi,
>>
>> I have made the necessary changes to update the README.md as well as
>> the documentation home page using the relevant headings as mentioned.
>>
>> Please find the changes in the PR I created. [1]
>>
>> This includes the following changes.
>>
>>- Updating the README.md file if the following headings are
>>found. (The same changes that were done to the home page of the
>>documentation based on the home page template)
>>   - ## Features
>>   - ## Latest API Docs
>>- Committing and pushing to GitHub the changes made to the
>>README.md file when *release:prepare* goal is run.
>>
>> [1] https://github.com/wso2/siddhi/pull/493
>>
>> Thank you!
>>
>> Regards,
>> Nadun De Silva
>>
>> On Fri, Aug 18, 2017 at 12:11 PM, Chathurika Amarathunga <
>> chathuri...@wso2.com> wrote:
>>
>>> Hi Nadun,
>>>
>>> Currently, It is updated the descriptions under "Feature" & "latest
>>> API docs"  headings only in site when we prepare the 'README.md' as you
>>> mentioned. It is not updated the description in the 'README.md' under 
>>> those
>>> headings. Could you please, make it updated on both 'Index.md' and
>>> 'README.md' files.
>>>
>>> Thank you.
>>>
>>> Regards,
>>> Chathurika Amarathunga.
>>>
>>> --
>>> *Chathurika Amarathunga*
>>> Software Engineer - WSO2
>>>
>>> Email: chathuri...@wso2.com
>>> Mobile: +94783886224 <078%20388%206224>
>>> 
>>>
>>
>>
>>
>> --
>>
>> [image: profile_pic.jpg]
>>
>> Nadun De Silva
>>
>> Undergraduate of Computer Science and Engineering
>>
>> University of Moratuwa
>>
>> [image: GitHub.png]  [image:
>> LinkedIn.png]  [image:
>> Facebook.png] 
>>
>> Mobile:
>>
>> (+94) 77 8 222 607
>>
>> Email:
>>
>> nadun...@gmail.com
>>
>
>
>
> --
>
> *S. Suhothayan*
> Associate Director / Architect
> *WSO2 Inc. *http://wso2.com
> * *
> lean . enterprise . middleware
>
>
> *cell: (+94) 779 756 757 <077%20975%206757> | blog:
> http://suhothayan.blogspot.com/ twitter:
> http://twitter.com/suhothayan  | linked-in:
> http://lk.linkedin.com/in/suhothayan 
> 

[Dev] NULL as default value in DB2

2017-09-08 Thread Nilasini Thirunavukkarasu
Hi,

In DB2 if we want to set default value as null for a column, do we need to
specify it explicitly?. According to the following[1] blog we don't need to
specify the NULL as default since it will implicitly take the default value
as NULL if we didn't specify it.

For the following script do we need to specify the default value as null
for the column *REMAINING_SETS?*

CREATE TABLE IDN_RECOVERY_DATA (
  USER_NAME VARCHAR(255) NOT NULL,
  USER_DOMAIN VARCHAR(127) NOT NULL,
  TENANT_ID INTEGER DEFAULT -1 NOT NULL,
  CODE VARCHAR(255) NOT NULL,
  SCENARIO VARCHAR(255) NOT NULL,
  STEP VARCHAR(127) NOT NULL,
  TIME_CREATED TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
*  REMAINING_SETS VARCHAR(2500) WITH DEFAULT NULL,*
  PRIMARY KEY(USER_NAME, USER_DOMAIN, TENANT_ID, SCENARIO,STEP),
  UNIQUE(CODE))

[1] https://www.datavail.com/blog/using-nulls-db2/

-- 
Nilasini Thirunavukkarasu
Software Engineer - WSO2

Email : nilas...@wso2.com
Mobile : +94775241823
Web : http://wso2.com/



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


Re: [Dev] [C5] How to write a startup script for a runtime in Carbon Kernal v5.2.0-alpha

2017-09-08 Thread Thusitha Thilina Dayaratne
Hi Sajith,

>From C5-m4 onwards carbon.sh file will reside in /bin
directory. Therefore no need to write a separate startup script for runtime.
Based on the bin directory, the script will set the correct runtime from
the script.

If you want, you can have a new script inside /bin directory,
which calls the relevant carbon.sh in the /bin

Thanks
Thusitha


On Fri, Sep 8, 2017 at 5:02 PM, SajithAR Ariyarathna 
wrote:

> Hi Thusitha,
>
> In C5 v5.2.0-m3, when we want to add a new runtime to a product (e.g.
> adding dashboard runtime to Stream Processor product) what we did was,
> - Installed the necessary features to that tuntime
> - Added new startup scripts (dashboard.sh & dashboard.bat) for that runtime
>
> However with the C5 v5.2.0-alpha version, I noticed that the carbon.sh
> script has been changed with bunch of new variables (including $RUNTIME).
> My query is on how one should write startup scripts (e.g. dashboard.sh &
> dashboard.bat) for a particular runtime in the v5.2.0-alpha version.
>
> Thanks.
>
> On Fri, Sep 8, 2017 at 4:16 PM, Thusitha Thilina Dayaratne <
> thusit...@wso2.com> wrote:
>
>> Hi Sajith,
>>
>> Why do you want to write a runtime specific script?
>>
>> Thanks
>> Thusitha
>>
>> On Fri, Sep 8, 2017 at 4:07 PM, SajithAR Ariyarathna 
>> wrote:
>>
>>> Hi Kernel Team,
>>>
>>> $subject?
>>> In C5 v5.2.0-alpha, the place one put the runtime name in the carbon.sh
>>> startup script is replaced with $RUNTIME variable [1]. Do we need to pass
>>> that as an argument in the runtime startup script?
>>>
>>> [1] https://github.com/wso2/carbon-kernel/blob/v5.2.0-alpha/
>>> features/org.wso2.carbon.runtime.feature/resources/wso2/
>>> default/bin/carbon.sh#L285
>>>
>>> Thanks.
>>>
>>> --
>>> Sajith Janaprasad Ariyarathna
>>> Senior Software Engineer; WSO2, Inc.;  http://wso2.com/
>>> 
>>>
>>
>>
>>
>> --
>> Thusitha Dayaratne
>> WSO2 Inc. - lean . enterprise . middleware |  wso2.com
>>
>> Mobile  +94712756809 <+94%2071%20275%206809>
>> Blog  alokayasoya.blogspot.com
>> Abouthttp://about.me/thusithathilina
>> 
>>
>>
>
>
> --
> Sajith Janaprasad Ariyarathna
> Senior Software Engineer; WSO2, Inc.;  http://wso2.com/
> 
>



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

Mobile  +94712756809
Blog  alokayasoya.blogspot.com
Abouthttp://about.me/thusithathilina

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


Re: [Dev] [C5] How to write a startup script for a runtime in Carbon Kernal v5.2.0-alpha

2017-09-08 Thread SajithAR Ariyarathna
Hi Thusitha,

In C5 v5.2.0-m3, when we want to add a new runtime to a product (e.g.
adding dashboard runtime to Stream Processor product) what we did was,
- Installed the necessary features to that tuntime
- Added new startup scripts (dashboard.sh & dashboard.bat) for that runtime

However with the C5 v5.2.0-alpha version, I noticed that the carbon.sh
script has been changed with bunch of new variables (including $RUNTIME).
My query is on how one should write startup scripts (e.g. dashboard.sh &
dashboard.bat) for a particular runtime in the v5.2.0-alpha version.

Thanks.

On Fri, Sep 8, 2017 at 4:16 PM, Thusitha Thilina Dayaratne <
thusit...@wso2.com> wrote:

> Hi Sajith,
>
> Why do you want to write a runtime specific script?
>
> Thanks
> Thusitha
>
> On Fri, Sep 8, 2017 at 4:07 PM, SajithAR Ariyarathna 
> wrote:
>
>> Hi Kernel Team,
>>
>> $subject?
>> In C5 v5.2.0-alpha, the place one put the runtime name in the carbon.sh
>> startup script is replaced with $RUNTIME variable [1]. Do we need to pass
>> that as an argument in the runtime startup script?
>>
>> [1] https://github.com/wso2/carbon-kernel/blob/v5.2.0-alpha/
>> features/org.wso2.carbon.runtime.feature/resources/
>> wso2/default/bin/carbon.sh#L285
>>
>> Thanks.
>>
>> --
>> Sajith Janaprasad Ariyarathna
>> Senior Software Engineer; WSO2, Inc.;  http://wso2.com/
>> 
>>
>
>
>
> --
> Thusitha Dayaratne
> WSO2 Inc. - lean . enterprise . middleware |  wso2.com
>
> Mobile  +94712756809 <+94%2071%20275%206809>
> Blog  alokayasoya.blogspot.com
> Abouthttp://about.me/thusithathilina
> 
>
>


-- 
Sajith Janaprasad Ariyarathna
Senior Software Engineer; WSO2, Inc.;  http://wso2.com/

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


Re: [Dev] how can i customize basic authentication of wso2 api manager for authorization code grant type.

2017-09-08 Thread Saneth Dharmakeerthi
Hi Shiva,

It is not clear which part you need to do customization here.
In authorization code grant type[1- page 6],

1) First, you need to hit the Authorization endpoint and do the logging and
get the authorization code.
2) Then need to provide the authorization code to the authorization_code
grant type and get the access token.

I don't believe you need to do a customization on step 2. if so you don't
need to change the authorization_code grant type.
If you need to customized step 1 please refer[2][3][4]


[1]https://tools.ietf.org/html/rfc6749
[2]
http://wdfdo1986.blogspot.com/2016/03/oauth-custom-basic-authenticator-with.html
[3]
http://xacmlinfo.org/2015/10/15/custom-authenticator-for-wso2-identity-server-wso2is-sso-login/
[4]
https://dzone.com/articles/custom-authenticator-for-wso2-identity-server-wso2

Thanks and Best Regards,

Saneth Dharmakeerthi
*Associate Technical Lead*
WSO2, Inc.
Mobile: +94772325511



On Wed, Sep 6, 2017 at 6:29 PM,  wrote:

> How can I customize basic authentication of Authorization code grant type
> page. Any handlers I can override.
>
> I tried to extend ExtendedAuthorizationCodeGrantHandler and overriding
> validateGrant method, but when i click sign in the validateGrant method is
> not invoking. Please see the configuration below.
>
>
>
> In WSO2_HOME/repository/conf/identity/identity.xml I have changed handler
> to my implementation please suggest any way to override authentication when
> I click sign in.
>
>
>
> 
>
> authorization_code
>
> 
>
> org.wso2.carbon.test.
> SSAuthorizationCodeGrantHanlder
>
> 
>
>
>
>
>
> Thank You,
>
> Shiva Kumar KR
>
> ___
> 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] [C5] How to write a startup script for a runtime in Carbon Kernal v5.2.0-alpha

2017-09-08 Thread Thusitha Thilina Dayaratne
Hi Sajith,

Why do you want to write a runtime specific script?

Thanks
Thusitha

On Fri, Sep 8, 2017 at 4:07 PM, SajithAR Ariyarathna 
wrote:

> Hi Kernel Team,
>
> $subject?
> In C5 v5.2.0-alpha, the place one put the runtime name in the carbon.sh
> startup script is replaced with $RUNTIME variable [1]. Do we need to pass
> that as an argument in the runtime startup script?
>
> [1] https://github.com/wso2/carbon-kernel/blob/v5.2.0-
> alpha/features/org.wso2.carbon.runtime.feature/resources/wso2/default/bin/
> carbon.sh#L285
>
> Thanks.
>
> --
> Sajith Janaprasad Ariyarathna
> Senior Software Engineer; WSO2, Inc.;  http://wso2.com/
> 
>



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

Mobile  +94712756809
Blog  alokayasoya.blogspot.com
Abouthttp://about.me/thusithathilina

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


[Dev] [C5] How to write a startup script for a runtime in Carbon Kernal v5.2.0-alpha

2017-09-08 Thread SajithAR Ariyarathna
Hi Kernel Team,

$subject?
In C5 v5.2.0-alpha, the place one put the runtime name in the carbon.sh
startup script is replaced with $RUNTIME variable [1]. Do we need to pass
that as an argument in the runtime startup script?

[1]
https://github.com/wso2/carbon-kernel/blob/v5.2.0-alpha/features/org.wso2.carbon.runtime.feature/resources/wso2/default/bin/carbon.sh#L285

Thanks.

-- 
Sajith Janaprasad Ariyarathna
Senior Software Engineer; WSO2, Inc.;  http://wso2.com/

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


[Dev] [MSF4J] Register a Custom EntityWriter

2017-09-08 Thread Isuranga Perera
Hi,

JAX-RS provides a way to register new MessageBodyWriter implementation. I
think it would be better if msf4j provides a way to register a custom
EntityWriter as in JAX-RS. Appreciate any suggestions.

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


Re: [Dev] [Kubernetes] [EI] EI Analytics Dashboard not loading on Containers

2017-09-08 Thread Eranga Perera
Hi,

The issue was due to the fact when the api.js in the jaggery portal app,
calls the serverConfigService to get the hostname, it is getting a forward
slash appended to the hostname. Made the following change to the jaggery
file (api.js) go get rid of the forward slash.
--
if ( hostName == null || hostName === '' || hostName === 'null' ||
hostName.length <= 0 ){
authUrl = carbon.server.address("https") + AUTH_SERVICE;
log.info('hostname not set :' + authUrl);
} else {
hostName = hostName.replace('/','');
authUrl = authUrlProtocol + "://" + hostName + ":" + authUrlPort +
AUTH_SERVICE;
log.info('hostname set :' + authUrl);
}
--

Eranga.


On Thu, Sep 7, 2017 at 3:50 PM, Eranga Perera  wrote:

> Looping [Lasantha & Manjula]
>
> We checked on the issue offline. It seems issue is arising due to
> incorrect redirects after login.
>
> Eranga.
>
> On Thu, Sep 7, 2017 at 3:25 PM, Eranga Perera  wrote:
>
>> Hi,
>>
>> Getting the same set-of issues on the integration cloud. We are have
>> deployed a dashboard server 2.0.0 as a custom docker and we get the issue
>> when we try to log to the portal.
>>
>> [2017-09-07 08:51:05,949] ERROR 
>> {org.jaggeryjs.jaggery.core.manager.WebAppManager}
>> -  org.mozilla.javascript.WrappedException: Wrapped
>> org.jaggeryjs.scriptengine.exceptions.ScriptException:
>> org.mozilla.javascript.WrappedException: Wrapped
>> org.jaggeryjs.scriptengine.exceptions.ScriptException:
>> org.mozilla.javascript.WrappedException: Wrapped
>> org.apache.axis2.AxisFault: Transport error: 302 Error: Found
>> (/portal/modules/api.js#23) (/portal/routers/pages.jag#61)
>> (/portal/routers/tenant.jag#67)
>> org.jaggeryjs.scriptengine.exceptions.ScriptException:
>> org.mozilla.javascript.WrappedException: Wrapped
>> org.jaggeryjs.scriptengine.exceptions.ScriptException:
>> org.mozilla.javascript.WrappedException: Wrapped
>> org.jaggeryjs.scriptengine.exceptions.ScriptException:
>> org.mozilla.javascript.WrappedException: Wrapped
>> org.apache.axis2.AxisFault: Transport error: 302 Error: Found
>> (/portal/modules/api.js#23) (/portal/routers/pages.jag#61)
>> (/portal/routers/tenant.jag#67)
>> at org.jaggeryjs.scriptengine.engine.RhinoEngine.execScript(Rhi
>> noEngine.java:571)
>> at org.jaggeryjs.scriptengine.engine.RhinoEngine.exec(RhinoEngi
>> ne.java:273)
>> at org.jaggeryjs.jaggery.core.manager.WebAppManager.exec(WebApp
>> Manager.java:587)
>> at org.jaggeryjs.jaggery.core.manager.WebAppManager.execute(Web
>> AppManager.java:507)
>> at org.jaggeryjs.jaggery.core.JaggeryServlet.doPost(JaggeryServ
>> let.java:29)
>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:646)
>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
>> at org.apache.catalina.core.ApplicationFilterChain.internalDoFi
>> lter(ApplicationFilterChain.java:303)
>> at org.apache.catalina.core.ApplicationFilterChain.doFilter(App
>> licationFilterChain.java:208)
>> at org.apache.catalina.core.ApplicationDispatcher.invoke(Applic
>> ationDispatcher.java:748)
>> at org.apache.catalina.core.ApplicationDispatcher.processReques
>> t(ApplicationDispatcher.java:486)
>> at org.apache.catalina.core.ApplicationDispatcher.doForward(App
>> licationDispatcher.java:378)
>> at org.apache.catalina.core.ApplicationDispatcher.forward(Appli
>> cationDispatcher.java:338)
>> at org.jaggeryjs.jaggery.core.JaggeryFilter.doFilter(JaggeryFil
>> ter.java:21)
>> at org.apache.catalina.core.ApplicationFilterChain.internalDoFi
>> lter(ApplicationFilterChain.java:241)
>> at org.apache.catalina.core.ApplicationFilterChain.doFilter(App
>> licationFilterChain.java:208)
>> at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilte
>> r.java:52)
>> at org.apache.catalina.core.ApplicationFilterChain.internalDoFi
>> lter(ApplicationFilterChain.java:241)
>> at org.apache.catalina.core.ApplicationFilterChain.doFilter(App
>> licationFilterChain.java:208)
>> at org.apache.catalina.core.StandardWrapperValve.invoke(Standar
>> dWrapperValve.java:220)
>> at org.apache.catalina.core.StandardContextValve.invoke(Standar
>> dContextValve.java:122)
>> at org.apache.catalina.authenticator.AuthenticatorBase.invoke(A
>> uthenticatorBase.java:504)
>> at org.apache.catalina.core.StandardHostValve.invoke(StandardHo
>> stValve.java:170)
>> at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorRepo
>> rtValve.java:103)
>> at org.wso2.carbon.tomcat.ext.valves.CompositeValve.continueInv
>> ocation(CompositeValve.java:99)
>> at org.wso2.carbon.tomcat.ext.valves.CarbonTomcatValve$1.invoke
>> (CarbonTomcatValve.java:47)
>> at org.wso2.carbon.webapp.mgt.TenantLazyLoaderValve.invoke(Tena
>> ntLazyLoaderValve.java:57)
>> at org.wso2.carbon.tomcat.ext.valves.TomcatValveContainer.invok
>> eValves(TomcatValveContainer.java:47)
>> at 

[Dev] WSO2 Committers += Vivekananthan Sivanayagam

2017-09-08 Thread Malaka Silva
​Hi Devs,

It is my pleasure to welcome
​
Vivekananthan
​
Sivanayagam as a WSO2 Committer. Vi
​veka​
has made some great contributions to WSO2
​Extensions
 during the last months and in recognition of his commitment and
contributions, he has been voted as a Committer for WSO2.

@Viveka, welcome aboard and keep up the good work.​


Best Regards,

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

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

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

Don't make Trees rare, we should keep them with care
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev