Re: [Dev] [VOTE] WSO2 App Manager 1.2.0 RC2

2016-07-19 Thread Dinusha Senanayaka
Hi All,

Tested following scenarios and found no issue.

- SSO/SLO between store/publisher/GW apps
- Visibility restriction for app
- Resource level visibiblity restriction
- Throttling
- Relay state for GW URLs
- Annonymous access
- Tags
- User comments/rating
- Share apps between tenants/ Publish to external stores

+1 for releasing.

Regards,
Dinusha.

On Wed, Jul 20, 2016 at 10:18 AM, Thilini Shanika  wrote:

> Tested following Scenarios
>
> - App create/update/lifecycle change, app invocation in super tenant and
> tenant domains
> - Anonymous apps, role restricted apps in super tenant and tenant domains
> - Tenanted stores and tenanted user signup
> - Rest API token generation and API invocation in super tenant and tenant
> domains
>
> +1
> Stable - Go ahead and release.
>
>
> On Tue, Jul 19, 2016 at 1:01 AM, Lahiru Cooray  wrote:
>
>> Hi Devs,
>>
>> This is the 2nd Release Candidate of the WSO2 App Manager 1.2.0
>>
>> Please download, test the product and vote. Vote will be open for 72
>> hours or as needed.
>> Refer to github readme for guides.
>>
>> The distribution is available to download at [1]
>>
>> [1] :
>> https://github.com/wso2/product-app-manager/releases/download/v1.2.0-RC2/wso2appm-1.2.0.zip
>>
>> Fixed Issue in [2], known issues [3], tag to be vote upon [4]
>>
>> [2] : https://wso2.org/jira/issues/?filter=13104
>> [3] : https://wso2.org/jira/issues/?filter=13148
>> [4] : https://github.com/wso2/carbon-appmgt/tree/v1.2.1
>>
>> Please vote as follows.
>> [+] Stable - go ahead and release
>> [-]  Broken - do not release (please explain why)
>>
>> Thanks,
>> App Manager Team
>>
>> --
>> *Lahiru Cooray*
>> Software Engineer
>> WSO2, Inc.;http://wso2.com/
>> lean.enterprise.middleware
>>
>> Mobile: +94 715 654154
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Thilini Shanika
> Senior Software Engineer
> WSO2, Inc.; http://wso2.com
> 20, Palmgrove Avenue, Colombo 3
>
> E-mail: tgtshan...@gmail.com
>
>


-- 
Dinusha Dilrukshi
Associate Technical Lead
WSO2 Inc.: http://wso2.com/
Mobile: +94725255071
Blog: http://dinushasblog.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [DEV] WSO2 Enterprise Store 2.1.0 BETA-2 Released!

2016-07-19 Thread Sameera Medagammaddegedara
Hi Everyone,

This is the beta-2 of the WSO2 Enterprise Store version 2.1.0, which will
create a marketplace for your enterprise assets. You can download the beta
at [1]. The beta-2 specifically contains the following  bug fixes.
Bug

   - [STORE-858 ] - Mobile UI issue
   - In registration page security question dropdown box not fit to screen
   size
   - [STORE-1328 ] - Tenant users
   cannot view new assets although it is successfully created
   - [STORE-1354 ] - Published
   gadgets are displayed when searched for gadgets in "In Review" state
   - [STORE-1355 ] - Broken images
   are displayed when "no thumbnails" and "no banners" labels are viewed
   - [STORE-1384 ] - [MSSQL]
   "Failed to initilize database. java.lang.NullPointerException" when
   starting the server
   - [STORE-1387 ] - [STORE]
   Selected tag not visible in the listing page
   - [STORE-1388 ] - [STORE]
   Styling issue with information pop over
   - [STORE-1389 ] - [STORE] No
   spacing between asset cards
   - [STORE-1394 ] - [STORE] Can
   not remove selected tag in tag cloud
   - [STORE-1396 ] - Asset type
   hot deployment is not working
   - [STORE-1404 ] - Empty
   "Current State Duration" in asset life cycle
   - [STORE-1405 ] - [PUBLISHER]
   The lifecycle selection box does not reflect current lifecycle
   - [STORE-1407 ] - Taxonomy -
   Wrong gadgets are filtered
   - [STORE-1410 ] - Cannot edit
   the same filter added
   - [STORE-1413 ] - Tenant Admin
   cannot login to the publisher without publisher role
   - [STORE-1414 ] - Tenant Admin
   cannot login to the store without store role
   - [STORE-1415 ] - Asset
   thumbnails are too close to each other in 1336 resolution
   - [STORE-1416 ] - Selected tabs
   are not visible with Enterprise Store details page
   - [STORE-1417 ] - Description
   is duplicated in the details page
   - [STORE-1418 ] - Asset type
   icon is not visible in the asset details page
   - [STORE-1420 ] - "Successfully
   subscribed to asset" is displayed when removing a bookmark
   - [STORE-1421 ] - Need to
   refresh the page to bookmark an asset after unsubscribing from it
   - [STORE-1422 ] - When
   searching for lcState and a space is included, wrong results are shown
   - [STORE-1423 ] - [Store] All
   the published assets are shown when search for a lcState


References[1] Product can be downloaded from
https://svn.wso2.org/repos/wso2/scratch/ES/2.1.0/beta-2/
[2] Store Front URL : http://{host}:{9763}/store
[3] Store Back-office (Publisher) : http://{host}:{9763}/publisher
[4] https://wso2.org/jira/browse/STORE
[5] JIRA Filter for WSO2 ES 2.1.0 BETA-2 :
https://wso2.org/jira/browse/STORE/fixforversion/12382


Thank You,

ES/GREG Team
-- 
Sameera Medagammaddegedara
Software Engineer

Contact:
Email: samee...@wso2.com
Mobile: + 94 077 255 3005
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Architecture] [IS] [Analytics] Improvement to use Siddhi streams to send notifications

2016-07-19 Thread Indunil Upeksha Rathnayake
Hi,

Thanks for the response. I have arranged a meeting from 4.30pm - 5.30pm
today(20/7/2016).

Best Regards


On Tue, Jul 19, 2016 at 11:58 AM, Sriskandarajah Suhothayan 
wrote:

> Since Option 2 is now possible I think you can move to it now. The
> advantage is, with this approach you are not restricted to emails and you
> can now use SOAP, REST and other adopters to trigger some actions based on
> notifications, which will make IS much more powerful than just sending
> emails.
>
> I'm available from 2.30 pm at PG.
>
> Regards
> Suho
>
> On Tue, Jul 19, 2016 at 11:17 AM, Johann Nallathamby 
> wrote:
>
>> Hi Suho,
>>
>> On Mon, Jul 18, 2016 at 11:44 PM, Sriskandarajah Suhothayan <
>> s...@wso2.com> wrote:
>>
>>> Hi
>>>
>>> Based on the request of IS team we have recently added support for
>>> loading template files from the registry.
>>> I think with this feature we can do the mapping at Event Publisher side,
>>> then IS can send only the core data for the notification. I think building
>>> the whole message at IS is too much customization for emails.
>>>
>>
>> As discussed previously both methods should work.
>>
>> Replacing placeholder with data in the arbitrary data map was in the
>> master at the time and now it should have been release AFAIU. This is what
>> Indunil was trying.
>>
>> And also you guys have added the support to pick registry templates based
>> on some place holder values in the registry path. What we discussed was to
>> send the 'locale' value as a stream attribute for our use case. If this
>> approach works this is also fine for us.
>>
>> We tried with option1 just to get something working quickly.
>>
>>
>>>
>>> Please set up a meeting so we can discuss the possible ways to
>>> implementing this.
>>>
>>> Regards
>>> Suho
>>>
>>> On Mon, Jul 18, 2016 at 5:52 PM, Indunil Upeksha Rathnayake <
>>> indu...@wso2.com> wrote:
>>>
 Hi,

 We are trying to do some improvements to the notification sending
 module where we have integrated analytics common features in IS, in order
 to send several notifications (ex:Email, SMS).

 Current implementation is in [1], there only the email notification was
 focused where we are directly publishing to the EmailEventAdapter.

 Now we are trying to send notifications via publishing an event to the
 Event stream without directly calling an Output Adapter. The approach we
 have taken is as follows.









 *1) In server start up following will be created.i) A stream for each
 and every notification type including the necessary attributes.Ex:
 Email Notification - a Stream with the subject, body and footer as
 attributesii) Event Publishers, registered for each and every stream in the
 required Output event adapter type. Ex: Email Notification - event
 Publisher in email output event adapter type.2) Publishing an event to
 EventStreamService, which includes an arbitrary data map with the necessary
 data needed for the specific notification type.  Ex: Email Notification
 - Please find the code segments in [2] for having a better understanding.*

 There in IS side, we are selecting a specific email template and will
 be filled out the place holders before sending the subject, body and footer
 as arbitrary map attributes.

 But even-though we passed an arbitrary data map, when we are sending an
 email from the EmailEventAdapter, it won't filter out the subject, body or
 header from that arbitrary data map.
 As I have understood, if someone pass an event with an arbitrary data
 map, the email body will be set as [3] (Refer [4]), it won't filter out the
 content(Refer [5]).
 Is this has to be worked if we provide *output mappings* for event
 publisher as* {{subject}{body}{footer}}* to convert the event to the
 supported format?

 I have gone through the code [6], where the event data will be passed
 through EventStreamProducer, but there also seems like it's not
 possible to send an email in required format(subject, body and footer).

 Really appreciate your comments/suggestions to understand the correct
 approach to be taken.

 [1]
 https://github.com/wso2-extensions/identity-event-handler-email/blob/master/components/event-handler-email/org.wso2.carbon.identity.event.handler.email/src/main/java/org.wso2.carbon.identity.event.handler.email/handler/EmailEventHandler.java#L164
 [2]
 https://drive.google.com/a/wso2.com/file/d/0Bz_EQkE2mOgBY00yYVpGelZJNms/view?usp=sharing
 [3]
 https://drive.google.com/a/wso2.com/file/d/0Bz_EQkE2mOgBNEMtYjJvSFB2emM/view?usp=sharing
 [4]
 

Re: [Dev] GSoC2016-Contact Development Team Feature

2016-07-19 Thread Nathiesha Maddage
Hi all,

I started unit testing with InfoCollector and Startup Classes, and created
a few unit tests using JUnit.

Regarding the progress of the project, I am currently working on the
ReportArchive module. The ReportArchive module currently displays all the
sent error reports to the user in a window, and I am  working on adding a
context menu option for each error report to inquire the current status of
the issue.

Regarding the Preference page, I tried creating a Input Dialog, that would
open up for the very first time the plugin  reports an error to the user.
This dialog would ask the user to fill  values to compulsory fields like
Jira Username and Password, and it would store these values in the
preference page as well, for future use.

I tried to save the user entered values in Input dialog, to the preference
page using Activator.getDefault().getPreferenceStore().setValue() method.
This method would set the user entered values in respective fields of the
preference page, but that is just temporary. These values disappear from
the preference page the next time I run it. Only the default set values by
the code and the values that I enter in the preference page there itself
would retain permanently. I tried to fix this for a couple of days and
tried almost every solution I could find in the internet regarding this.

Have you encountered a situation like this where you have to set the values
in preference page through code? Any idea whether this is possible and if
so how to do it would be of big help!

Best regards

Nathiesha


On Thu, Jul 7, 2016 at 6:31 AM, Nathiesha Maddage <
nathieshamadd...@gmail.com> wrote:

> Hi all,
>
> Regarding the current status of the project, I am working on the
> development of the report Archive module, where the user can view the
> previously sent error reports and also the current status of those issues.
> Meanwhile I thought to look into the testing part of the project as well.
> Is their any special testing framework used in Developer Studio testing,
> that I need to adopt? I though to use JUnit. Is it OK?
>
> Regards
>
> Nathiesha
>
> On Tue, Jun 28, 2016 at 9:34 AM, Nathiesha Maddage <
> nathieshamadd...@gmail.com> wrote:
>
>> Hi all,
>>
>> I downloaded and tried running the Data Analytics Server . Currently I am
>> going through the DAS documentation and the REST API. Is it possible to
>> post data using the REST API? As I noticed, it only allows to retrieve data
>> from the DAS.
>>
>> Thanks and regards
>>
>> Nathiesha
>>
>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [VOTE] WSO2 App Manager 1.2.0 RC2

2016-07-19 Thread Thilini Shanika
Tested following Scenarios

- App create/update/lifecycle change, app invocation in super tenant and
tenant domains
- Anonymous apps, role restricted apps in super tenant and tenant domains
- Tenanted stores and tenanted user signup
- Rest API token generation and API invocation in super tenant and tenant
domains

+1
Stable - Go ahead and release.


On Tue, Jul 19, 2016 at 1:01 AM, Lahiru Cooray  wrote:

> Hi Devs,
>
> This is the 2nd Release Candidate of the WSO2 App Manager 1.2.0
>
> Please download, test the product and vote. Vote will be open for 72 hours
> or as needed.
> Refer to github readme for guides.
>
> The distribution is available to download at [1]
>
> [1] :
> https://github.com/wso2/product-app-manager/releases/download/v1.2.0-RC2/wso2appm-1.2.0.zip
>
> Fixed Issue in [2], known issues [3], tag to be vote upon [4]
>
> [2] : https://wso2.org/jira/issues/?filter=13104
> [3] : https://wso2.org/jira/issues/?filter=13148
> [4] : https://github.com/wso2/carbon-appmgt/tree/v1.2.1
>
> Please vote as follows.
> [+] Stable - go ahead and release
> [-]  Broken - do not release (please explain why)
>
> Thanks,
> App Manager Team
>
> --
> *Lahiru Cooray*
> Software Engineer
> WSO2, Inc.;http://wso2.com/
> lean.enterprise.middleware
>
> Mobile: +94 715 654154
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Thilini Shanika
Senior Software Engineer
WSO2, Inc.; http://wso2.com
20, Palmgrove Avenue, Colombo 3

E-mail: tgtshan...@gmail.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [DEV] [GSoC Dockerfiles] Issues with setting up Kubernetes using Vagrant

2016-07-19 Thread Abhishek Tiwari
Hi Mentors,

I have been working on setting up Kubernetes cluster using vagrant and
docker using [1]. I ran into multiple issues (coreos download taking hours,
nfsd not being setup etc), however, those got resolved.

Now, when I launch the setup using run.sh, I get this error [2]. I tried
wiping out everything (vagrant destroy -f) and restart the whole process
again, I get the same issue.

One thing to note is, my host os is Mac and I use VirtualBox for
development, so essentially I have virtualbox setup inside virtualbox. I
don't think it should matter, but would like to get other people's opinion
on this.

While this issue gets resolved, I am planning to complete another milestone
to add smoke tests for ESB and MB. I feel like, I should complete the test
workflow for default platform before moving to Kubernetes, since the latter
involves a lot of new technologies, more moving parts and other unknowns. I
do plan to address Kubernetes testing, but would like to do that once
default platform test workflow is complete. Thoughts?

Thanks,
Abhishek

[1]. https://github.com/imesh/kubernetes-vagrant-setup
[2].
master: Waiting for machine to boot. This may take a few minutes...
master: SSH address: 127.0.0.1:
master: SSH username: core
master: SSH auth method: private key

Timed out while waiting for the machine to boot. This means that
Vagrant was unable to communicate with the guest machine within
the configured ("config.vm.boot_timeout" value) time period.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [ESB] Unable to start ESB 5.0.0 Beta2 on top of IBM JDK

2016-07-19 Thread Ayoma Wijethunga
Hi Pubudu,

I hope you were checking with me about "ESBJAVA-4740" [1]. Was
"ESBJAVA-4772" mentioned by mistake?  Rajith is correct about
"ESBJAVA-4772", although "ESBJAVA-4740" has nothing to do with CSRFGuard.

[1] https://wso2.org/jira/browse/ESBJAVA-4740

Regards,
Ayoma

On Tue, Jul 19, 2016 at 10:49 PM, Rajith Roshan  wrote:

> Hi Pubudu,
>
> Can you try setting the following property[1] in
> "Owasp.CsrfGuard.Carbon.properties" file
> (SERVER_HOME/repository/conf/security) which is default set to [2]. We
> found same issue with G-Reg and overcame it by setting this property.
>
> [1] - org.owasp.csrfguard.PRNG.Provider=IBMJCE
> [2] - org.owasp.csrfguard.PRNG.Provider=SUN
>
> Thanks!
> Rajith
>
> On Mon, Jul 18, 2016 at 12:51 PM, Pubudu Priyashan 
> wrote:
>
>> Hi Senduran,
>>
>> We are currently facing the issue logged at [1] when starting the ESB
>> pack with IBM JDK. Can we please take a look and get this fixed with the
>> next release? This blocks us from testing the release on IBM JDK. Do let me
>> know if you require any further information. Thanks!
>>
>> [1] https://wso2.org/jira/browse/ESBJAVA-4772
>>
>>
>> Cheers,
>> Pubudu D.P
>> Senior Software Engineer - QA Team | WSO2 inc.
>> Mobile : +94775464547
>>
>> Linkedin: https://uk.linkedin.com/in/pubududp
>> Medium: https://medium.com/@pubududp
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> 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
>
>


-- 
Ayoma Wijethunga
Software Engineer
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] [ESB] Unable to start ESB 5.0.0 Beta2 on top of IBM JDK

2016-07-19 Thread Rajith Roshan
Hi Pubudu,

Can you try setting the following property[1] in
"Owasp.CsrfGuard.Carbon.properties" file
(SERVER_HOME/repository/conf/security) which is default set to [2]. We
found same issue with G-Reg and overcame it by setting this property.

[1] - org.owasp.csrfguard.PRNG.Provider=IBMJCE
[2] - org.owasp.csrfguard.PRNG.Provider=SUN

Thanks!
Rajith

On Mon, Jul 18, 2016 at 12:51 PM, Pubudu Priyashan  wrote:

> Hi Senduran,
>
> We are currently facing the issue logged at [1] when starting the ESB pack
> with IBM JDK. Can we please take a look and get this fixed with the next
> release? This blocks us from testing the release on IBM JDK. Do let me know
> if you require any further information. Thanks!
>
> [1] https://wso2.org/jira/browse/ESBJAVA-4772
>
>
> Cheers,
> Pubudu D.P
> Senior Software Engineer - QA Team | WSO2 inc.
> Mobile : +94775464547
>
> Linkedin: https://uk.linkedin.com/in/pubududp
> Medium: https://medium.com/@pubududp
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


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


[Dev] WSO2 Governance Registry 5.3.0 Beta Released

2016-07-19 Thread Rajith Roshan
WSO2 Governance Registry team is pleased to announce the Beta release of
WSO2 Governance Registry 5.3.0.

Please download WSO2 Governance Registry 5.3.0 Beta from this
location[1][2]. Kindly find the official documentation from here[5].This
release includes following  improvements and bug fixes. To see the full
list please visit jira release note[3]
Improvement

   - [REGISTRY-3137 ] - Pages
   associated with service should include service name
   - [REGISTRY-3171 ] -
   Configuring a bidirectional association via governance.xml
   - [REGISTRY-3580 ] - Remove
   Lifecycle notification options from content artifact types
   - [REGISTRY-3624 ] - Search
   customisation for unbounded table values
   - [REGISTRY-3711 ] - WSDL
   VIsualizer
   - [REGISTRY-3739 ] -
   [Store]"show dependencies" should be align with other buttons
   - [REGISTRY-3755 ] -
   [Store][taxonomy] move add new filter button bellow to separation line
   - [REGISTRY-3758 ] -
   [Publisher] "show dependencies" should be align with other buttons
   - [REGISTRY-3796 ] -
   [Governance Center] Support OR parameter within two fields

Bug

   - [REGISTRY-1999 ] -
   [Intermittent-Issue] - java.lang.NoClassDefFoundError:
   org/apache/jackrabbit/webdav/simple/SimpleWebdavServlet observed once the
   server was started
   - [REGISTRY-2299 ] - [Random
   Issue]Tool-box deployment throwing registry deadlock exception
   - [REGISTRY-2561 ] - Stale
   UserRealm is used in some RegistryAuthorizationManager objects, and that
   leads to have a stale JDBCAuthorizationManager
   - [REGISTRY-2639 ] - Backend
   gives an error While clicking the Checkpoint in Metadata Soon after click
   the permlink
   - [REGISTRY-3061 ] -
   "Resource does not exist at path /_system/config" error was thrown when
   creating tenants
   - [REGISTRY-3360 ] -
   Publisher basic auth login page is different from store login page
   - [REGISTRY-3374 ] - Success
   message is not shown for content type rxts
   - [REGISTRY-3459 ] - [STORE]
   Add missing class to the details page (md,sm and xs)
   - [REGISTRY-3504 ] -
   [Intermitternt] unwanted element can be seen in login UI
   - [REGISTRY-3574 ] -
   [Publisher][Store] Clear All button in Notification pane is not properly
   cleared out notifications
   - [REGISTRY-3628 ] - Greg
   sign up issue
   - [REGISTRY-3649 ] - [STORE]
   Alignment issues in the asset details page
   - [REGISTRY-3653 ] - Assets
   of newly created artifact types are not displayed to associate
   - [REGISTRY-3657 ] -
   Governance Center Store - Can't remove tag after selecting the tag
   - [REGISTRY-3684 ] -
   [Cluster setup] publisher and store nodes throwing an pool connection error
   - [REGISTRY-3687 ] -
   Publisher RXT hot deployment fail when rxt count is more than 10
   - [REGISTRY-3694 ] -
   [Taxonomy][Store] Sort by appears when we edit a empty result taxonomy.
   - [REGISTRY-3699 ] -
   Taxonomy update should work for clustered setup
   - [REGISTRY-3700 ] -
   [Store][Taxonomy] Page refresh should not remove the selected taxonomies
   - [REGISTRY-3713 ] - UI
   issues found in 5.3.0 testing
   - [REGISTRY-3714 ] -
   Unwanted logs in review page
   - [REGISTRY-3716 ] - Code
   issues found by running findbug
   - [REGISTRY-3723 ] - Admin
   console WSDL, Schema visulization doesn't work
   - [REGISTRY-3731 ] - [STORE]
   Filtering removes the sort conditions
   - [REGISTRY-3734 ] - [STORE]
   Taxonomy filtering breaks when the back button is clicked
   - [REGISTRY-3737 

Re: [Dev] [ESB] DataMapper issue

2016-07-19 Thread Godwin Shrimal
Hi Viraj,

This is not a blocking thing and we can move forward by changing it from
the graphical view. But I think we need to figure out the proper way to fix
it. Do we have a jira for this already ?


Thanks
Godwin


On Mon, Jul 18, 2016 at 11:47 PM, Viraj Rajaguru  wrote:

> Hi Godwin,
>
> In this use case, JSON schema generator will consider all the datatypes,
> but it will get the datatype of the last value of the array. See the below
> JSON representation of the XML
>
> {
>"employees":{
>   "firstname":"Demo",
>   "lastname":"Demo",
>   "addresses":{
>  "address":[
> {
>"add1":"No 827/B",
>"add2":"Gemunu Mawatha"
> },
> {
>"add1":321,
>"add2":"Mount Lavinia"
> }
>  ]
>   }
>}
> }
>
> Since the datatype of last "add1" is a NUMBER it will take that for the
> JSON schema. Hence we see it in the graphical tree.
>
> Issue is we have to select one of the datatypes among all the datatypes
> for the schema. Currently the convention is to get the last datatype. But
> as a fix, we can set high priority to STRING when we have to select one
> from multiple datatypes.
>
> Until we figure out that conventional issue, you can change the datatype
> of "add1" from the graphical view. Right click on the "add1" element from
> the tree --> Click "Edit Field" and then change the Schema type.
>
> Thanks,
> Viraj.
>
> On Tue, Jul 19, 2016 at 9:02 AM, Nuwan Pallewela  wrote:
>
>> Adding Sohani
>>
>> On Tue, Jul 19, 2016 at 12:42 AM, Godwin Shrimal  wrote:
>>
>>> Hi All,
>>>
>>> When load following xml file in to data mapper (input/output), the add1
>>> data type takes as NUMBER as in screenshot . It looks when there is at
>>> least one record in the array with NUMBER it takes as NUMBER. I think It
>>> should consider all the values in the array.
>>>
>>> 
>>> Demo
>>> Demo
>>>
>>> 
>>>   
>>>   *No 827/B*
>>> Gemunu Mawatha
>>>   
>>>   
>>> *321*
>>> Mount Lavinia
>>>   
>>> 
>>> 
>>>
>>> [image: Inline image 2]
>>> Thanks
>>> Godwin
>>>
>>> --
>>> *Godwin Amila Shrimal*
>>> Senior Software Engineer
>>> WSO2 Inc.; http://wso2.com
>>> lean.enterprise.middleware
>>>
>>> mobile: *+94772264165*
>>> linkedin: *http://lnkd.in/KUum6D *
>>> twitter: https://twitter.com/godwinamila
>>> 
>>>
>>
>>
>>
>> --
>> --
>>
>> *Nuwan Chamara Pallewela*
>>
>>
>> *Software Engineer*
>>
>> *WSO2, Inc. *http://wso2.com
>> *lean . enterprise . middleware*
>>
>> Email   *nuw...@wso2.com *
>> Mobile  *+94719079739 <%2B94719079739>@*
>>
>>
>>
>
>
> --
> Viraj Rajaguru
> Associate Technical Lead
> WSO2 Inc. : http://wso2.com
>
> Mobile: +94 77 3683068
>
>
>
>


-- 
*Godwin Amila Shrimal*
Senior Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware

mobile: *+94772264165*
linkedin: *http://lnkd.in/KUum6D *
twitter: https://twitter.com/godwinamila

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


Re: [Dev] Bhaviour of OIDC 'prompt=none' when logged in

2016-07-19 Thread Hasanthi Purnima Dissanayake
Hi All,
I got a response from OIDC community and according them handling consent is
implementation specific. So in other words both the behaviors
1. Considering 'approve' in the same session as pre-configured consent
2. Not considering 'approve' in the same session as pre-configured consent
 can be acceptable.

If we are moving ahead with the current implementation we need to provide
'approve_always' instead of 'approve' in that test case in order to pass
it. So I will keep the implementation as it is and wont introduce the new
behavior.

Thanks,


Hasanthi Dissanayake

Software Engineer | WSO2

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

On Mon, Jul 18, 2016 at 4:56 PM, Hasanthi Purnima Dissanayake <
hasan...@wso2.com> wrote:

> Hi Johann,
>
> No the spec directly says 'If does not have *per-configured consent*'.
> Those days when we were implementing this we interpreted per-configured
> session as 'approve-always' or file based 'skip-consent=true'.
>
> Anyway I will raise this to OIDC community.
>
> Thanks,
>
> Hasanthi Dissanayake
>
> Software Engineer | WSO2
>
> E: hasan...@wso2.com
> M :0718407133| http://wso2.com 
>
> On Mon, Jul 18, 2016 at 4:11 PM, Johann Nallathamby 
> wrote:
>
>> Hmm.. does the spec say anything related to this. If not better we send a
>> mail to OIDC community and check this out. But if the compliance tests are
>> failing lets go ahead with this new behaviour but let's introduce a
>> property to turn back the old behaviour and make the new the default.
>>
>> On Mon, Jul 18, 2016 at 4:05 PM, Hasanthi Purnima Dissanayake <
>> hasan...@wso2.com> wrote:
>>
>>> Hi All,
>>> According to the spec [1] when prompt=none the result should as below.
>>>
 The Authorization Server MUST NOT display any authentication or consent
 user interface pages. An error is returned if an End-User is not already
 authenticated or the Client does not have per-configured consent for the
 requested Claims or does not fulfill other conditions for processing the
 request
>>>
>>>
>>> So if we consider a scenario like
>>> 1. User sends authorization request without any prompt value to the IS
>>> server
>>> 2. Server gives the login page
>>> 3. User provides credentials
>>> 4. Authentication successful and server returns consent page
>>> 5. User provides consent as 'Approve'
>>> 6. User send a authorization request with prompt =none
>>>
>>> According to our current implementation it gives an error page with
>>> consent-required error as the server does not have "trusted_always" in the
>>> db table or "skipConsent=true" in file. But when executing the OIDC
>>> compliance test cases in such a scenario it expects this as a successful
>>> authentication as we have set the consent as approve in the same session.
>>>
>>> So if we are doing this we need to skip the consent page if the their is
>>> a session with consent=approve. Do we need to change our implementation
>>> according to this? Any suggestions will be highly appreciated.
>>>
>>>
>>> The output of the test case is as below.
>>> Trace output
>>>
>>>
>>> 0.000497  AuthorizationRequest 
>>> 0.000903 --> URL: 
>>> https://210.90.95.XXX:9443/oauth2/authorize?scope=openid=hwcw3vhktnBaM99R_uri=https%3A%2F%2Fop.certification.openid.net%3A60746%2Fauthz_cb_type=code_id=4rYClwGnY4CE_XXAkMCoWuI4mnIa
>>> 0.000910 --> BODY: None
>>> 70.472175 <-- 
>>> code=de0696cf-7183-3c31-a13c-92695101e589=hwcw3vhktnBaM99R_state=927dc2d850b486e4a5d76a5f0d0dd3c1829b4e0007e11e58b1a9fbf17a3fff18._ynyYSwWWERr2-QI1X8sDg
>>> 70.472683 AuthorizationResponse: {
>>>   "code": "de0696cf-7183-3c31-a13c-92695101e589",
>>>   "session_state": 
>>> "927dc2d850b486e4a5d76a5f0d0dd3c1829b4e0007e11e58b1a9fbf17a3fff18._ynyYSwWWERr2-QI1X8sDg",
>>>   "state": "hwcw3vhktnBaM99R"
>>> }
>>> 70.473121  AccessTokenRequest 
>>> 70.473556 --> URL: https://210.90.95.XXX:9443/oauth2/token
>>> 70.473561 --> BODY: 
>>> code=de0696cf-7183-3c31-a13c-92695101e589_type=authorization_code_uri=https%3A%2F%2Fop.certification.openid.net%3A60746%2Fauthz_cb
>>> 70.473575 --> HEADERS: {'Content-Type': 
>>> 'application/x-www-form-urlencoded', 'Authorization': u'Basic 
>>> NHJZQ2x3R25ZNENFX1hYQWtNQ29XdUk0bW5JYTpBdE8wenhmNjJLb1lhc1lUb2JPR1JYVlJaWHNh'}
>>> 74.644260 <-- STATUS: 200
>>> 74.644479 <-- BODY: 
>>> 

Re: [Dev] error

2016-07-19 Thread Roshan Wijesena
This has been fixed in RC2.

https://github.com/wso2/product-apim/releases/tag/v2.0.0-rc2

On Mon, Jul 18, 2016 at 6:40 PM, Shavantha Weerasinghe 
wrote:

> hi all
>
> when i attempt to save manage alert details with an email address the
> below exception was thrown. The DB is oracle12c. Server started using
> runConsole.bat the same issue came on publisher store and admin module
>
> regards
> Shavantha Weerasinghe
> Senior Software Engineer QA
> WSO2, Inc.
> lean.enterprise.middleware.
> http://wso2.com
> http://wso2.org
> Tel : 94 11 214 5345
> Fax :94 11 2145300
>
>
> -- Forwarded message --
> From: Shavantha Weerasinghe 
> Date: Mon, Jul 18, 2016 at 6:32 PM
> Subject: error
> To: Nirmal Fernando 
>
>
> Hi
> I see this error when I attempt to save the manage alert types with an
> email
>
>
> trying from JDBC database
> INFO|wrapper|"WSO2 Carbon"|16-07-18 12:55:03|start script
> scripts/trayMessage.gv
> INFO|wrapper|"WSO2 Carbon"|16-07-18 12:55:03|end script
> scripts/trayMessage.gv
> FINEST|240/0|"WSO2 Carbon"|16-07-18 12:55:53|[2016-07-18 12:55:53,778]
> INFO - CarbonAuthenticationUtil 'ad...@tenant.com [1]' logged in at
> [2016-07-18 12:55:53,778+]
> FINEST|240/0|"WSO2 Carbon"|16-07-18 12:55:53|[2016-07-18 12:55:53,848]
> WARN - login:jag Not Retrieving Pending Tasks. Check BPS Connectivity
> FINEST|240/0|"WSO2 Carbon"|16-07-18 12:57:03|[2016-07-18 12:57:03,787]
> ERROR - ApiMgtDAO Failed to save alert preferences
> FINEST|240/0|"WSO2 Carbon"|16-07-18 12:57:03|java.sql.SQLException:
> Invalid column type: getInt not implemented for class
> oracle.jdbc.driver.T4CRowidAccessor
> INFO|wrapper|"WSO2 Carbon"|16-07-18 12:57:03|Trigger found: Exception in
> line:
> INFO|wrapper|"WSO2 Carbon"|16-07-18 12:57:03|java.sql.SQLException:
> Invalid column type: getInt not implemented for class
> oracle.jdbc.driver.T4CRowidAccessor
> FINEST|240/0|"WSO2 Carbon"|16-07-18 12:57:03|   at
> oracle.jdbc.driver.GeneratedAccessor.getInt(GeneratedAccessor.java:412)
> FINEST|240/0|"WSO2 Carbon"|16-07-18 12:57:03|   at
> oracle.jdbc.driver.GeneratedStatement.getInt(GeneratedStatement.java:217)
> INFO|wrapper|"WSO2 Carbon"|16-07-18 12:57:03|start script
> scripts/trayMessage.gv
> FINEST|240/0|"WSO2 Carbon"|16-07-18 12:57:03|   at
> oracle.jdbc.driver.GeneratedScrollableResultSet.getInt(GeneratedScrollableResultSet.java:522)
> INFO|wrapper|"WSO2 Carbon"|16-07-18 12:57:03|end script
> scripts/trayMessage.gv
> FINEST|240/0|"WSO2 Carbon"|16-07-18 12:57:03|   at
> org.wso2.carbon.apimgt.impl.dao.ApiMgtDAO.addAlertTypesConfigInfo(ApiMgtDAO.java:8573)
> FINEST|240/0|"WSO2 Carbon"|16-07-18 12:57:03|   at
> org.wso2.carbon.apimgt.usage.publisher.AlertTypesPublisher.saveAndPublishAlertTypesEvent(AlertTypesPublisher.java:59)
> FINEST|240/0|"WSO2 Carbon"|16-07-18 12:57:03|   at
> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> FINEST|240/0|"WSO2 Carbon"|16-07-18 12:57:03|   at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> FINEST|240/0|"WSO2 Carbon"|16-07-18 12:57:03|   at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> FINEST|240/0|"WSO2 Carbon"|16-07-18 12:57:03|   at
> java.lang.reflect.Method.invoke(Method.java:606)
> FINEST|240/0|"WSO2 Carbon"|16-07-18 12:57:03|   at
> org.mozilla.javascript.MemberBox.invoke(MemberBox.java:126)
> FINEST|240/0|"WSO2 Carbon"|16-07-18 12:57:04|   at
> org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:225)
> FINEST|240/0|"WSO2 Carbon"|16-07-18 12:57:04|   at
> org.mozilla.javascript.optimizer.OptRuntime.callN(OptRuntime.java:52)
> FINEST|240/0|"WSO2 Carbon"|16-07-18 12:57:04|   at
> org.jaggeryjs.rhino.admin.modules.manage_alerts.c1._c_anonymous_3(/admin/modules/manage-alerts/alerts.jag:104)
> FINEST|240/0|"WSO2 Carbon"|16-07-18 12:57:04|   at
> org.jaggeryjs.rhino.admin.modules.manage_alerts.c1.call(/admin/modules/manage-alerts/alerts.jag)
> FINEST|240/0|"WSO2 Carbon"|16-07-18 12:57:04|   at
> org.mozilla.javascript.ScriptRuntime.applyOrCall(ScriptRuntime.java:2430)
> FINEST|240/0|"WSO2 Carbon"|16-07-18 12:57:04|   at
> org.mozilla.javascript.BaseFunction.execIdCall(BaseFunction.java:269)
> FINEST|240/0|"WSO2 Carbon"|16-07-18 12:57:04|   at
> org.mozilla.javascript.IdFunctionObject.call(IdFunctionObject.java:97)
> FINEST|240/0|"WSO2 Carbon"|16-07-18 12:57:04|   at
> org.mozilla.javascript.optimizer.OptRuntime.call2(OptRuntime.java:42)
> FINEST|240/0|"WSO2 Carbon"|16-07-18 12:57:04|   at
> org.jaggeryjs.rhino.admin.modules.manage_alerts.c0._c_anonymous_2(/admin/modules/manage-alerts/module.jag:10)
> FINEST|240/0|"WSO2 Carbon"|16-07-18 12:57:04|   at
> org.jaggeryjs.rhino.admin.modules.manage_alerts.c0.call(/admin/modules/manage-alerts/module.jag)
> FINEST|240/0|"WSO2 Carbon"|16-07-18 12:57:04|   at
> org.mozilla.javascript.optimizer.OptRuntime.callN(OptRuntime.java:52)
> FINEST|240/0|"WSO2 Carbon"|16-07-18 12:57:04|   at
> 

Re: [Dev] [Architecture] [IS] [Analytics] Improvement to use Siddhi streams to send notifications

2016-07-19 Thread Sriskandarajah Suhothayan
Since Option 2 is now possible I think you can move to it now. The
advantage is, with this approach you are not restricted to emails and you
can now use SOAP, REST and other adopters to trigger some actions based on
notifications, which will make IS much more powerful than just sending
emails.

I'm available from 2.30 pm at PG.

Regards
Suho

On Tue, Jul 19, 2016 at 11:17 AM, Johann Nallathamby 
wrote:

> Hi Suho,
>
> On Mon, Jul 18, 2016 at 11:44 PM, Sriskandarajah Suhothayan  > wrote:
>
>> Hi
>>
>> Based on the request of IS team we have recently added support for
>> loading template files from the registry.
>> I think with this feature we can do the mapping at Event Publisher side,
>> then IS can send only the core data for the notification. I think building
>> the whole message at IS is too much customization for emails.
>>
>
> As discussed previously both methods should work.
>
> Replacing placeholder with data in the arbitrary data map was in the
> master at the time and now it should have been release AFAIU. This is what
> Indunil was trying.
>
> And also you guys have added the support to pick registry templates based
> on some place holder values in the registry path. What we discussed was to
> send the 'locale' value as a stream attribute for our use case. If this
> approach works this is also fine for us.
>
> We tried with option1 just to get something working quickly.
>
>
>>
>> Please set up a meeting so we can discuss the possible ways to
>> implementing this.
>>
>> Regards
>> Suho
>>
>> On Mon, Jul 18, 2016 at 5:52 PM, Indunil Upeksha Rathnayake <
>> indu...@wso2.com> wrote:
>>
>>> Hi,
>>>
>>> We are trying to do some improvements to the notification sending module
>>> where we have integrated analytics common features in IS, in order to send
>>> several notifications (ex:Email, SMS).
>>>
>>> Current implementation is in [1], there only the email notification was
>>> focused where we are directly publishing to the EmailEventAdapter.
>>>
>>> Now we are trying to send notifications via publishing an event to the
>>> Event stream without directly calling an Output Adapter. The approach we
>>> have taken is as follows.
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>> *1) In server start up following will be created.i) A stream for each
>>> and every notification type including the necessary attributes.Ex:
>>> Email Notification - a Stream with the subject, body and footer as
>>> attributesii) Event Publishers, registered for each and every stream in the
>>> required Output event adapter type. Ex: Email Notification - event
>>> Publisher in email output event adapter type.2) Publishing an event to
>>> EventStreamService, which includes an arbitrary data map with the necessary
>>> data needed for the specific notification type.  Ex: Email Notification
>>> - Please find the code segments in [2] for having a better understanding.*
>>>
>>> There in IS side, we are selecting a specific email template and will be
>>> filled out the place holders before sending the subject, body and footer as
>>> arbitrary map attributes.
>>>
>>> But even-though we passed an arbitrary data map, when we are sending an
>>> email from the EmailEventAdapter, it won't filter out the subject, body or
>>> header from that arbitrary data map.
>>> As I have understood, if someone pass an event with an arbitrary data
>>> map, the email body will be set as [3] (Refer [4]), it won't filter out the
>>> content(Refer [5]).
>>> Is this has to be worked if we provide *output mappings* for event
>>> publisher as* {{subject}{body}{footer}}* to convert the event to the
>>> supported format?
>>>
>>> I have gone through the code [6], where the event data will be passed
>>> through EventStreamProducer, but there also seems like it's not
>>> possible to send an email in required format(subject, body and footer).
>>>
>>> Really appreciate your comments/suggestions to understand the correct
>>> approach to be taken.
>>>
>>> [1]
>>> https://github.com/wso2-extensions/identity-event-handler-email/blob/master/components/event-handler-email/org.wso2.carbon.identity.event.handler.email/src/main/java/org.wso2.carbon.identity.event.handler.email/handler/EmailEventHandler.java#L164
>>> [2]
>>> https://drive.google.com/a/wso2.com/file/d/0Bz_EQkE2mOgBY00yYVpGelZJNms/view?usp=sharing
>>> [3]
>>> https://drive.google.com/a/wso2.com/file/d/0Bz_EQkE2mOgBNEMtYjJvSFB2emM/view?usp=sharing
>>> [4]
>>> https://github.com/wso2/carbon-analytics-common/blob/master/components/event-publisher/org.wso2.carbon.event.publisher.core/src/main/java/org/wso2/carbon/event/publisher/core/internal/type/text/TextOutputMapper.java#L139
>>> [5]
>>> https://github.com/wso2/carbon-analytics-common/blob/master/components/event-publisher/event-output-adapters/org.wso2.carbon.event.output.adapter.email/src/main/java/org/wso2/carbon/event/output/adapter/email/EmailEventAdapter.java#L233
>>> [6]
>>>