Re: [Dev] [ESB] Issue with Salesforce REST connector
Hi Rajith, Thank you for the reply but I'm using 'init for username password flow' mentioned in [1] [1] https://docs.wso2.com/display/ESBCONNECTORS/Configuring+Salesforce+Operations On Fri, Dec 1, 2017 at 8:31 AM, Rajith Siriwardena wrote: > > Hi Lahiru, > > Aren't you missing following init properties. > >- >intervalTime: The Interval time in milliseconds to check the access >token validity. >- registryPath: Registry path of the connector where the values are >stored. You must give the value as : connectors/ >. > >For example: registryPath = "connectors/salesforcerest". > > > Thanks, > Rajith > > > [1] https://docs.wso2.com/display/ESBCONNECTORS/Configuring+ > Salesforce+Operations > > On Thu, Nov 30, 2017 at 12:56 PM, Lahiru Cooray > wrote: > >> Hi team, >> Im using ESB Salesforce REST connector to performce some operations in SF. >> >> http://ws.apache.org/ns/synapse"; name="sendOrder" >> context="/sendOrder"> >> >> >> >> https://ap5.salesforce.com/ >> XXX >> XXX >> https://login.salesforce.com >> XXX >> X >> XX >> >> >> >> 5 >> >> >> >> >> >> >> >> >> >> >> Init get succeeded but the subsequent API calls get failed saying that >> the session is invalid. >>{ >> "message": "Session expired or invalid", >> "errorCode": "INVALID_SESSION_ID" >> } >> >> I tried to revoke the access token and generating a new one but still I >> face the same issue. highly appreciate your suggestions on this. >> >> >> >> 7-12-01 00:14:47,172] INFO - LogMediator To: >> http://www.w3.org/2005/08/addressing/anonymous, WSAction: , SOAPAction: >> , MessageID: urn:uuid:076481b3-c1f0-4663-a19f-511f2ecd0eee, Direction: >> request, Payload: {"access_token":"XXX!XX","instance_url":" >> https://cs58.salesforce.com","id":"https://te >> st.salesforce.com/id/00D0l0340CrhxEAC/005546F05kaBGQAY >> ","token_type":"Bearer","issued_at":"XXX","signature":" >> X+z6HbpWvod+4DUI="} >> [2017-12-01 00:14:47,174] DEBUG - wire HTTPS-Sender I/O dispatcher-2 << >> "GET //services/data/v40.0/theme HTTP/1.1[\r][\n]" >> [2017-12-01 00:14:47,174] DEBUG - wire HTTPS-Sender I/O dispatcher-2 << >> "Authorization: Bearer !XX[\r][\n]" >> [2017-12-01 00:14:47,174] DEBUG - wire HTTPS-Sender I/O dispatcher-2 << >> "Strict-Transport-Security: max-age=31536000; includeSubDomains[\r][\n]" >> [2017-12-01 00:14:47,174] DEBUG - wire HTTPS-Sender I/O dispatcher-2 << >> "X-ReadOnlyMode: false[\r][\n]" >> [2017-12-01 00:14:47,174] DEBUG - wire HTTPS-Sender I/O dispatcher-2 << >> "Cache-Control: no-cache,must-revalidate,max-a >> ge=0,no-store,private[\r][\n]" >> [2017-12-01 00:14:47,174] DEBUG - wire HTTPS-Sender I/O dispatcher-2 << >> "X-Content-Type-Options: nosniff[\r][\n]" >> [2017-12-01 00:14:47,174] DEBUG - wire HTTPS-Sender I/O dispatcher-2 << >> "Content-Security-Policy: upgrade-insecure-requests[\r][\n]" >> [2017-12-01 00:14:47,174] DEBUG - wire HTTPS-Sender I/O dispatcher-2 << >> "Set-Cookie: BrowserId=9efBu0mDTIWX7as_4T0ihA;Path=/;Domain=.salesforce. >> com;Expires=Mon, 29-Jan-2018 18:44:46 GMT;Max-Age=5184000[\r][\n]" >> [2017-12-01 00:14:47,174] DEBUG - wire HTTPS-Sender I/O dispatcher-2 << >> "Vary: Accept-Encoding[\r][\n]" >> [2017-12-01 00:14:47,174] DEBUG - wire HTTPS-Sender I/O dispatcher-2 << >> "Expires: Thu, 01 Jan 1970 00:00:00 GMT[\r][\n]" >> [2017-12-01 00:14:47,174] DEBUG - wire HTTPS-Sender I/O dispatcher-2 << >> "X-XSS-Protection: 1; mode=block[\r][\n]" >> [2017-12-01 00:14:47,174] DEBUG - wire HTTPS-Sender I/O dispatcher-2 << >> "Content-Type: application/json;charset=UTF-8[\r][\n]" >> [2017-12-01 00:14:47,174] DEBUG - wire HTTPS-Sender I/O dispatcher-2 << >> "Host: ap5.salesforce.com[\r][\n]" >> [2017-12-01 00:14:47,175] DEBUG - wire HTTPS-Sender I/O dispatcher-2 <
[Dev] [ESB] Issue with Salesforce REST connector
Hi team, Im using ESB Salesforce REST connector to performce some operations in SF. http://ws.apache.org/ns/synapse"; name="sendOrder" context="/sendOrder"> https://ap5.salesforce.com/ XXX XXX https://login.salesforce.com XXX X XX 5 Init get succeeded but the subsequent API calls get failed saying that the session is invalid. { "message": "Session expired or invalid", "errorCode": "INVALID_SESSION_ID" } I tried to revoke the access token and generating a new one but still I face the same issue. highly appreciate your suggestions on this. 7-12-01 00:14:47,172] INFO - LogMediator To: http://www.w3.org/2005/08/addressing/anonymous, WSAction: , SOAPAction: , MessageID: urn:uuid:076481b3-c1f0-4663-a19f-511f2ecd0eee, Direction: request, Payload: {"access_token":"XXX!XX","instance_url":" https://cs58.salesforce.com","id":"; https://test.salesforce.com/id/00D0l0340CrhxEAC/005546F05kaBGQAY ","token_type":"Bearer","issued_at":"XXX","signature":"X+z6HbpWvod+4DUI="} [2017-12-01 00:14:47,174] DEBUG - wire HTTPS-Sender I/O dispatcher-2 << "GET //services/data/v40.0/theme HTTP/1.1[\r][\n]" [2017-12-01 00:14:47,174] DEBUG - wire HTTPS-Sender I/O dispatcher-2 << "Authorization: Bearer !XX[\r][\n]" [2017-12-01 00:14:47,174] DEBUG - wire HTTPS-Sender I/O dispatcher-2 << "Strict-Transport-Security: max-age=31536000; includeSubDomains[\r][\n]" [2017-12-01 00:14:47,174] DEBUG - wire HTTPS-Sender I/O dispatcher-2 << "X-ReadOnlyMode: false[\r][\n]" [2017-12-01 00:14:47,174] DEBUG - wire HTTPS-Sender I/O dispatcher-2 << "Cache-Control: no-cache,must-revalidate,max-age=0,no-store,private[\r][\n]" [2017-12-01 00:14:47,174] DEBUG - wire HTTPS-Sender I/O dispatcher-2 << "X-Content-Type-Options: nosniff[\r][\n]" [2017-12-01 00:14:47,174] DEBUG - wire HTTPS-Sender I/O dispatcher-2 << "Content-Security-Policy: upgrade-insecure-requests[\r][\n]" [2017-12-01 00:14:47,174] DEBUG - wire HTTPS-Sender I/O dispatcher-2 << "Set-Cookie: BrowserId=9efBu0mDTIWX7as_4T0ihA;Path=/;Domain=.salesforce.com;Expires=Mon, 29-Jan-2018 18:44:46 GMT;Max-Age=5184000[\r][\n]" [2017-12-01 00:14:47,174] DEBUG - wire HTTPS-Sender I/O dispatcher-2 << "Vary: Accept-Encoding[\r][\n]" [2017-12-01 00:14:47,174] DEBUG - wire HTTPS-Sender I/O dispatcher-2 << "Expires: Thu, 01 Jan 1970 00:00:00 GMT[\r][\n]" [2017-12-01 00:14:47,174] DEBUG - wire HTTPS-Sender I/O dispatcher-2 << "X-XSS-Protection: 1; mode=block[\r][\n]" [2017-12-01 00:14:47,174] DEBUG - wire HTTPS-Sender I/O dispatcher-2 << "Content-Type: application/json;charset=UTF-8[\r][\n]" [2017-12-01 00:14:47,174] DEBUG - wire HTTPS-Sender I/O dispatcher-2 << "Host: ap5.salesforce.com[\r][\n]" [2017-12-01 00:14:47,175] DEBUG - wire HTTPS-Sender I/O dispatcher-2 << "Connection: Keep-Alive[\r][\n]" [2017-12-01 00:14:47,175] DEBUG - wire HTTPS-Sender I/O dispatcher-2 << "User-Agent: Synapse-PT-HttpComponents-NIO[\r][\n]" [2017-12-01 00:14:47,175] DEBUG - wire HTTPS-Sender I/O dispatcher-2 << "[\r][\n]" [2017-12-01 00:14:47,560] DEBUG - wire HTTPS-Sender I/O dispatcher-2 >> "HTTP/1.1 401 Unauthorized[\r][\n]" [2017-12-01 00:14:47,561] DEBUG - wire HTTPS-Sender I/O dispatcher-2 >> "Date: Thu, 30 Nov 2017 18:44:47 GMT[\r][\n]" [2017-12-01 00:14:47,561] DEBUG - wire HTTPS-Sender I/O dispatcher-2 >> "Strict-Transport-Security: max-age=31536000; includeSubDomains[\r][\n]" [2017-12-01 00:14:47,561] DEBUG - wire HTTPS-Sender I/O dispatcher-2 >> "X-Content-Type-Options: nosniff[\r][\n]" [2017-12-01 00:14:47,561] DEBUG - wire HTTPS-Sender I/O dispatcher-2 >> "X-XSS-Protection: 1; mode=block[\r][\n]" [2017-12-01 00:14:47,561] DEBUG - wire HTTPS-Sender I/O dispatcher-2 >> "Content-Security-Policy: upgrade-insecure-requests [\r][\n]" [2017-12-01 00:14:47,561] DEBUG - wire HTTPS-Sender I/O dispatcher-2 >> "Cache-Control: no-cache,must-revalidate,max-age=0,no-store,private[\r][\n]" [2017-12-01 00:14:47,562] DEBUG - wire HTTPS-Sender I/O dispatcher-2 >> "Set-Cookie: BrowserId=nrfXAmi3RPidZl2vKAAAiA;Path=/;Domain=.salesforce.com;Expires=Mon, 29-Jan-2018 18:44:47 GMT;Max-Age=5184000[\r][\n]" [2017-12-01 00:14:47,562] DEBUG - wire HTTPS-Sender I/O dispatcher-2 >> "Expires: Thu, 01 Jan 1970 00:00:00 GMT[\r][\n]" [2017-12-01 00:14:47,562] DEBUG - wire HTTPS-Sender I/O dispatcher-2 >> "WWW-Authenticate: Token[\r][\n]" [2017-12-01 00:14:47,562] DEBUG - wire HTTPS-Sender I/O dispatcher-2 >> "Content-Type: application/json;charset=UTF-8[\r][\n]" [2017-12-01 00:14:47,562] DEBUG - wire HTTPS-Sender I/O dispatcher-2 >> "Transfer-Encoding: chunked[\r][\n]" [2017-12-01 00:14:47,562] DEBUG - wire HTTPS-Sender I/O dispatcher-2 >> "[\r][\n]" [2017-12-01 00:14:47,562] DEBUG - wire HTTPS-Sender I/O dispatcher-2 >> "4B[\r][\n]" [2017-12-01 00:14:47,563] DEBUG - wire HTTPS
[Dev] [Validate Mediator] JSON validation issue
Hi team, Im using ESB 5.0.0 and trying to validate a json payload against a schema. Below is my sample synapse code snippet {"Error":$1"} When I try to send an invalid payload it gets validated but the specific erroneous property is not returned. DEBUG - wire HTTP-Listener I/O dispatcher-3 << "{"Error":the following keywords are unknown and will be ignored: [$id]"}[\r][\n]" Is there a way to access the specific invalid property and return a custom message. Appreciate your help! Regards, Lahiru ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Error when using appm restapi
Hi Susinda, Normally we see this error when the payload is invalid. First please verify the payload with [1]. And carbonContext.getLoggedInUser() can return null when the token is expired. [1] https://docs.wso2.com/display/APPM120/app-manager/publisher/#!/operations#AppsApi#appsAppTypePost On Thu, Jan 26, 2017 at 11:25 AM, Susinda Perera wrote: > Hi All > > I'm getting following error[1] when I use following request to > *https://localhost:9443/api/appm/publisher/v1.1/apps/mobileapp > <https://localhost:9443/api/appm/publisher/v1.1/apps/mobileapp>* to > create a app. Note that Authorization Bearer header is also present. > From debug found that carbonContext.getLoggedInUser() returns null. > Any idea what is wrong or can someone give some insight. > > POST > {"displayName":"Catalog","iconFile":"89e4b6619898.jpg","description":"Sample > application","banner":"402fd08981a33fb8.jpg"," > mediaType":"application\/vnd.wso2-mobileapp+xml","type":" > enterprise","version":"1.0","marketType":"enterprise"," > platform":"android","screenshots":["bd0deb0dd7a4d8ed.jpg"," > 17ade2074eec7adf.jpg","caded496ebe7700c.jpg"]," > provider":"admin","appType":"android","name":"Catalog"," > category":"Business","appmeta":{"path":"2d40ed0e1b22977c. > apk","package":"org.wso2.app.catalog","version":"1.0"}} > > [1] > ERROR - GlobalThrowableMapper One or more request body parameters contain > disallowed values. > > > -- > *Susinda Perera* > Software Engineer > B.Sc.(Eng), M.Sc(Computer Science), AMIE(SL) > Mobile:(+94)716049075 > Blog: susinda.blogspot.com > WSO2 Inc. http://wso2.com/ > Tel : 94 11 214 5345 Fax :94 11 2145300 > > > ___ > Dev mailing list > Dev@wso2.org > http://wso2.org/cgi-bin/mailman/listinfo/dev > > -- *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
Re: [Dev] Account Lock/Disable Feature in IS 6.0.0
On Fri, Jan 20, 2017 at 4:43 PM, Prabath Siriwardena wrote: > Hi Isura, > > Please find my comment inline... > > On Fri, Jan 20, 2017 at 2:02 AM, Isura Karunaratne wrote: > >> Hi all, >> >> >> We are working on implementing account lock/disable features for IS >> 6.0.0. >> >> *Account Lock: * >> >>- User *must not *be able to login to the system. >>- Admin user *can* update the user attributes and assign roles >>(account is active) >>- User cannot start a password recovery flow. >> >> > In summary the user cannot do any actions with the system - but the > Administrators can. > (We could have an option in user's UI to inform/contact admin once the account is locked?) > > >> *Account Disable: * >> >>- User *must not* be able to login to the system. >>- Admin user *can not* update the user attributes and cannot assign >>roles until enabling the account. (inactive state) >>- User cannot start a password recovery flow. >> >> Neither the user nor the Administrator can do any actions on this user. > Special case, the Administrator can enable the user account. > > >> >> >> *When will the account be locked?* >> >> >> >>- Self Signup users until account confirmation >> >> This is special status - and we need to identify this status different > from the account lock. A user in this status can request to resend the > confirmation code. > > Also one (an Administrator) should be able to setup a policy to wipe out > all the unconfirmed accounts after sometime. Also there can be cases we > still let unconfirmed users login to the system - but only a limited set of > functionality is allowed. > >> >>- Try to login with invalid credentials more than configured number >>of attempts. Then the account will be locked configured amount of time. >>(Like 5 minutes). This lock time will be increased if the user locked >> again >>based on a configuration. >>- Provide invalid answers more than configured number of attempts, >>when password recovery >>- User onboarding with Email/SMS verification flow. >> >> Applies the same comment here - for the self-signup > >> >>- When admin needs to block the user to login to the system (lock or >>disable?) >>- When admin initiated password reset flow starts. >>- Being logged into the system on many devices simultaneously? >> >> > We need to identify this states different from the account lock.. > >> >> >> *When will the account be disabled?* >> >> >> >> >> >>- When admin needs to inactivate user. >> >> > >> >> What is the best way handle account disable check? We can do this from a >> inceptor level, then we need to check account disable in each operation. >> >> Thanks >> Isura. >> >> >> >> >> >> *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/ >> >> >> >> > > > -- > Thanks & Regards, > Prabath > > Twitter : @prabath > LinkedIn : http://www.linkedin.com/in/prabathsiriwardena > > Mobile : +1 650 625 7950 <(650)%20625-7950> > > http://facilelogin.com > > ___ > Dev mailing list > Dev@wso2.org > http://wso2.org/cgi-bin/mailman/listinfo/dev > > -- *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
Re: [Dev] [Oracle] How to handle insertion of empty string in oracle.
On Mon, Jan 9, 2017 at 7:54 AM, Isuru Haththotuwa wrote: > > > On Fri, Jan 6, 2017 at 5:19 PM, Uvindra Dias Jayasinha > wrote: > >> Setting a default value for empty fields being sent seems to be best. >> >> Furthermore we can have default values set in our DTO objects in case a >> given field is omitted altogether. >> >> So handling both the above scenarios can overcome the limitation in >> Oracle. >> >> But I dont know if this is good for the REST API user experience, when >> retrieving data that contains these default values. >> > Additionally this could affect the user experience in UIs as well. > > How about we just keep a default value to NULL in DB level and then filter > it from UI? Since anyway Oracle treats zero length String as NULLs, even if > the user enters an empty String it will then be automatically. The rest API > will still return the default value if invoked directly though. > +1 to keep default as NULL which is more natural Further rather than filtering in the UI, how about directly do it in the query itself using COALESCE() built-in function (which is an ANSI standard and better performing than IS NULL) eg: SELECT COALESCE(field_name,'') as field_name //if the field value is null it will map to empty >> On 6 January 2017 at 15:28, Tharindu Dharmarathna >> wrote: >> >>> >>> >>> On Fri, Jan 6, 2017 at 3:26 PM, Tharindu Dharmarathna < >>> tharin...@wso2.com> wrote: >>> >>>> Hi All, >>>> >>>> I faced $Subject in Oracle database while running integration test on >>>> C5 on top. >>>> >>>> *Observation* >>>> >>>> when insert empty string ("") it was save as null in database. >>>> >>>> While going through SO I had found [1] , which did happen in oracle >>>> database. >>>> >>>> >>>> We have come up with several ways to handle empty strings which user >>>> sends through the rest api. >>>> >>>> 1. Validate the request and send error when giving empty strings >>>> 2. Set default value like "N/A" into the fields which send as empty. >>>> >>>> Is there any other way to handle this problem ?. >>>> >>>> [1] - http://stackoverflow.com/questions/13278773/null-vs-empty- >>>> string-in-oracle >>>> >>>> Thanks >>>> >>>> >>>> *Tharindu Dharmarathna*Software Engineer >>>> WSO2 Inc.; http://wso2.com >>>> lean.enterprise.middleware >>>> >>>> mobile: *+94779109091 <+94%2077%20910%209091>* >>>> >>> >>> >>> >>> -- >>> >>> *Tharindu Dharmarathna*Software Engineer >>> WSO2 Inc.; http://wso2.com >>> lean.enterprise.middleware >>> >>> mobile: *+94779109091 <+94%2077%20910%209091>* >>> >> >> >> >> -- >> Regards, >> Uvindra >> >> Mobile: 33962 >> > > > > -- > Thanks and Regards, > > Isuru H. > +94 716 358 048 <+94%2071%20635%208048>* <http://wso2.com/>* > > > > ___ > Dev mailing list > Dev@wso2.org > http://wso2.org/cgi-bin/mailman/listinfo/dev > > -- *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
Re: [Dev] [IS][Analytics] Getting column names of 'Security View Alerts' table from a common place for rendering and PDF generating.
Hi, On Fri, Nov 18, 2016 at 11:34 AM, Danoja Dias wrote: > Hi All, > > The current IS Analytics Alerts Dashboard shows 'Security View Alerts' > table with pagination. > I am implementing a new functionality to download all security alerts data > of the same as a PDF file. > > I need to get the column names of the view alerts table (for specific > alert type/s) to draw the table into the PDF file. In the current > implementation column names of the tables are hard coded in respective > gadget main.js files. > Please clarify this. Do you mean the table column name mapping with a user friendly name is hardcoded? eg: USR_ID > User Id DESC > Description If this is what you meant, I think better option is to change the query and add aliases to columns in the DML query so the both functions can use the same name without a column name mapping. > I decided to add new js file into "IsAnalytics_Gadget_Commons" directory > (this has common js files) to get the column names. Then both > 'IsAnalytics_Gadget_AlertsSummery' and 'IsAnalytics_Gadget_AlertsView' > gadgets can get these column names from a common place. > > Any suggestions or comments on this new implementation are welcome. > > Thanks. > -- > Best Regards, > Danoja Dias > Intern Software Engineering - WSO2 > > Email : dan...@wso2.com > Mobile : +94771160393 > > [image: http://wso2.com/signature] <http://wso2.com/signature> > > _______ > Dev mailing list > Dev@wso2.org > http://wso2.org/cgi-bin/mailman/listinfo/dev > > -- *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
Re: [Dev] Shall we change the convention for placement of DB Query String in Java Code.
On Fri, Nov 4, 2016 at 11:30 AM, Maduranga Siriwardena wrote: > > > On Fri, Nov 4, 2016 at 11:01 AM, Lahiru Cooray wrote: > >> >> >> On Thu, Nov 3, 2016 at 10:57 AM, Maduranga Siriwardena < >> madura...@wso2.com> wrote: >> >>> Hi Ruwan, >>> >>> Having the SQL query in the method itself improves the readability. >>> >>> However in C4 usercore and C5 user store connector current >>> implementation, we have the SQL queries in a central place and load it to a >>> map at the time of the initialization of connector. With this approach one >>> of the advantages we have gained is we can load the SQL queries from a >>> config file (may be to support a new database type without changing the >>> code). How can we do this with the new approach? >>> >> Agreed with RuwanA. -1 for the current approach. Giving the control to >> modify the DML statements as a configuration is not a good practise unless >> if it's an extension point. Is there any reason why we are currently doing >> this? >> >> >>> And when there are different SQL queries for different database types, >>> readability of the method is worsen in my opinion. >>> >> If the query is an ANSI SQL statement, we could have it closer to the >> code and if not +1 to use a factory method separate the statements DB type >> wise. >> > Having 2 patterns at the same time is not a good practice in my opinion. > We have to stick to one of the methods throughout the whole code base. > It can be argued both ways.. Basically more than 90% of the DML statements would be ANSI SQL's. (we may only need to write specific queries when we need to do very limited operations (eg: as you said setting paginations/datetime casting etc). I believe insert/update/delete syntaxes are similar unless a select involves to do a bulk operation. So its easier if we have such queries near to your code. And my opinion is when you do not have a query near to your code block you always know that this is not an ANSI Sql and its a reminder for the developer to do the relevant change in all types. > > The only place I have come across that needs different query types (when > inserting, updating, deleting or selecting data) is when using the limits. > So we may not need worry much about it. > >> >> >>> >>> Thanks, >>> Maduranga. >>> >>> On Tue, Nov 1, 2016 at 12:46 PM, Ruwan Abeykoon wrote: >>> >>>> Hi Rajith, >>>> +1 >>>> >>>> final String insertIdpSql >>>> >>>> On Tue, Nov 1, 2016 at 11:33 AM, Rajith Roshan >>>> wrote: >>>> >>>>> Hi Ruwan, >>>>> >>>>> Since the final variable is not static can we name it using camel case >>>>> convention[1]. Otherwise check style plugin will give errors. >>>>> >>>>> [1] - final String insertIdpSql >>>>> >>>>> Thanks! >>>>> Rajith >>>>> >>>>> On Fri, Oct 28, 2016 at 9:41 AM, Afkham Azeez wrote: >>>>> >>>>>> Query should be close to the code. +1 for Ruwan's proposal. Not only >>>>>> for queries, you should use your judgment when deciding where to place >>>>>> constants as well. In many cases, it makes sense to keep the constants in >>>>>> the relevant class where it is used but people have been blindly putting >>>>>> those into a Constants class. >>>>>> >>>>>> On Fri, Oct 28, 2016 at 8:04 AM, Sumedha Rubasinghe >>>>> > wrote: >>>>>> >>>>>>> I am actually in favour of what Ruwan is suggesting. >>>>>>> >>>>>>> 1. When a problem comes we usually start by looking at the >>>>>>> particular query. There is no need to look at all queries together. >>>>>>> >>>>>>> 2. Having the query close to rest of the jdbc code is easier. >>>>>>> >>>>>>> 3. Regardless of where it is, all queries should be formatted for >>>>>>> readability than putting it as a single liner string >>>>>>> >>>>>>> On Oct 28, 2016 7:27 AM, "Selvaratnam Uthaiyashankar" < >>>>>>> shan...@wso2.com> wrote: >>>>>>> >>>>>>>> Do we have any requirements to see all queries together? If so, >>>>>
Re: [Dev] Shall we change the convention for placement of DB Query String in Java Code.
ent(sqlStmt); >>>>>>>> prepStmt.setInt(1, tenantId); >>>>>>>> prepStmt.setInt(2, MultitenantConstants.SUPER_TENANT_ID); >>>>>>>> prepStmt.setString(3, idPName); >>>>>>>> rs = prepStmt.executeQuery(); >>>>>>>> >>>>>>>> ... >>>>>>>> >>>>>>>> >>>>>>>> However I would propose to keep the query in the same location as the >>>>>>>> SQL parameter binding and result set reading. Shall we make it within >>>>>>>> local final variable(constant) in the method itself. >>>>>>>> >>>>>>>> The advantage is that the Query is visible on the same screen as it is >>>>>>>> being used. This reduces number of screen flips. Also remembering the >>>>>>>> query at somewhere else is error prone. >>>>>>>> >>>>>>>> This also help easy review and do query optimizations. >>>>>>>> >>>>>>>> >>>>>>>> e.g. >>>>>>>> >>>>>>>> final String INSERT_IDP_SQL = "INSERT INTO IDP (NAME, DISPLAY_NAME, >>>>>>>> DESCRIPTION) VALUES(?,?,?)"; >>>>>>>> >>>>>>>> this.jdbcTemplate.executeUpdate(INSERT_IDP_SQL, (preparedStatement, >>>>>>>> bean) -> { >>>>>>>> MetaIdentityProvider metaIdentityProvider = >>>>>>>> identityProvider.getMetaIdentityProvider(); >>>>>>>> preparedStatement.setString(1, metaIdentityProvider.getName()); >>>>>>>> preparedStatement.setString(2, >>>>>>>> metaIdentityProvider.getDisplayName()); >>>>>>>> preparedStatement.setString(3, >>>>>>>> metaIdentityProvider.getDescription()); >>>>>>>> >>>>>>>> ... >>>>>>>> >>>>>>>> >>>>>>>> Please note that they are the same in terms of memory use and >>>>>>>> performance wise as compiler make them constants. >>>>>>>> Putting them as constants serve no purpose as the query will never >>>>>>>> be reused in proper designed Data Access layer. We should reuse the >>>>>>>> code, >>>>>>>> not the query. >>>>>>>> >>>>>>>> WDYT? >>>>>>>> >>>>>>>> -- >>>>>>>> >>>>>>>> *Ruwan Abeykoon* >>>>>>>> *Associate Director/Architect**,* >>>>>>>> *WSO2, Inc. http://wso2.com <https://wso2.com/signature> * >>>>>>>> *lean.enterprise.middleware.* >>>>>>>> >>>>>>>> >>>>>>> >>>>>>> >>>>>>> -- >>>>>>> Sagara Gunathunga >>>>>>> >>>>>>> Associate Director / Architect; WSO2, Inc.; http://wso2.com >>>>>>> V.P Apache Web Services;http://ws.apache.org/ >>>>>>> Linkedin; http://www.linkedin.com/in/ssagara >>>>>>> Blog ; http://ssagara.blogspot.com >>>>>>> >>>>>>> >>>>>> >>>>>> >>>>>> -- >>>>>> S.Uthaiyashankar >>>>>> VP Engineering >>>>>> WSO2 Inc. >>>>>> http://wso2.com/ - "lean . enterprise . middleware" >>>>>> >>>>>> Phone: +94 774895474 >>>>>> >>>>> >>>> >>>> >>>> -- >>>> *Afkham Azeez* >>>> Director of Architecture; WSO2, Inc.; http://wso2.com >>>> Member; Apache Software Foundation; http://www.apache.org/ >>>> * <http://www.apache.org/>* >>>> *email: **az...@wso2.com* >>>> * cell: +94 77 3320919 <%2B94%2077%203320919>blog: * >>>> *http://blog.afkham.org* <http://blog.afkham.org> >>>> *twitter: **http://twitter.com/afkham_azeez* >>>> <http://twitter.com/afkham_azeez> >>>> *linked-in: **http://lk.linkedin.com/in/afkhamazeez >>>> <http://lk.linkedin.com/in/afkhamazeez>* >>>> >>>> *Lean . Enterprise . Middleware* >>>> >>>> ___ >>>> 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> >>> >> >> >> >> -- >> >> *Ruwan Abeykoon* >> *Associate Director/Architect**,* >> *WSO2, Inc. http://wso2.com <https://wso2.com/signature> * >> *lean.enterprise.middleware.* >> >> >> ___ >> Dev mailing list >> Dev@wso2.org >> http://wso2.org/cgi-bin/mailman/listinfo/dev >> >> > > > -- > Maduranga Siriwardena > Software Engineer > WSO2 Inc; http://wso2.com/ > > Email: madura...@wso2.com > Mobile: +94718990591 > Blog: http://madurangasblogs.blogspot.com/ > <http://wso2.com/signature> > > ___ > Dev mailing list > Dev@wso2.org > http://wso2.org/cgi-bin/mailman/listinfo/dev > > -- *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
Re: [Dev] [dev][APIM 1.7] Alternatives for API creation/deletion audit logs
On Thu, Oct 27, 2016 at 2:23 PM, Thilini Cooray wrote: > Hi, > > APIM 1.7 does not support audit logs for operations such as API creation > and deletion, application creation and deletion. > I am looking for alternatives which can be used for collecting audit data. > > Since application data are only stored in AM_DB, we can collect > application related audit data by adding a database trigger for > AM_APPLICATION table. > > However, API details are stored in both AM_DB and Registry DB. > Therefore what is the recommended way for collecting audit data for API > creation and deletion? > > Will it be reliable enough to just add a database trigger for AM_API table > for insertions and deletions ? > > Please note that having triggers in a frequently used transaction table such as AM_API could impact the performance negatively. Thanks. > > -- > Best Regards, > > *Thilini Cooray* > Software Engineer > Mobile : +94 (0) 774 570 112 <%2B94%20%280%29%20774%20570112> > E-mail : thili...@wso2.com > > WSO2 Inc. www.wso2.com > lean.enterprise.middleware > > ___ > Dev mailing list > Dev@wso2.org > http://wso2.org/cgi-bin/mailman/listinfo/dev > > -- *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
Re: [Dev] Why not ship creator and publisher roles pre-built in API-M?
Hi Malintha, Is there a use case to make these internal roles configurable? IMHO, since we are using these internal roles in our code level logics, we could make it mandatory (role creation + assignment of default permissions) without introducing another config parameter. On Thu, Sep 15, 2016 at 2:54 PM, Malintha Amarasinghe wrote: > Hi, > > Adding this by default will give lots of benefits for automation testing > as well.. > > Shall we have a config in api-manager.xml to specify these roles? If so > are we adding it under element? However is > where Publisher web app specific configurations resides. But publisher and > creator roles are not really specific to Publisher web app as they will be > used in REST APIs as well. So what would be the best place to add this > configuration? Under or under a new config.. may be > ? > > Thanks! > Malintha > > On Wed, Sep 14, 2016 at 1:18 PM, Samisa Abeysinghe > wrote: > >> >> On Wed, Sep 14, 2016 at 10:24 AM, Uvindra Dias Jayasinha < >> uvin...@wso2.com> wrote: >> >>> Thats a good point Samisa. >>> >>> We have the subscriber role by default because we need it to set the >>> permissions for users that sign up from the API store. All other user >>> creations need to happen through the carbon admin console anyway so I guess >>> we havent added those other roles by default. >>> >>> But I see no reason why we cannot have these roles already created to >>> make it easier for the end user. >>> >> >> +1 >> >> >>> >>> >>> On 14 September 2016 at 08:57, Samisa Abeysinghe >>> wrote: >>> >>>> We ship subscriber role with proper permissions set. >>>> >>>> https://docs.wso2.com/display/AM200/Adding+User+Roles describes >>>> creator and publisher roles. >>>> But the vanilla product does not have them. >>>> >>>> Why not create and ship them with proper permissions pre-set? Why only >>>> subscriber role? >>>> >>>> Thanks, >>>> Samisa... >>>> >>>> >>>> Samisa Abeysinghe >>>> >>>> Vice President Delivery >>>> >>>> WSO2 Inc. >>>> http://wso2.com >>>> >>>> >>>> ___ >>>> Dev mailing list >>>> Dev@wso2.org >>>> http://wso2.org/cgi-bin/mailman/listinfo/dev >>>> >>>> >>> >>> >>> -- >>> Regards, >>> Uvindra >>> >>> Mobile: 33962 >>> >> >> >> ___ >> Dev mailing list >> Dev@wso2.org >> http://wso2.org/cgi-bin/mailman/listinfo/dev >> >> > > > -- > Malintha Amarasinghe > Software Engineer > *WSO2, Inc. - lean | enterprise | middleware* > http://wso2.com/ > > Mobile : +94 712383306 > > ___ > Dev mailing list > Dev@wso2.org > http://wso2.org/cgi-bin/mailman/listinfo/dev > > -- *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
Re: [Dev] Merge changes to PEP Proxy - https://wso2.org/jira/browse/IDENTITY-4987
Kind reminder! On Thu, Aug 25, 2016 at 12:37 PM, Lahiru Cooray wrote: > Hi, > Could you please review and merge the PR [1] > > [1] https://github.com/wso2-extensions/identity-agent- > entitlement-proxy/pull/15 > > -- > *Lahiru Cooray* > Software Engineer > WSO2, Inc.;http://wso2.com/ > lean.enterprise.middleware > > Mobile: +94 715 654154 > -- *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
[Dev] Merge changes to PEP Proxy - https://wso2.org/jira/browse/IDENTITY-4987
Hi, Could you please review and merge the PR [1] [1] https://github.com/wso2-extensions/identity-agent-entitlement-proxy/pull/15 -- *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
[Dev] Cookie based authorization to PEP proxy
Hi IS team, Regarding [1] which AppM requires to get implemented (IS feature) prior to cloud integration. I'm planning to implement $subject and I would like to share few concerns/feedbacks with you. When looking at the PEPProxyFactory class we find few clients (eg: soap, json, trift, ws xacml, basic auth). So I plan to introduce Cookie base authorization initially only to the soap client which is the most common use case. (AFAIK this is not a valid use case for clients like thrift/basic auth) This will allow users to authenticate using both credentials and authorized cookie. So when the cookie is available it will authenticate using the cookie and if not it will validate the credentials. WDYT? [1] https://wso2.org/jira/browse/IDENTITY-4987 -- *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
Re: [Dev] [AppM] Creating XACML Policies and Service Providers in Tenants
Hi Ishara, Thanks a lot for the info.. On Mon, Aug 8, 2016 at 4:04 PM, Ishara Karunarathna wrote: > Hi Dinusha, > > In this case I think publisher user should be able to create those SP, > XACML policies etc. > Since publisher use is within the publisher role you can assign necessary > permission to that role. > Once user login (SSO) to publisher with his credential he can get a > cookie for that > and he can use that cookie to authenticate to the admin services. > > @Rushmin, > We don't have a authenticator for OAuth token. Better to get a ID token > using OIDC or after validating OAuth token > and create a carbon authenticator like saml carbon authenticator. > > Thanks, > Ishara > > > > > On Mon, Aug 8, 2016 at 3:47 PM, Rushmin Fernando wrote: > >> In addition to creating these entries from the UI, we need to create the >> same using our ReST API as well. And the API is OAuth protected. >> >> Is there an authenticator which gives back a cookie for an OAuth token as >> well ? >> >> On Mon, Aug 8, 2016 at 3:29 PM, Ishara Karunarathna >> wrote: >> >>> Hi Lahiru. >>> >>> >>> Its not the admin user.User trying to do this operation should have >>> enough permission to do this. >>> >>> Use >>> >>> >>> >>> *entitlement/policy/view* >>> >>> Add this permission to the user who is trying to view those policies. >>> >>> >>> BR, >>> >>> Ishara >>> >>> >>> On Mon, Aug 8, 2016 at 3:20 PM, Lahiru Cooray wrote: >>> >>>> + [DEV] >>>> >>>> On Mon, Aug 8, 2016 at 3:19 PM, Lahiru Cooray wrote: >>>> >>>>> Hi all, >>>>> >>>>> *Current behaviour:* >>>>> Currently in AppM, when we are creating XACML policies/Service >>>>> Providers via IS admin services, we are providing the super tenant admin >>>>> credentials (where the credentials are stored in a config) to get >>>>> authenticated. Further, XACML policies/Service providers are only created >>>>> in super tenant and marked as a SAAS app to be used in tenants. >>>>> >>>>> *Problem:* >>>>> As we are moving for AppM - Cloud integration, we are trying to deploy >>>>> these in relevant tenant spaces. So as a solution we have tried to use >>>>> *SAML2SSOAuthenticator*[1] (retrieving a cookie passing the SAML >>>>> response and use the same in subsequent service calls) but figured that >>>>> this is not applicable for non admin users. >>>>> (*eg:* In AppM user story, non admin users should be allowed to >>>>> create apps with XAML policies) >>>>> >>>>> Any suggestions for this would be highly appreciated! >>>>> >>>>> >>>>> [1] https://github.com/wso2/carbon-identity/blob/8cd996c1dc6 >>>>> d9e7c0df491322af6e9ddf1cf3709/components/carbon-authenticato >>>>> rs/saml2-sso-authenticator/org.wso2.carbon.identity.authenti >>>>> cator.saml2.sso/src/main/java/org/wso2/carbon/identity/authe >>>>> nticator/saml2/sso/SAML2SSOAuthenticator.java >>>>> >>>>> -- >>>>> *Lahiru Cooray* >>>>> Software Engineer >>>>> WSO2, Inc.;http://wso2.com/ >>>>> lean.enterprise.middleware >>>>> >>>>> Mobile: +94 715 654154 >>>>> >>>> >>>> >>>> >>>> -- >>>> *Lahiru Cooray* >>>> Software Engineer >>>> WSO2, Inc.;http://wso2.com/ >>>> lean.enterprise.middleware >>>> >>>> Mobile: +94 715 654154 >>>> >>> >>> >>> >>> -- >>> Ishara Karunarathna >>> Associate Technical Lead >>> WSO2 Inc. - lean . enterprise . middleware | wso2.com >>> >>> email: isha...@wso2.com, blog: isharaaruna.blogspot.com, mobile: >>> +94717996791 >>> >>> >>> >> >> >> -- >> *Best Regards* >> >> *Rushmin Fernando* >> *Technical Lead* >> >> WSO2 Inc. <http://wso2.com/> - Lean . Enterprise . Middleware >> >> mobile : +94772891266 >> >> >> > > > -- > Ishara Karunarathna > Associate Technical Lead > WSO2 Inc. - lean . enterprise . middleware | wso2.com > > email: isha...@wso2.com, blog: isharaaruna.blogspot.com, mobile: > +94717996791 > > > -- *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
Re: [Dev] [AppM] Creating XACML Policies and Service Providers in Tenants
+ [DEV] On Mon, Aug 8, 2016 at 3:19 PM, Lahiru Cooray wrote: > Hi all, > > *Current behaviour:* > Currently in AppM, when we are creating XACML policies/Service Providers > via IS admin services, we are providing the super tenant admin credentials > (where the credentials are stored in a config) to get authenticated. > Further, XACML policies/Service providers are only created in super tenant > and marked as a SAAS app to be used in tenants. > > *Problem:* > As we are moving for AppM - Cloud integration, we are trying to deploy > these in relevant tenant spaces. So as a solution we have tried to use > *SAML2SSOAuthenticator*[1] (retrieving a cookie passing the SAML > response and use the same in subsequent service calls) but figured that > this is not applicable for non admin users. > (*eg:* In AppM user story, non admin users should be allowed to create > apps with XAML policies) > > Any suggestions for this would be highly appreciated! > > > [1] https://github.com/wso2/carbon-identity/blob/ > 8cd996c1dc6d9e7c0df491322af6e9ddf1cf3709/components/carbon- > authenticators/saml2-sso-authenticator/org.wso2.carbon. > identity.authenticator.saml2.sso/src/main/java/org/wso2/ > carbon/identity/authenticator/saml2/sso/SAML2SSOAuthenticator.java > > -- > *Lahiru Cooray* > Software Engineer > WSO2, Inc.;http://wso2.com/ > lean.enterprise.middleware > > Mobile: +94 715 654154 > -- *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
Re: [Dev] [VOTE] WSO2 App Manager 1.2.0 RC3
Tested following Scenarios: - SSO and SLO - App visibility restrictions - Resource level role based restriction - Favourite apps/page functionality - Sorting and searching +1 Stable - Go ahead and release. On Wed, Jul 20, 2016 at 11:09 PM, Lahiru Cooray wrote: > Hi Devs, > > This is the 3rd 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-RC3/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/product-app-manager/releases/tag/v1.2.0-RC3 > > 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 > -- *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
[Dev] [VOTE] WSO2 App Manager 1.2.0 RC3
Hi Devs, This is the 3rd 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-RC3/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/product-app-manager/releases/tag/v1.2.0-RC3 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
[Dev] [VOTE] WSO2 App Manager 1.2.0 RC2
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
[Dev] WSO2 App Manager 1.2.0-Beta2 Released!
*WSO2 App Manager 1.2.0-Beta2 Released!* WSO2 App Manager team is pleased to announce WSO2 App Manager 1.2.0-BETA2 release. Download distribution here <http://builder1.us1.wso2.org/~appm/release-1.2.0/Beta2/wso2appm-1.2.0-BETA2.zip>. This release comes with following new features, improvements and bug fixes. New Features [APPM-1442] <https://wso2.org/jira/browse/APPM-1442> - New asset type - Sites. [APPM-1443] <https://wso2.org/jira/browse/APPM-1443> - Configurable subscription options for Web App and Sites asset types. [APPM-1444] <https://wso2.org/jira/browse/APPM-1444> - Multiple version support for Web App and Sites asset types. [APPM-1446] <https://wso2.org/jira/browse/APPM-1446> - Java APIs for all key App Manager functionalities that need to be integrated with device management functionalities. [APPM-1445] <https://wso2.org/jira/browse/APPM-1445> - Role based visibility control for mobile apps [APPM-1441] <https://wso2.org/jira/browse/APPM-1441> - Redesign product REST APIs with JAX-RS implementation and secure with OAuth [APPM-1447] <https://wso2.org/jira/browse/APPM-1447> - Business Owner concept implementation [APPM-1493] <https://wso2.org/jira/browse/APPM-1493> - Supporting custom fields to be added in publisher UI and new REST APIs [APPM-1492] <https://wso2.org/jira/browse/APPM-1492> - One time download link support for mobile apps Improvements [APPM-1437] <https://wso2.org/jira/browse/APPM-1437> - Navigation improvement to Store [APPM-1440] <https://wso2.org/jira/browse/APPM-1440> - New theme for store UI Tasks [APPM-1438] <https://wso2.org/jira/browse/APPM-1438> - Responsive store UI by Boostrap3 upgrade [APPM-1530] <https://wso2.org/jira/browse/APPM-1530> - Kernal version upgrade to 4.4.7 [SECINTDEV-48] <https://support.wso2.com/jira/browse/SECINTDEV-48> - Security Scan Reports and fixes Bug Fixes WSO2 App Manager 1.2.0-beta2 resolved issues <https://wso2.org/jira/issues/?filter=13104> Reporting Problems Issues can be reported through public JIRA <https://wso2.org/jira/browse/APPM> project assigned to WSO2 AppM. 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
[Dev] WSO2 App Manager 1.2.0-Beta Released!
*WSO2 App Manager 1.2.0-Beta Released!* WSO2 App Manager team is pleased to announce WSO2 App Manager 1.2.0-BETA release. Download distribution here <http://builder1.us1.wso2.org/~appm/release-1.2.0/Beta/wso2appm-1.2.0-BETA.zip>. This release comes with following new features, improvements and bug fixes. New Features [APPM-1442] <https://wso2.org/jira/browse/APPM-1442> - New asset type - Sites. [APPM-1443] <https://wso2.org/jira/browse/APPM-1443> - Configurable subscription options for Web App and Sites asset types. [APPM-1444] <https://wso2.org/jira/browse/APPM-1444> - Multiple version support for Web App and Sites asset types. [APPM-1446] <https://wso2.org/jira/browse/APPM-1446> - Java APIs for all key App Manager functionalities that need to be integrated with device management functionalities. [APPM-1445] <https://wso2.org/jira/browse/APPM-1445> - Role based visibility control for mobile apps [APPM-1441] <https://wso2.org/jira/browse/APPM-1441> - Redesign product REST APIs with JAX-RS implementation and secure with OAuth [APPM-1447] <https://wso2.org/jira/browse/APPM-1447> - Business Owner concept implementation [APPM-1493] <https://wso2.org/jira/browse/APPM-1493> - Supporting custom fields to be added in publisher UI and new REST APIs [APPM-1492] <https://wso2.org/jira/browse/APPM-1492> - One time download link support for mobile apps Improvements [APPM-1437] <https://wso2.org/jira/browse/APPM-1437> - Navigation improvement to Store [APPM-1440] <https://wso2.org/jira/browse/APPM-1440> - New theme for store UI Tasks [APPM-1438] <https://wso2.org/jira/browse/APPM-1438> - Responsive store UI by Boostrap3 upgrade [APPM-1439] <https://wso2.org/jira/browse/APPM-1439> - Kernal version upgrade to 4.4.5 Bug Fixes WSO2 App Manager 1.2.0-beta resolved issues <https://wso2.org/jira/issues/?filter=13104> Reporting Problems Issues can be reported through public JIRA <https://wso2.org/jira/browse/APPM> project assigned to WSO2 AppM. 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
[Dev] WSO2 App Manager 1.2.0-ALPHA Released!
*WSO2 App Manager 1.2.0-ALPHA Released!* WSO2 App Manager team is pleased to announce WSO2 App Manager 1.2.0-ALPHA release. Download distribution here <http://builder1.us1.wso2.org/~appm/release-1.2.0/Alpha/wso2appm-1.2.0-ALPHA.zip>. This release comes with following new features, bug fixes and improvements. Bug Fixes WSO2 App Manager 1.2.0-alpha resolved issues <https://wso2.org/jira/issues/?filter=13082> Improvements [APPM-1437] <https://wso2.org/jira/browse/APPM-1437> - Navigation improvement to Store [APPM-1440] <https://wso2.org/jira/browse/APPM-1440> - New theme for store UI New Features [APPM-1442] <https://wso2.org/jira/browse/APPM-1442> - New asset type - Sites. [APPM-1443] <https://wso2.org/jira/browse/APPM-1443> - Configurable subscription options for Web App and Sites asset types. [APPM-1444] <https://wso2.org/jira/browse/APPM-1444> - Multiple version support for Web App and Sites asset types. [APPM-1446] <https://wso2.org/jira/browse/APPM-1446> - Java APIs for all key App Manager functionalities that need to be integrated with device management functionalities. [APPM-1445] <https://wso2.org/jira/browse/APPM-1445> - Role based visibility control for mobile apps [APPM-1441] <https://wso2.org/jira/browse/APPM-1441> - Redesign product REST APIs with JAX-RS implementation and secure with OAuth [APPM-1447] <https://wso2.org/jira/browse/APPM-1447> - Associate business owner for apps Tasks [APPM-1438] <https://wso2.org/jira/browse/APPM-1438> - Responsive store UI by Boostrap3 upgrade [APPM-1439] <https://wso2.org/jira/browse/APPM-1439> - Kernal version upgrade to 4.4.5 Reporting Problems Issues can be reported through public JIRA <https://wso2.org/jira/browse/APPM> project assigned to WSO2 AppM. 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
[Dev] [DEV] WSO2 App Manager 1.2.0 Milestone 5 Released
Hi All, WSO2 App Manager team pleased to announce the WSO2 APP Manager 1.2.0 - Milestone 5 release. It contains following new features and bug fixes. You can download this distribution from below link. http://builder1.us1.wso2.org/~appm/release-1.2.0/M5/wso2appm-1.2.0-M5.zip *New Feature(s) * 1. Oauth secured Rest API's (Web apps) - Store API's - Publisher API's 2. Business Owner concept implementation *Bug Fixes* WSO2 App Manager 1.2.0-M5 resolved issues <https://wso2.org/jira/browse/APPM-1388?filter=12981&jql=project%20%3D%20APPM%20AND%20fixVersion%20%3D%20%221.2.0-M5%22%20AND%20status%20in%20(Resolved%2C%20Closed)> Regards, 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
Re: [Dev] [AppM] Response field filter for REST API
Thanks for the feedbacks. We will continue with: *?field-filter=basic * *?field-filter=all* In other products REST API's also if you have the same use case better to follow the same naming convention to maintain the consistence across platform. Thanks.. On Thu, Apr 28, 2016 at 5:14 PM, Sagara Gunathunga wrote: > > > On Thu, Apr 28, 2016 at 4:50 PM, Dinusha Senanayaka > wrote: > >> >> >> On Thu, Apr 28, 2016 at 4:28 PM, Lahiru Cooray wrote: >> >>> +1 >>> since the query param name already indicates it is a field filter, how >>> about: >>> ?field_filter=basic >>> ?field_filter=all >>> >> > Should be field-filter not field_filter. > > Thanks ! > > >> +1 >> >>> >>> >>> >>> On Thu, Apr 28, 2016 at 3:54 PM, Dinusha Senanayaka >>> wrote: >>> >>>> As we discussed offline, best option for this is to have a API that >>>> user could define fields that he needed (eg: described in [1]). That need >>>> some effort we cannot afford with the time fact right now and we know that, >>>> most of the use cases can be addressed having two filters like Lahiru >>>> suggested. How about following. >>>> >>>> *?field_filter=basicFields* >>>> *?field_filter=allFields* >>>> >>>> [1] >>>> http://www.vinaysahni.com/best-practices-for-a-pragmatic-restful-api#limiting-fields >>>> >>>> Regards, >>>> Dinusha. >>>> >>>> On Thu, Apr 28, 2016 at 3:22 PM, Dilshan Edirisuriya < >>>> ed.dils...@gmail.com> wrote: >>>> >>>>> Sorry I didnt get the context initially. >>>>> >>>>> On 28 April 2016 at 11:06, Lahiru Cooray wrote: >>>>> >>>>>> Hi Dilshan, >>>>>> Yes we have followed the offset/limit approach to limit the response >>>>>> length (eg: no of apps returned) >>>>>> But here our requirement is to limit the data/field in response (eg: >>>>>> attributes of an app) >>>>>> >>>>>> >>>>>> On Thu, Apr 28, 2016 at 11:03 AM, Dilshan Edirisuriya < >>>>>> ed.dils...@gmail.com> wrote: >>>>>> >>>>>>> As in other products[1] why don't you follow the limit offset >>>>>>> approach? It has to be consistent among the platform? >>>>>>> >>>>>>> [1] - >>>>>>> https://github.com/wso2/product-emm/blob/master/modules/apps/jax-rs/mdm-admin/src/main/java/org/wso2/carbon/mdm/api/Operation.java >>>>>>> >>>>>>> Regards, >>>>>>> >>>>>>> Dilshan >>>>>>> >>>>>>> On 28 April 2016 at 10:53, Lahiru Cooray wrote: >>>>>>> >>>>>>>> Hi, >>>>>>>> We are currently implementing REST API for AppM and we need to >>>>>>>> introduce a response field filter to limit the response(fields). >>>>>>>> So I propose to use the a query param, *?field_filter=TOUCH* >>>>>>>> (returns basic data which is default) and *?field_filter=ALL* >>>>>>>> (returns complete dataset). >>>>>>>> Please share your thoughts. >>>>>>>> >>>>>>>> *eg:* >>>>>>>> /apps?field_filter=TOUCH (which is default) >>>>>>>> { >>>>>>>> "previous": "", >>>>>>>> "next": "", >>>>>>>> "list": [ >>>>>>>> { >>>>>>>> "name": "app1", >>>>>>>> "context": "/app1", >>>>>>>> "id": "65c8485d-11d9-4f05-a418-17dfb737e165" >>>>>>>> }, >>>>>>>> { >>>>>>>> "name": "app2", >>>>>>>> "context": "/app2", >>>>>>>> "id": "c9ddf00d-c42f-4299-931c-bcda69c68050" >>>>>>>> } >>>>>>>> ], >>>>>>>> "count": 2 >>>>>>>> } >>>>>>>> >>>>
Re: [Dev] [AppM] Response field filter for REST API
+1 since the query param name already indicates it is a field filter, how about: ?field_filter=basic ?field_filter=all On Thu, Apr 28, 2016 at 3:54 PM, Dinusha Senanayaka wrote: > As we discussed offline, best option for this is to have a API that user > could define fields that he needed (eg: described in [1]). That need some > effort we cannot afford with the time fact right now and we know that, most > of the use cases can be addressed having two filters like Lahiru suggested. > How about following. > > *?field_filter=basicFields* > *?field_filter=allFields* > > [1] > http://www.vinaysahni.com/best-practices-for-a-pragmatic-restful-api#limiting-fields > > Regards, > Dinusha. > > On Thu, Apr 28, 2016 at 3:22 PM, Dilshan Edirisuriya > wrote: > >> Sorry I didnt get the context initially. >> >> On 28 April 2016 at 11:06, Lahiru Cooray wrote: >> >>> Hi Dilshan, >>> Yes we have followed the offset/limit approach to limit the response >>> length (eg: no of apps returned) >>> But here our requirement is to limit the data/field in response (eg: >>> attributes of an app) >>> >>> >>> On Thu, Apr 28, 2016 at 11:03 AM, Dilshan Edirisuriya < >>> ed.dils...@gmail.com> wrote: >>> >>>> As in other products[1] why don't you follow the limit offset approach? >>>> It has to be consistent among the platform? >>>> >>>> [1] - >>>> https://github.com/wso2/product-emm/blob/master/modules/apps/jax-rs/mdm-admin/src/main/java/org/wso2/carbon/mdm/api/Operation.java >>>> >>>> Regards, >>>> >>>> Dilshan >>>> >>>> On 28 April 2016 at 10:53, Lahiru Cooray wrote: >>>> >>>>> Hi, >>>>> We are currently implementing REST API for AppM and we need to >>>>> introduce a response field filter to limit the response(fields). >>>>> So I propose to use the a query param, *?field_filter=TOUCH* (returns >>>>> basic data which is default) and *?field_filter=ALL* (returns >>>>> complete dataset). >>>>> Please share your thoughts. >>>>> >>>>> *eg:* >>>>> /apps?field_filter=TOUCH (which is default) >>>>> { >>>>> "previous": "", >>>>> "next": "", >>>>> "list": [ >>>>> { >>>>> "name": "app1", >>>>> "context": "/app1", >>>>> "id": "65c8485d-11d9-4f05-a418-17dfb737e165" >>>>> }, >>>>> { >>>>> "name": "app2", >>>>> "context": "/app2", >>>>> "id": "c9ddf00d-c42f-4299-931c-bcda69c68050" >>>>> } >>>>> ], >>>>> "count": 2 >>>>> } >>>>> >>>>> /apps?field_filter=All >>>>> { >>>>> "previous": "", >>>>> "next": "", >>>>> "list": [ >>>>> { >>>>> "name": "app1", >>>>> "context": "/app1", >>>>> "id": "65c8485d-11d9-4f05-a418-17dfb737e165", >>>>> "provider": "admin", >>>>> "description": " ", >>>>> "version": "1.0", >>>>> "lifecycleState": "CREATED" >>>>> }, >>>>> { >>>>> "name": "app2", >>>>> "context": "/app2", >>>>> "id": "c9ddf00d-c42f-4299-931c-bcda69c68050", >>>>> "provider": "admin", >>>>> "description": " ", >>>>> "version": "1.0", >>>>> "lifecycleState": "CREATED" >>>>> } >>>>> ], >>>>> "count": 2 >>>>> } >>>>> >>>>> -- >>>>> *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 >>>>> >>>>> >>>> >>> >>> >>> -- >>> *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 >> >> > > > -- > Dinusha Dilrukshi > Associate Technical Lead > WSO2 Inc.: http://wso2.com/ > Mobile: +94725255071 > Blog: http://dinushasblog.blogspot.com/ > -- *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
Re: [Dev] [AppM] Response field filter for REST API
Hi Rushmin, It's just a term which gives a similar meaning for our requirement. Please share if there are any better/standard terms. On Thu, Apr 28, 2016 at 11:06 AM, Rushmin Fernando wrote: > @Dilshan : Lahiru is talking about the amount of the information in one > object (e.g. whether we return all the fields of a mobile app or few fields) > > @Lahiru : From where does the term "TOUCH" come from ? > > On Thu, Apr 28, 2016 at 11:03 AM, Dilshan Edirisuriya < > ed.dils...@gmail.com> wrote: > >> As in other products[1] why don't you follow the limit offset approach? >> It has to be consistent among the platform? >> >> [1] - >> https://github.com/wso2/product-emm/blob/master/modules/apps/jax-rs/mdm-admin/src/main/java/org/wso2/carbon/mdm/api/Operation.java >> >> Regards, >> >> Dilshan >> >> On 28 April 2016 at 10:53, Lahiru Cooray wrote: >> >>> Hi, >>> We are currently implementing REST API for AppM and we need to introduce >>> a response field filter to limit the response(fields). >>> So I propose to use the a query param, *?field_filter=TOUCH* (returns >>> basic data which is default) and *?field_filter=ALL* (returns complete >>> dataset). >>> Please share your thoughts. >>> >>> *eg:* >>> /apps?field_filter=TOUCH (which is default) >>> { >>> "previous": "", >>> "next": "", >>> "list": [ >>> { >>> "name": "app1", >>> "context": "/app1", >>> "id": "65c8485d-11d9-4f05-a418-17dfb737e165" >>> }, >>> { >>> "name": "app2", >>> "context": "/app2", >>> "id": "c9ddf00d-c42f-4299-931c-bcda69c68050" >>> } >>> ], >>> "count": 2 >>> } >>> >>> /apps?field_filter=All >>> { >>> "previous": "", >>> "next": "", >>> "list": [ >>> { >>> "name": "app1", >>> "context": "/app1", >>> "id": "65c8485d-11d9-4f05-a418-17dfb737e165", >>> "provider": "admin", >>> "description": " ", >>> "version": "1.0", >>> "lifecycleState": "CREATED" >>> }, >>> { >>> "name": "app2", >>> "context": "/app2", >>> "id": "c9ddf00d-c42f-4299-931c-bcda69c68050", >>> "provider": "admin", >>> "description": " ", >>> "version": "1.0", >>> "lifecycleState": "CREATED" >>> } >>> ], >>> "count": 2 >>> } >>> >>> -- >>> *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 >>> >>> >> >> ___ >> Dev mailing list >> Dev@wso2.org >> http://wso2.org/cgi-bin/mailman/listinfo/dev >> >> > > > -- > *Rushmin Fernando* > *Technical Lead* > > WSO2 Inc. <http://wso2.com/> - Lean . Enterprise . Middleware > > email : rush...@wso2.com > mobile : +94772310855 > > > -- *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
Re: [Dev] [AppM] Response field filter for REST API
Hi Dilshan, Yes we have followed the offset/limit approach to limit the response length (eg: no of apps returned) But here our requirement is to limit the data/field in response (eg: attributes of an app) On Thu, Apr 28, 2016 at 11:03 AM, Dilshan Edirisuriya wrote: > As in other products[1] why don't you follow the limit offset approach? It > has to be consistent among the platform? > > [1] - > https://github.com/wso2/product-emm/blob/master/modules/apps/jax-rs/mdm-admin/src/main/java/org/wso2/carbon/mdm/api/Operation.java > > Regards, > > Dilshan > > On 28 April 2016 at 10:53, Lahiru Cooray wrote: > >> Hi, >> We are currently implementing REST API for AppM and we need to introduce >> a response field filter to limit the response(fields). >> So I propose to use the a query param, *?field_filter=TOUCH* (returns >> basic data which is default) and *?field_filter=ALL* (returns complete >> dataset). >> Please share your thoughts. >> >> *eg:* >> /apps?field_filter=TOUCH (which is default) >> { >> "previous": "", >> "next": "", >> "list": [ >> { >> "name": "app1", >> "context": "/app1", >> "id": "65c8485d-11d9-4f05-a418-17dfb737e165" >> }, >> { >> "name": "app2", >> "context": "/app2", >> "id": "c9ddf00d-c42f-4299-931c-bcda69c68050" >> } >> ], >> "count": 2 >> } >> >> /apps?field_filter=All >> { >> "previous": "", >> "next": "", >> "list": [ >> { >> "name": "app1", >> "context": "/app1", >> "id": "65c8485d-11d9-4f05-a418-17dfb737e165", >> "provider": "admin", >> "description": " ", >> "version": "1.0", >> "lifecycleState": "CREATED" >> }, >> { >> "name": "app2", >> "context": "/app2", >> "id": "c9ddf00d-c42f-4299-931c-bcda69c68050", >> "provider": "admin", >> "description": " ", >> "version": "1.0", >> "lifecycleState": "CREATED" >> } >> ], >> "count": 2 >> } >> >> -- >> *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 >> >> > -- *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
[Dev] [AppM] Response field filter for REST API
Hi, We are currently implementing REST API for AppM and we need to introduce a response field filter to limit the response(fields). So I propose to use the a query param, *?field_filter=TOUCH* (returns basic data which is default) and *?field_filter=ALL* (returns complete dataset). Please share your thoughts. *eg:* /apps?field_filter=TOUCH (which is default) { "previous": "", "next": "", "list": [ { "name": "app1", "context": "/app1", "id": "65c8485d-11d9-4f05-a418-17dfb737e165" }, { "name": "app2", "context": "/app2", "id": "c9ddf00d-c42f-4299-931c-bcda69c68050" } ], "count": 2 } /apps?field_filter=All { "previous": "", "next": "", "list": [ { "name": "app1", "context": "/app1", "id": "65c8485d-11d9-4f05-a418-17dfb737e165", "provider": "admin", "description": " ", "version": "1.0", "lifecycleState": "CREATED" }, { "name": "app2", "context": "/app2", "id": "c9ddf00d-c42f-4299-931c-bcda69c68050", "provider": "admin", "description": " ", "version": "1.0", "lifecycleState": "CREATED" } ], "count": 2 } -- *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
Re: [Dev] [DEV] WSO2 App Manager 1.2.0 Milestone 4 Released
[Adding architecture list] On Tue, Apr 19, 2016 at 10:14 PM, Lahiru Cooray wrote: > Hi All, > > WSO2 App Manager team pleased to announce > the WSO2 APP Manager 1.2.0 - Milestone 4 release. It contains following new > features, improvements and bug fixes. > > You can download this distribution from below link. > *http://builder1.us1.wso2.org/~appm/release-1.2.0/M4/ > <http://builder1.us1.wso2.org/~appm/release-1.2.0/M4/>* > > > *New Feature(s) * > 1. Oauth secured Rest API's (Mobile apps) > >- Store API's >- Publisher API's >- Store Admin API's > > > > > *Improvement(s)*1. UX improvements in App Store. > > *Bug Fixes* > WSO2 App Manager 1.2.0-M4 resolved issues > <https://wso2.org/jira/browse/APPM-1360?filter=12981&jql=project%20%3D%20APPM%20AND%20fixVersion%20%3D%20%221.2.0-M4%22%20AND%20status%20in%20(Resolved%2C%20Closed)> > > > Regards, > App Manager Team. > > -- > *Lahiru Cooray* > Software Engineer > WSO2, Inc.;http://wso2.com/ > lean.enterprise.middleware > > Mobile: +94 715 654154 > -- *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
[Dev] [DEV] WSO2 App Manager 1.2.0 Milestone 4 Released
Hi All, WSO2 App Manager team pleased to announce the WSO2 APP Manager 1.2.0 - Milestone 4 release. It contains following new features, improvements and bug fixes. You can download this distribution from below link. *http://builder1.us1.wso2.org/~appm/release-1.2.0/M4/ <http://builder1.us1.wso2.org/~appm/release-1.2.0/M4/>* *New Feature(s) * 1. Oauth secured Rest API's (Mobile apps) - Store API's - Publisher API's - Store Admin API's *Improvement(s)*1. UX improvements in App Store. *Bug Fixes* WSO2 App Manager 1.2.0-M4 resolved issues <https://wso2.org/jira/browse/APPM-1360?filter=12981&jql=project%20%3D%20APPM%20AND%20fixVersion%20%3D%20%221.2.0-M4%22%20AND%20status%20in%20(Resolved%2C%20Closed)> Regards, 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
Re: [Dev] Shall we use latest APPM in EMM?
t;>> On Wed, Mar 16, 2016 at 7:03 AM, Lakshman Udayakantha < >>>>>>>>>>>> lakshm...@wso2.com> wrote: >>>>>>>>>>>> >>>>>>>>>>>>> [Adding Dev] >>>>>>>>>>>>> >>>>>>>>>>>>> On Wed, Mar 16, 2016 at 5:40 PM, Prabath Abeysekera < >>>>>>>>>>>>> praba...@wso2.com> wrote: >>>>>>>>>>>>> >>>>>>>>>>>>>> Hi Lakshman, >>>>>>>>>>>>>> >>>>>>>>>>>>>> Of course we should. Would you be able to move this >>>>>>>>>>>>>> discussion to dev@ so we can discuss about any possible >>>>>>>>>>>>>> concerns, etc there. >>>>>>>>>>>>>> >>>>>>>>>>>>>> Cheers, >>>>>>>>>>>>>> Prabath >>>>>>>>>>>>>> >>>>>>>>>>>>>> On Wed, Mar 16, 2016 at 2:53 PM, Lakshman Udayakantha < >>>>>>>>>>>>>> lakshm...@wso2.com> wrote: >>>>>>>>>>>>>> >>>>>>>>>>>>>>> Hi EMM Team, >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> It can be turned off asset types which are not in use in >>>>>>>>>>>>>>> latest APP Manager. There is a configuration called >>>>>>>>>>>>>>> EnabledAssetTypeList in >>>>>>>>>>>>>>> which we can provide only mobileapp to enable mobile apps only >>>>>>>>>>>>>>> in publisher >>>>>>>>>>>>>>> and store. So shall we do the $subject, for the sake of getting >>>>>>>>>>>>>>> future >>>>>>>>>>>>>>> improvements and bug fixes in APPM. >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> @APPM Team: Are there any bad consequences of doing $subject >>>>>>>>>>>>>>> like introducing new bugs to existing store and publisher in >>>>>>>>>>>>>>> EMM(APPM >>>>>>>>>>>>>>> feature version 1.1.1)? >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> Thanks >>>>>>>>>>>>>>> -- >>>>>>>>>>>>>>> Lakshman Udayakantha >>>>>>>>>>>>>>> WSO2 Inc. www.wso2.com >>>>>>>>>>>>>>> lean.enterprise.middleware >>>>>>>>>>>>>>> Mobile: *0714388124 <0714388124>* >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>>> -- >>>>>>>>>>>>>> Prabath Abeysekara >>>>>>>>>>>>>> Technical Lead >>>>>>>>>>>>>> WSO2 Inc. >>>>>>>>>>>>>> Email: praba...@wso2.com >>>>>>>>>>>>>> Mobile: +94774171471 >>>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> -- >>>>>>>>>>>>> Lakshman Udayakantha >>>>>>>>>>>>> WSO2 Inc. www.wso2.com >>>>>>>>>>>>> lean.enterprise.middleware >>>>>>>>>>>>> Mobile: *0714388124 <0714388124>* >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> -- >>>>>>>>>>>> Regards, >>>>>>>>>>>> >>>>>>>>>>>> Chatura Dilan Perera >>>>>>>>>>>> *Senior Software Engineer** - WSO2 Inc.* >>>>>>>>>>>> www.dilan.me >>>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> -- >>>>>>>>>>> Lakshman Udayakantha >>>>>>>>>>> WSO2 Inc. www.wso2.com >>>>>>>>>>> lean.enterprise.middleware >>>>>>>>>>> Mobile: *0714388124 <0714388124>* >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> -- >>>>>>>>>> *Milan Perera *| Software Engineer >>>>>>>>>> WSO2, Inc | lean. enterprise. middleware. >>>>>>>>>> #20, Palm Grove, Colombo 03, Sri Lanka >>>>>>>>>> Mobile: +94 77 309 7088 | Work: +94 11 214 5345 >>>>>>>>>> Email: mi...@wso2.com | Web: www.wso2.com >>>>>>>>>> <http://lk.linkedin.com/in/milanharinduperera> >>>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> -- >>>>>>>>> Dinusha Dilrukshi >>>>>>>>> Associate Technical Lead >>>>>>>>> WSO2 Inc.: http://wso2.com/ >>>>>>>>> Mobile: +94725255071 >>>>>>>>> Blog: http://dinushasblog.blogspot.com/ >>>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> -- >>>>>>>> *Milan Perera *| Software Engineer >>>>>>>> WSO2, Inc | lean. enterprise. middleware. >>>>>>>> #20, Palm Grove, Colombo 03, Sri Lanka >>>>>>>> Mobile: +94 77 309 7088 | Work: +94 11 214 5345 >>>>>>>> Email: mi...@wso2.com | Web: www.wso2.com >>>>>>>> <http://lk.linkedin.com/in/milanharinduperera> >>>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> -- >>>>>>> Lakshman Udayakantha >>>>>>> WSO2 Inc. www.wso2.com >>>>>>> lean.enterprise.middleware >>>>>>> Mobile: *0714388124 <0714388124>* >>>>>>> >>>>>>> >>>>>> >>>>>> >>>>>> -- >>>>>> Dinusha Dilrukshi >>>>>> Associate Technical Lead >>>>>> WSO2 Inc.: http://wso2.com/ >>>>>> Mobile: +94725255071 >>>>>> Blog: http://dinushasblog.blogspot.com/ >>>>>> >>>>> >>>>> >>>>> >>>>> -- >>>>> Prabath Abeysekara >>>>> Technical Lead >>>>> WSO2 Inc. >>>>> Email: praba...@wso2.com >>>>> Mobile: +94774171471 >>>>> >>>> >>>> >>>> >>>> -- >>>> Dinusha Dilrukshi >>>> Associate Technical Lead >>>> WSO2 Inc.: http://wso2.com/ >>>> Mobile: +94725255071 >>>> Blog: http://dinushasblog.blogspot.com/ >>>> >>> >>> >>> >>> -- >>> Prabath Abeysekara >>> Technical Lead >>> WSO2 Inc. >>> Email: praba...@wso2.com >>> Mobile: +94774171471 >>> >> >> >> >> -- >> Lakshman Udayakantha >> WSO2 Inc. www.wso2.com >> lean.enterprise.middleware >> Mobile: *0714388124* >> >> > > > -- > > *Ruwan Abeykoon* > *Architect,* > *WSO2, Inc. http://wso2.com <http://wso2.com/> * > *lean.enterprise.middleware.* > > email: ruw...@wso2.com > -- *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
[Dev] [DEV] WSO2 App Manager 1.2.0 Milestone 2 Released
Hi All, WSO2 App Manager team pleased to announce the WSO2 APP Manager 1.2.0 - Milestone 2 release. It contains following new features, improvements and bug fixes. You can download this distribution from below link. *http://builder1.us1.wso2.org/~appm/release-1.2.0/M2/wso2appm-1.2.0-M2.zip <http://builder1.us1.wso2.org/~appm/release-1.2.0/M2/wso2appm-1.2.0-M2.zip>* *New Features * 1. New asset type - sites. 2. Configurable subscription option for Web App and Sites asset types. 3. Multiple version support for Web App and Sites asset types. 4. Java APIs for all key App Manager functionalities that need to be integrated with device management functionalities. 5. Role based visibility control for mobile apps. *Improvements*1. Navigation improvements in App Store. 2. Add missing functionalities to Store/Publisher REST API and improvements. 3. Responsive store UI by Boostrap3 upgrade. 4. New theme for store UI *Bug Fixes* WSO2 App Manager 1.2.0-M2 resolved issues <https://wso2.org/jira/browse/APPM-1324?filter=12981> Regards, 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
Re: [Dev] WSO2 DAS: SPARK SQL query with UNION producing errors
+1 On Tue, Mar 8, 2016 at 2:03 PM, Charini Nanayakkara wrote: > Hi Lahiru, > In this instance no two tables comprise of identical rows. Therefore the > query doesn't execute combines. I presume that union would be more > efficient than join in such a scenario > > Thank you! > > On Tue, Mar 8, 2016 at 1:43 PM, Lahiru Cooray wrote: > >> Hi Charini, >> In addition, if you could get the same resultset using sql joins (instead >> of unions) you can increase the performance when querying. >> When using union's, it takes a considerable effort when combining the >> distinct results. >> >> On Tue, Mar 8, 2016 at 1:23 PM, Charini Nanayakkara >> wrote: >> >>> Hi Niranda, >>> Thanks a lot! this worked >>> >>> On Tue, Mar 8, 2016 at 12:50 PM, Niranda Perera >>> wrote: >>> >>>> Hi Charini, >>>> >>>> there is a problem with the query here. use the following query >>>> >>>> INSERT OVERWRITE TABLE All_three >>>> >>>> select * from ( >>>> SELECT SYMBOL, VOLUME FROM First >>>> UNION >>>> SELECT SYMBOL, VOLUME FROM Middle >>>> UNION >>>> SELECT SYMBOL, VOLUME FROM Third >>>> >>>> ) temp; >>>> >>>> Essentially what we do here is, wrapping the union result into one >>>> temporary data element named 'temp' and select everything from there. >>>> >>>> SparkSQL parser only takes one single select element in the insert >>>> queries, and at the end of a select query it expects a limit (if >>>> available). therefore, you need to wrap the subsequent select statements >>>> into one select element. >>>> >>>> Hope this resolves your issue >>>> >>>> Best >>>> >>>> On Tue, Mar 8, 2016 at 8:47 AM, Charini Nanayakkara >>>> wrote: >>>> >>>>> Hi, >>>>> The following query was attempted to be executed when performing batch >>>>> analytics with WSO2 DAS using Spark SQL. Tables 'First', 'Middle' and >>>>> 'Third' are required to be combined and written to table 'All_three'. >>>>> >>>>> INSERT OVERWRITE TABLE All_three SELECT SYMBOL, VOLUME FROM First UNION >>>>> SELECT SYMBOL, VOLUME FROM Middle UNION SELECT SYMBOL, VOLUME FROM Third; >>>>> >>>>> >>>>> Following error is displayed on WSO2 DAS when this query is executed: >>>>> >>>>> ERROR: [1.79] failure: ``limit'' expected but `union' found INSERT >>>>> OVERWRITE TABLE X1234_All_three SELECT SYMBOL, VOLUME FROM X1234_First >>>>> UNION SELECT SYMBOL, VOLUME FROM X1234_Middle UNION SELECT SYMBOL, VOLUME >>>>> FROM X1234_Third ^ >>>>> >>>>> >>>>> Using LIMIT with UNION is not a necessity to the best of my knowledge. >>>>> Enclosing the SELECT queries in parentheses too was attempted which didn't >>>>> work. What am I doing wrong here? Thank you in advance! >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> -- >>>>> Charini Vimansha Nanayakkara >>>>> Software Engineer at WSO2 >>>>> Mobile: 0714126293 >>>>> >>>>> >>>>> ___ >>>>> Dev mailing list >>>>> Dev@wso2.org >>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev >>>>> >>>>> >>>> >>>> >>>> -- >>>> *Niranda Perera* >>>> Software Engineer, WSO2 Inc. >>>> Mobile: +94-71-554-8430 >>>> Twitter: @n1r44 <https://twitter.com/N1R44> >>>> https://pythagoreanscript.wordpress.com/ >>>> >>> >>> >>> >>> -- >>> Charini Vimansha Nanayakkara >>> Software Engineer at WSO2 >>> Mobile: 0714126293 >>> >>> >>> ___ >>> Dev mailing list >>> Dev@wso2.org >>> http://wso2.org/cgi-bin/mailman/listinfo/dev >>> >>> >> >> >> -- >> *Lahiru Cooray* >> Software Engineer >> WSO2, Inc.;http://wso2.com/ >> lean.enterprise.middleware >> >> Mobile: +94 715 654154 >> > > > > -- > Charini Vimansha Nanayakkara > Software Engineer at WSO2 > Mobile: 0714126293 > > -- *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
Re: [Dev] WSO2 DAS: SPARK SQL query with UNION producing errors
Hi Charini, In addition, if you could get the same resultset using sql joins (instead of unions) you can increase the performance when querying. When using union's, it takes a considerable effort when combining the distinct results. On Tue, Mar 8, 2016 at 1:23 PM, Charini Nanayakkara wrote: > Hi Niranda, > Thanks a lot! this worked > > On Tue, Mar 8, 2016 at 12:50 PM, Niranda Perera wrote: > >> Hi Charini, >> >> there is a problem with the query here. use the following query >> >> INSERT OVERWRITE TABLE All_three >> >> select * from ( >> SELECT SYMBOL, VOLUME FROM First >> UNION >> SELECT SYMBOL, VOLUME FROM Middle >> UNION >> SELECT SYMBOL, VOLUME FROM Third >> >> ) temp; >> >> Essentially what we do here is, wrapping the union result into one >> temporary data element named 'temp' and select everything from there. >> >> SparkSQL parser only takes one single select element in the insert >> queries, and at the end of a select query it expects a limit (if >> available). therefore, you need to wrap the subsequent select statements >> into one select element. >> >> Hope this resolves your issue >> >> Best >> >> On Tue, Mar 8, 2016 at 8:47 AM, Charini Nanayakkara >> wrote: >> >>> Hi, >>> The following query was attempted to be executed when performing batch >>> analytics with WSO2 DAS using Spark SQL. Tables 'First', 'Middle' and >>> 'Third' are required to be combined and written to table 'All_three'. >>> >>> INSERT OVERWRITE TABLE All_three SELECT SYMBOL, VOLUME FROM First UNION >>> SELECT SYMBOL, VOLUME FROM Middle UNION SELECT SYMBOL, VOLUME FROM Third; >>> >>> >>> Following error is displayed on WSO2 DAS when this query is executed: >>> >>> ERROR: [1.79] failure: ``limit'' expected but `union' found INSERT >>> OVERWRITE TABLE X1234_All_three SELECT SYMBOL, VOLUME FROM X1234_First >>> UNION SELECT SYMBOL, VOLUME FROM X1234_Middle UNION SELECT SYMBOL, VOLUME >>> FROM X1234_Third ^ >>> >>> >>> Using LIMIT with UNION is not a necessity to the best of my knowledge. >>> Enclosing the SELECT queries in parentheses too was attempted which didn't >>> work. What am I doing wrong here? Thank you in advance! >>> >>> >>> >>> >>> >>> -- >>> Charini Vimansha Nanayakkara >>> Software Engineer at WSO2 >>> Mobile: 0714126293 >>> >>> >>> ___________ >>> Dev mailing list >>> Dev@wso2.org >>> http://wso2.org/cgi-bin/mailman/listinfo/dev >>> >>> >> >> >> -- >> *Niranda Perera* >> Software Engineer, WSO2 Inc. >> Mobile: +94-71-554-8430 >> Twitter: @n1r44 <https://twitter.com/N1R44> >> https://pythagoreanscript.wordpress.com/ >> > > > > -- > Charini Vimansha Nanayakkara > Software Engineer at WSO2 > Mobile: 0714126293 > > > ___ > Dev mailing list > Dev@wso2.org > http://wso2.org/cgi-bin/mailman/listinfo/dev > > -- *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
Re: [Dev] [APIM] New Throttling Engine Database Schema Design
On Fri, Mar 4, 2016 at 1:23 PM, Upekka Anuruddhi wrote: > Whats are QUOTA_POLICY_TYPE, QUOTA attributes > > Throttling can be done based on Request Count (Eg: 4000 req/5 min) or > based on Bandwidth (Eg: 100 MB/1 hour). QUOTA_POLICY_TYPE is either > "RequestCount" or "Bandwidth". QUOTA is the number of requests or the > bandwidth allowed. > So, cant we use a master table to store the quota policy types and map the id here to avoid data repetition? > > > why are these duplicated in AM_POLICY, AM_CONDITION tables? > > Consider the scenario "Allow 20 req/min for requests coming from a > particular ip address range and allow 10 req/min for others". In the above > scenario the quota 20 req/min is relevant to condition (AM_CONDITION table) > and 10 req/min is the default quota relevant to Policy (AM_POLICY table). > +1 > > > On Thu, Mar 3, 2016 at 5:42 PM, Nuwan Dias wrote: > >> The condition table needs to hold the Resource URI template as well. >> >> On Thu, Mar 3, 2016 at 4:28 PM, Upekka Anuruddhi wrote: >> >>> Hi All, >>> >>> This is the database design for saving throttling policies in CEP Based >>> Throttling engine for API Manager. >>> Please share your ideas and suggestions on this. >>> >>> Thanks. >>> Upekka >>> >>> >>> -- >>> *Upekka Pathirana* >>> Software Engineering Intern >>> WSO2 Inc.; http://wso2.com >>> Mobile : +94 (0) 714 868488 >>> upe...@wso2.com >>> >>> ___ >>> Dev mailing list >>> Dev@wso2.org >>> http://wso2.org/cgi-bin/mailman/listinfo/dev >>> >>> >> >> >> -- >> Nuwan Dias >> >> Technical Lead - WSO2, Inc. http://wso2.com >> email : nuw...@wso2.com >> Phone : +94 777 775 729 >> > > > > -- > *Upekka Pathirana* > Software Engineering Intern > WSO2 Inc.; http://wso2.com > Mobile : +94 (0) 714 868488 > upe...@wso2.com > -- *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
Re: [Dev] [APIM] New Throttling Engine Database Schema Design
Hi Upekka, Please explain the below concerns: Whats are QUOTA_POLICY_TYPE, QUOTA attributes and why are these duplicated in AM_POLICY, AM_CONDITION tables? (As per my understanding we are setting default values when defining a policy and allow users to override when assigning to a condition. Is it the scenario?) Are policies applied against HTTP_VERBs? or against the Condition? Better to give more meaningful names to attributes UNIT_TIME / TIME_UNIT (AM_CONDITION) On Thu, Mar 3, 2016 at 4:28 PM, Upekka Anuruddhi wrote: > Hi All, > > This is the database design for saving throttling policies in CEP Based > Throttling engine for API Manager. > Please share your ideas and suggestions on this. > > Thanks. > Upekka > > > -- > *Upekka Pathirana* > Software Engineering Intern > WSO2 Inc.; http://wso2.com > Mobile : +94 (0) 714 868488 > upe...@wso2.com > > ___ > Dev mailing list > Dev@wso2.org > http://wso2.org/cgi-bin/mailman/listinfo/dev > > -- *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
[Dev] [AppM] Remove foreign key constraints from STAT tables
Hi, I suggest that we should *not* enforce any referential integrity to Stats related tables. eg: CREATE TABLE IF NOT EXISTS APM_APP_HITS ( UUID VARCHAR(500) NOT NULL, APP_NAME VARCHAR(200) NOT NULL, VERSION VARCHAR(50), CONTEXT VARCHAR(256) NOT NULL, USER_ID VARCHAR(50) NOT NULL, TENANT_ID INTEGER, HIT_TIME TIMESTAMP NOT NULL, PRIMARY KEY (UUID, USER_ID, TENANT_ID, HIT_TIME), FOREIGN KEY (UUID) REFERENCES APM_APP(UUID) ON UPDATE CASCADE ON DELETE CASCADE ); For an example this is a table we use to store stats related information (user App access details). And we have added a foreign key constraint to UUID (with cascade on delete) If the original entry get deleted from the APM_APP, it will also delete the references from this table as well. So we will loose some required information. So I suggest we should maintain the stat tables in a flat structure without any reference to external tables, so need to remove the foreign key constraints. WDYT? -- *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
Re: [Dev] Selenium UI Testing [GREG/ES - Publisher]
Hi Lahiru, I have faced the similar issue and I noticed that some times the dynamically loaded elements are not loading when we are using wait.until() without a driver refresh() So I used a similar code snipped like this: WebDriverWait tempWait = new WebDriverWait(driver, 5); //5 is the waiting time in seconds for (int i = 0; i < 2; i++) { try { tempWait.until(ExpectedConditions.visibilityOfElementLocated(By.cssSelector( "a[href*='/store/assets/webapp/" + appId + "']"))); driver.navigate().refresh(); break; } catch (org.openqa.selenium.TimeoutException e) { //Expected error when no element found } } Here i'm trying two times and waiting a fair time to load the element. On Tue, Feb 9, 2016 at 3:34 PM, Lahiru J Ekanayake wrote: > Hi , > > I have already tried with wait.until method. It will also return timeout > exception searching after given timeout. I think anyway we have to use try > block to check existences of an element. I have looked for a method that > returns ture/false on a given element existence . I'm not sure that kind of > method already in selenium. > Thank you for your help. > > Regards > > On Tue, Feb 9, 2016 at 3:13 PM, Rajeenthini Satkunam > wrote: > >> Hi lahiru, >> >> If you need to check that element is present in the current UI, You can >> go with this method *isElementPresent(By by)*. >> >> for example in your case *driver.**isElementPresent* >> *(By.id("elemnt_id")) *will return true if the element is present in >> current UI or else it will return false.Hope it will help you. >> >> For your reference >> >> [1] - >> https://github.com/wso2/product-ds/blob/master/modules/integration/tests-ui-integration/ui-test-utils/src/main/java/org/wso2/ds/ui/integration/util/DSWebDriver.java#L47 >> >> On Tue, Feb 9, 2016 at 3:01 PM, Lahiru J Ekanayake >> wrote: >> >>> Hi , >>> >>> I'm writing selenium tests for GREG publisher UI. When implementing UI >>> test cases, some situations we need to check whether some elements exists, >>> before click or make any operations on them. >>> Selenium provides, *driver.findElement(By.id("elemnt_id")) * >>> method to find any element by id. Problem is if that element is not >>> exist , it will return an error, saying >>> *org.openqa.selenium.NoSuchElementException: Unable to locate >>> element:{"method":"id","selector":"elemnt_id"}* >>> >>> Is there any way to check the existence of any element , without >>> catching the error? . >>> >>> >>> >>> >>> Regards >>> >>> >>> >>> -- >>> >>> >>> >>> *Lahiru J Ekanayake**Software Engineer* >>> Mobile : +94 (0) 77 8812629 / +94(0) 778509547 >>> Email : lahi...@wso2.com >>> WSO2, Inc.; http://wso2.com/ >>> lean . enterprise . middleware. >>> >>> >>> ___ >>> Dev mailing list >>> Dev@wso2.org >>> http://wso2.org/cgi-bin/mailman/listinfo/dev >>> >>> >> >> >> -- >> >> *Thank You.* >> >> *Rajeenthini Satkunam* >> >> *Associate Software Engineer | WSO2* >> >> >> *E:rajeenth...@wso2.com * >> >> *M :+94770832823 <%2B94770832823> * >> >> > > > -- > > > > *Lahiru J Ekanayake**Software Engineer* > Mobile : +94 (0) 77 8812629 / +94(0) 778509547 > Email : lahi...@wso2.com > WSO2, Inc.; http://wso2.com/ > lean . enterprise . middleware. > > > ___ > Dev mailing list > Dev@wso2.org > http://wso2.org/cgi-bin/mailman/listinfo/dev > > -- *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
Re: [Dev] Issue when starting the server - SSLException: Connection has been shutdown
Hi Dilini, Could you please share the carbon.xml file On Tue, Feb 2, 2016 at 5:37 PM, Dilini Gunatilake wrote: > Hi Carbon Team, > > I wanted to browse the H2 repository and followed the blog in [1] and > configured the carbon.xml file accordingly. But, when I started the pack, I > observed the following error. What could be the reason for this? > > This issue was observed in WSO2 ESB 4.10.0-Milestone 2 and DS 2.0.0 Beta 2 > packs. (carbon 4.4.3) > > ubuntu@ds-long-n1:~/releases/wso2ds-2.0.0-SNAPSHOT/bin$ sh wso2server.sh > JAVA_HOME environment variable is set to /home/ubuntu/software/jdk1.8.0_51 > CARBON_HOME environment variable is set to > /home/ubuntu/releases/wso2ds-2.0.0-SNAPSHOT > Using Java memory options: -Xms256m -Xmx1024m > > [2016-02-02 11:26:27,394] INFO > {org.wso2.carbon.h2.osgi.console.ConsoleService} - Starting H2 Web > server... > [2016-02-02 11:26:28,006] INFO > {org.wso2.carbon.h2.osgi.console.ConsoleService} - Starting H2 TCP > server... > [2016-02-02 11:26:28,030] INFO > {org.wso2.carbon.h2.osgi.console.ConsoleService} - Starting H2 PG server... > org.h2.server.TcpServerThread@273ec7dc Connect > Connect > Disconnect > Close > javax.net.ssl.SSLException: Connection has been shutdown: > javax.net.ssl.SSLHandshakeException: Remote host closed connection during > handshake > at sun.security.ssl.SSLSocketImpl.checkEOF(SSLSocketImpl.java:1541) > at sun.security.ssl.SSLSocketImpl.checkWrite(SSLSocketImpl.java:1553) > at sun.security.ssl.AppOutputStream.write(AppOutputStream.java:71) > at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:82) > at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:140) > at java.io.DataOutputStream.flush(DataOutputStream.java:123) > at org.h2.value.Transfer.flush(Transfer.java:85) > at org.h2.server.TcpServerThread.sendError(TcpServerThread.java:197) > at org.h2.server.TcpServerThread.run(TcpServerThread.java:129) > at java.lang.Thread.run(Thread.java:745) > Caused by: javax.net.ssl.SSLHandshakeException: Remote host closed > connection during handshake > at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:992) > at > sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1375) > at sun.security.ssl.SSLSocketImpl.readDataRecord(SSLSocketImpl.java:928) > at sun.security.ssl.AppInputStream.read(AppInputStream.java:105) > at java.io.BufferedInputStream.fill(BufferedInputStream.java:246) > at java.io.BufferedInputStream.read(BufferedInputStream.java:265) > at java.io.DataInputStream.readInt(DataInputStream.java:387) > at org.h2.value.Transfer.readInt(Transfer.java:145) > at org.h2.server.TcpServerThread.run(TcpServerThread.java:71) > ... 1 more > Caused by: java.io.EOFException: SSL peer shut down incorrectly > at sun.security.ssl.InputRecord.read(InputRecord.java:505) > at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:973) > ... 9 more > org.h2.server.TcpServerThread@273ec7dc Disconnect > org.h2.server.TcpServerThread@273ec7dc Close > [2016-02-02 11:26:29,170] INFO > {org.wso2.carbon.core.internal.CarbonCoreActivator} - Starting WSO2 > Carbon... > [2016-02-02 11:26:29,177] INFO > {org.wso2.carbon.core.internal.CarbonCoreActivator} - Operating System : > Linux 3.13.0-36-generic, amd64 > [2016-02-02 11:26:29,177] INFO > {org.wso2.carbon.core.internal.CarbonCoreActivator} - Java Home: > /home/ubuntu/software/jdk1.8.0_51/jre > [2016-02-02 11:26:29,178] INFO > {org.wso2.carbon.core.internal.CarbonCoreActivator} - Java Version : > 1.8.0_51 > [2016-02-02 11:26:29,181] INFO > {org.wso2.carbon.core.internal.CarbonCoreActivator} - Java VM : > Java HotSpot(TM) 64-Bit Server VM 25.51-b03,Oracle Corporation > > > [1] > http://www.vitharana.org/2012/04/how-to-browse-h2-database-of-wso2.html > > > Thank you. > > Regards, > > -- > > *Dilini GunatilakeSoftware Engineer - QA Team* > Mobile : +94 (0) 771 162518 > dili...@wso2.com > > ___ > Dev mailing list > Dev@wso2.org > http://wso2.org/cgi-bin/mailman/listinfo/dev > > -- *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
Re: [Dev] Error wile building carbon-feature-repository (branch: release-4.2.x)
Hi Tanya, Please refer the below comments: APPM 1.1.0 --> carbon kernel version 4.2.0 --> Jaggery version 0.10.1 We noticed that mentioned Jaggery version in the root POM is invalid and internally jaggery versions are hardcoded and has not used the mentioned version. Sorry about the inconvenience caused. We will fix this. Thank you.. On Sun, Jan 31, 2016 at 9:15 PM, Tanya Madurapperuma wrote: > Hi Dinusha / Lahiru, > > When I checked the APPM releases found out the following according to the > git. > > APPM 1.1.0 --> carbon kernel version 4.2.0 --> Jaggery version 0.10.1 > APPM 2.0.0 --> carbon kernel version 4.4.1 --> Jaggery version 0.10.1 > > There seems to be a mismatch here. Because jaggery 0.10.1 version is > released with carbon 4.4.0 but not with 4.2.x > So there can be compatibility issues in APPM 1.1.0. > > I tried adding 0.10.1 version of jaggery in 4.2.x and when I was trying to > install features pointing to the local p2-repo it threw a version mismatch > issue in org.apache.commons.logging [1] > > Appreciate your insight. Do you require jaggery 0.10.1 to be included in > 4.4.x p2-repo? > > [1] Cannot complete the install because one or more required items could > not be found. Software being installed: Jaggery Server Feature 0.10.1 > (org.jaggeryjs.server.feature.group 0.10.1) Missing requirement: > org.jaggeryjs.hostobjects.feed 0.10.1 (org.jaggeryjs.hostobjects.feed > 0.10.1) requires 'package org.apache.commons.logging [1.2.0,2.0.0)' but it > could not be found Cannot satisfy dependency: From: Jaggery Server Feature > 0.10.1 (org.jaggeryjs.server.feature.group 0.10.1) To: > org.jaggeryjs.hostobjects.feed [0.10.1] > > Thanks, > Tanya > > On Fri, Jan 29, 2016 at 10:52 AM, Niranjan Karunanandham < > niran...@wso2.com> wrote: > >> Hi Tanya, >> >> I have update the repo. Please find the 4.2.x branch for >> carbon-feature-repository here [1]. >> >> [1] - https://github.com/wso2/carbon-feature-repository/tree/4.2.x >> >> Regards, >> Nira >> >> On Fri, Jan 29, 2016 at 10:17 AM, Niranjan Karunanandham < >> niran...@wso2.com> wrote: >> >>> Hi Tanya, >>> >>> Sorry for the delay. Will reply in this thread once the branch is ready. >>> >>> Regards, >>> Nira >>> >>> On Fri, Jan 29, 2016 at 10:05 AM, Tanya Madurapperuma >>> wrote: >>> >>>> Hi Carbon team, >>>> >>>> If there are no objections, could you please create the above branch. >>>> >>>> Thanks, >>>> Tanya >>>> >>>> >>>> On Tue, Jan 26, 2016 at 4:53 PM, KasunG Gajasinghe >>>> wrote: >>>> >>>>> >>>>> >>>>> On Tue, Jan 26, 2016 at 2:37 PM, Niranjan Karunanandham < >>>>> niran...@wso2.com> wrote: >>>>> >>>>>> Hi Tanya, >>>>>> >>>>>> There was only a p2-repo release in the GIthub and there exists a >>>>>> branch called release-4.2.x[1]. This is the release branch and this was >>>>>> done by AmilaD for APIM. IMO if we are to do a new p2-repo release for >>>>>> kernel 4.2.0, then we need to rename this branch to 4.2.x and change the >>>>>> version to 4.2.14-SNAPSHOT and new PRs for 4.2.x p2-repo need to be sent >>>>>> to >>>>>> this branch. >>>>>> >>>>>> >>>>> +1 >>>>> >>>>> >>>>>> @Sameera / Kicha: WDYT? >>>>>> >>>>>> [1] - >>>>>> https://github.com/wso2/carbon-feature-repository/tree/release-4.2.x >>>>>> >>>>>> Regards, >>>>>> Nira >>>>>> >>>>>> On Tue, Jan 26, 2016 at 2:15 PM, Tanya Madurapperuma >>>>>> wrote: >>>>>> >>>>>>> Hi Sameera, >>>>>>> >>>>>>> As per the offline chat I had with Niranjan and Nipuni, in order to >>>>>>> fulfil the above request from the app manager team, we need to have a >>>>>>> development on-going branch for 4.2.x to send the PR with the missing >>>>>>> features. >>>>>>> But we couldn't locate such branch but the released branch >>>>>>> (release-4.2.x) which has the version as 4.2.13 >>>>>>> >>>>>>> Where should we send the PR to? Could you please advis
Re: [Dev] Error wile building carbon-feature-repository (branch: release-4.2.x)
adding Manu and Sinthuja On Mon, Jan 18, 2016 at 5:07 PM, Lahiru Cooray wrote: > Hi Dakshika, > Currently we are using Jaggery Server Feature 0.10.1 and this particular > dependency is not included in released P2 repo. > (https://github.com/wso2/carbon-feature-repository > release-4.2.x branch) > > Could you please update the repo with relevant dependencies so we can > proceed further. > > Thank you. > > > On Sat, Jan 9, 2016 at 4:02 PM, Lahiru Cooray wrote: > >> Hi Chamila, >> Thank you. Now its working. >> >> On Fri, Jan 8, 2016 at 6:09 PM, Chamila Adhikarinayake > > wrote: >> >>> Hi Lahiru, >>> Released the missing repos. You can try building it now. >>> >>> Chamila >>> >>> On Wed, Jan 6, 2016 at 12:32 PM, Lahiru Cooray wrote: >>> >>>> Hi APIM team, >>>> Could you please update the repo with missing versions. >>>> >>>> Thank you.. >>>> >>>> On Tue, Jan 5, 2016 at 7:06 PM, Lahiru Cooray wrote: >>>> >>>>> Hi, >>>>> >>>>> I get the below error while building the carbon-feature-repository ( >>>>> https://github.com/wso2/carbon-feature-repository > release-4.2.x >>>>> branch) >>>>> >>>>> And the required version >>>>> (org.wso2.am:org.wso2.apimgt.gateway-manager.nested.category.feature:zip:1.9.1) >>>>> is not available in the >>>>> http://maven.wso2.org/nexus/content/groups/wso2-public/org/wso2/am/org.wso2.apimgt.gateway-manager.nested.category.feature/ >>>>> >>>>> >>>>> >>>>> [ERROR] Error occured when processing the Feature Artifact: >>>>> org.wso2.am: >>>>> org.wso2.apimgt.gateway-manager.nested.category.feature:1.9.1 >>>>> >>>>> org.apache.maven.plugin.MojoExecutionException: Error occured when >>>>> processing the Feature Artifact: org.wso2.am: >>>>> org.wso2.apimgt.gateway-manager.nested.category.feature:1.9.1 >>>>> >>>>> at >>>>> org.wso2.maven.p2.RepositoryGenMojo.getProcessedFeatureArtifacts(RepositoryGenMojo.java:322) >>>>> >>>>> at >>>>> org.wso2.maven.p2.RepositoryGenMojo.createRepo(RepositoryGenMojo.java:197) >>>>> >>>>> at >>>>> org.wso2.maven.p2.RepositoryGenMojo.execute(RepositoryGenMojo.java:191) >>>>> >>>>> at >>>>> org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101) >>>>> >>>>> at >>>>> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209) >>>>> >>>>> at >>>>> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153) >>>>> >>>>> at >>>>> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145) >>>>> >>>>> at >>>>> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84) >>>>> >>>>> at >>>>> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59) >>>>> >>>>> at >>>>> org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183) >>>>> >>>>> at >>>>> org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161) >>>>> >>>>> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320) >>>>> >>>>> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156) >>>>> >>>>> at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537) >>>>> >>>>> at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196) >>>>> >>>>> at org.apache.maven.cli.MavenCli.main(MavenCli.java:141) >>>>> >>>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) >>>>> >>>>> at >>>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) >>>>> >>>>> at >>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) >>>>> >>>>> at java.lang.reflect.Method.invoke(Method.java:606)
Re: [Dev] Error wile building carbon-feature-repository (branch: release-4.2.x)
Hi Dakshika, Currently we are using Jaggery Server Feature 0.10.1 and this particular dependency is not included in released P2 repo. (https://github.com/wso2/carbon-feature-repository > release-4.2.x branch) Could you please update the repo with relevant dependencies so we can proceed further. Thank you. On Sat, Jan 9, 2016 at 4:02 PM, Lahiru Cooray wrote: > Hi Chamila, > Thank you. Now its working. > > On Fri, Jan 8, 2016 at 6:09 PM, Chamila Adhikarinayake > wrote: > >> Hi Lahiru, >> Released the missing repos. You can try building it now. >> >> Chamila >> >> On Wed, Jan 6, 2016 at 12:32 PM, Lahiru Cooray wrote: >> >>> Hi APIM team, >>> Could you please update the repo with missing versions. >>> >>> Thank you.. >>> >>> On Tue, Jan 5, 2016 at 7:06 PM, Lahiru Cooray wrote: >>> >>>> Hi, >>>> >>>> I get the below error while building the carbon-feature-repository ( >>>> https://github.com/wso2/carbon-feature-repository > release-4.2.x >>>> branch) >>>> >>>> And the required version >>>> (org.wso2.am:org.wso2.apimgt.gateway-manager.nested.category.feature:zip:1.9.1) >>>> is not available in the >>>> http://maven.wso2.org/nexus/content/groups/wso2-public/org/wso2/am/org.wso2.apimgt.gateway-manager.nested.category.feature/ >>>> >>>> >>>> >>>> [ERROR] Error occured when processing the Feature Artifact: org.wso2.am: >>>> org.wso2.apimgt.gateway-manager.nested.category.feature:1.9.1 >>>> >>>> org.apache.maven.plugin.MojoExecutionException: Error occured when >>>> processing the Feature Artifact: org.wso2.am: >>>> org.wso2.apimgt.gateway-manager.nested.category.feature:1.9.1 >>>> >>>> at >>>> org.wso2.maven.p2.RepositoryGenMojo.getProcessedFeatureArtifacts(RepositoryGenMojo.java:322) >>>> >>>> at >>>> org.wso2.maven.p2.RepositoryGenMojo.createRepo(RepositoryGenMojo.java:197) >>>> >>>> at >>>> org.wso2.maven.p2.RepositoryGenMojo.execute(RepositoryGenMojo.java:191) >>>> >>>> at >>>> org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101) >>>> >>>> at >>>> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209) >>>> >>>> at >>>> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153) >>>> >>>> at >>>> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145) >>>> >>>> at >>>> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84) >>>> >>>> at >>>> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59) >>>> >>>> at >>>> org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183) >>>> >>>> at >>>> org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161) >>>> >>>> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320) >>>> >>>> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156) >>>> >>>> at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537) >>>> >>>> at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196) >>>> >>>> at org.apache.maven.cli.MavenCli.main(MavenCli.java:141) >>>> >>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) >>>> >>>> at >>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) >>>> >>>> at >>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) >>>> >>>> at java.lang.reflect.Method.invoke(Method.java:606) >>>> >>>> at >>>> org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290) >>>> >>>> at >>>> org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230) >>>> >>>> at >>>> org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409) >>>> >>>> at >>>> org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:
Re: [Dev] Error wile building carbon-feature-repository (branch: release-4.2.x)
Hi Chamila, Thank you. Now its working. On Fri, Jan 8, 2016 at 6:09 PM, Chamila Adhikarinayake wrote: > Hi Lahiru, > Released the missing repos. You can try building it now. > > Chamila > > On Wed, Jan 6, 2016 at 12:32 PM, Lahiru Cooray wrote: > >> Hi APIM team, >> Could you please update the repo with missing versions. >> >> Thank you.. >> >> On Tue, Jan 5, 2016 at 7:06 PM, Lahiru Cooray wrote: >> >>> Hi, >>> >>> I get the below error while building the carbon-feature-repository ( >>> https://github.com/wso2/carbon-feature-repository > release-4.2.x >>> branch) >>> >>> And the required version >>> (org.wso2.am:org.wso2.apimgt.gateway-manager.nested.category.feature:zip:1.9.1) >>> is not available in the >>> http://maven.wso2.org/nexus/content/groups/wso2-public/org/wso2/am/org.wso2.apimgt.gateway-manager.nested.category.feature/ >>> >>> >>> >>> [ERROR] Error occured when processing the Feature Artifact: org.wso2.am: >>> org.wso2.apimgt.gateway-manager.nested.category.feature:1.9.1 >>> >>> org.apache.maven.plugin.MojoExecutionException: Error occured when >>> processing the Feature Artifact: org.wso2.am: >>> org.wso2.apimgt.gateway-manager.nested.category.feature:1.9.1 >>> >>> at >>> org.wso2.maven.p2.RepositoryGenMojo.getProcessedFeatureArtifacts(RepositoryGenMojo.java:322) >>> >>> at >>> org.wso2.maven.p2.RepositoryGenMojo.createRepo(RepositoryGenMojo.java:197) >>> >>> at >>> org.wso2.maven.p2.RepositoryGenMojo.execute(RepositoryGenMojo.java:191) >>> >>> at >>> org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101) >>> >>> at >>> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209) >>> >>> at >>> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153) >>> >>> at >>> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145) >>> >>> at >>> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84) >>> >>> at >>> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59) >>> >>> at >>> org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183) >>> >>> at >>> org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161) >>> >>> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320) >>> >>> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156) >>> >>> at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537) >>> >>> at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196) >>> >>> at org.apache.maven.cli.MavenCli.main(MavenCli.java:141) >>> >>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) >>> >>> at >>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) >>> >>> at >>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) >>> >>> at java.lang.reflect.Method.invoke(Method.java:606) >>> >>> at >>> org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290) >>> >>> at >>> org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230) >>> >>> at >>> org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409) >>> >>> at >>> org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352) >>> >>> Caused by: org.apache.maven.plugin.MojoExecutionException: ERROR >>> >>> at >>> org.wso2.maven.p2.generate.utils.MavenUtils.getResolvedArtifact(MavenUtils.java:43) >>> >>> at >>> org.wso2.maven.p2.RepositoryGenMojo.getProcessedFeatureArtifacts(RepositoryGenMojo.java:319) >>> >>> ... 23 more >>> >>> Caused by: org.apache.maven.artifact.resolver.ArtifactNotFoundException: >>> Failure to find >>> org.wso2.am:org.wso2.apimgt.gateway-manager.nested.category.feature:zip:1.9.1 >>> in http://maven.wso2.org/nexus/content/repositories/releases/ was >>> cached in the local repository, resolution will not be reattempted until >>>
Re: [Dev] Error wile building carbon-feature-repository (branch: release-4.2.x)
Hi APIM team, Could you please update the repo with missing versions. Thank you.. On Tue, Jan 5, 2016 at 7:06 PM, Lahiru Cooray wrote: > Hi, > > I get the below error while building the carbon-feature-repository ( > https://github.com/wso2/carbon-feature-repository > release-4.2.x branch) > > And the required version > (org.wso2.am:org.wso2.apimgt.gateway-manager.nested.category.feature:zip:1.9.1) > is not available in the > http://maven.wso2.org/nexus/content/groups/wso2-public/org/wso2/am/org.wso2.apimgt.gateway-manager.nested.category.feature/ > > > > [ERROR] Error occured when processing the Feature Artifact: org.wso2.am: > org.wso2.apimgt.gateway-manager.nested.category.feature:1.9.1 > > org.apache.maven.plugin.MojoExecutionException: Error occured when > processing the Feature Artifact: org.wso2.am: > org.wso2.apimgt.gateway-manager.nested.category.feature:1.9.1 > > at > org.wso2.maven.p2.RepositoryGenMojo.getProcessedFeatureArtifacts(RepositoryGenMojo.java:322) > > at > org.wso2.maven.p2.RepositoryGenMojo.createRepo(RepositoryGenMojo.java:197) > > at org.wso2.maven.p2.RepositoryGenMojo.execute(RepositoryGenMojo.java:191) > > at > org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101) > > at > org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209) > > at > org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153) > > at > org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145) > > at > org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84) > > at > org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59) > > at > org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183) > > at > org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161) > > at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320) > > at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156) > > at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537) > > at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196) > > at org.apache.maven.cli.MavenCli.main(MavenCli.java:141) > > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) > > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > > at java.lang.reflect.Method.invoke(Method.java:606) > > at > org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290) > > at > org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230) > > at > org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409) > > at > org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352) > > Caused by: org.apache.maven.plugin.MojoExecutionException: ERROR > > at > org.wso2.maven.p2.generate.utils.MavenUtils.getResolvedArtifact(MavenUtils.java:43) > > at > org.wso2.maven.p2.RepositoryGenMojo.getProcessedFeatureArtifacts(RepositoryGenMojo.java:319) > > ... 23 more > > Caused by: org.apache.maven.artifact.resolver.ArtifactNotFoundException: > Failure to find > org.wso2.am:org.wso2.apimgt.gateway-manager.nested.category.feature:zip:1.9.1 > in http://maven.wso2.org/nexus/content/repositories/releases/ was cached > in the local repository, resolution will not be reattempted until the > update interval of wso2.releases has elapsed or updates are forced > > > Try downloading the file manually from the project website. > > > Then, install it using the command: > > mvn install:install-file -DgroupId=org.wso2.am > -DartifactId=org.wso2.apimgt.gateway-manager.nested.category.feature > -Dversion=1.9.1 -Dpackaging=zip -Dfile=/path/to/file > > > Alternatively, if you host your own repository you can deploy the file > there: > > mvn deploy:deploy-file -DgroupId=org.wso2.am > -DartifactId=org.wso2.apimgt.gateway-manager.nested.category.feature > -Dversion=1.9.1 -Dpackaging=zip -Dfile=/path/to/file -Durl=[url] > -DrepositoryId=[id] > > > > org.wso2.am: > org.wso2.apimgt.gateway-manager.nested.category.feature:zip:1.9.1 > > > from the specified remote repositories: > > wso2.releases ( > http://maven.wso2.org/nexus/content/repositories/releases/, > releases=true, snapshots=true), > > wso2.snapshots ( > http://maven.wso2.org/nexus/content/repositories/snapshots/, > releases=false, snapshots=true), > >
[Dev] Error wile building carbon-feature-repository (branch: release-4.2.x)
ttp://maven.wso2.org/nexus/content/repositories/releases/ was cached in the local repository, resolution will not be reattempted until the update interval of wso2.releases has elapsed or updates are forced at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:538) at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:216) at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolveArtifact(DefaultArtifactResolver.java:193) at org.sonatype.aether.impl.internal.DefaultRepositorySystem.resolveArtifact(DefaultRepositorySystem.java:286) at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:213) ... 27 more Caused by: org.sonatype.aether.transfer.ArtifactNotFoundException: Failure to find org.wso2.am:org.wso2.apimgt.gateway-manager.nested.category.feature:zip:1.9.1 in http://maven.wso2.org/nexus/content/repositories/releases/ was cached in the local repository, resolution will not be reattempted until the update interval of wso2.releases has elapsed or updates are forced at org.sonatype.aether.impl.internal.DefaultUpdateCheckManager.newException(DefaultUpdateCheckManager.java:230) at org.sonatype.aether.impl.internal.DefaultUpdateCheckManager.checkArtifact(DefaultUpdateCheckManager.java:204) at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:427) ... 31 more [INFO] [INFO] BUILD FAILURE [INFO] [INFO] Total time: 2.431s [INFO] Finished at: Tue Jan 05 18:41:24 IST 2016 [INFO] Final Memory: 11M/491M [INFO] [ERROR] Failed to execute goal org.wso2.maven:carbon-p2-plugin:1.5.3:p2-repo-gen (2-p2-repo-generation) on project wso2carbon-feature-repository: Error occured when processing the Feature Artifact: org.wso2.am:org.wso2.apimgt.gateway-manager.nested.category.feature:1.9.1: ERROR: Failure to find org.wso2.am:org.wso2.apimgt.gateway-manager.nested.category.feature:zip:1.9.1 in http://maven.wso2.org/nexus/content/repositories/releases/ was cached in the local repository, resolution will not be reattempted until the update interval of wso2.releases has elapsed or updates are forced [ERROR] [ERROR] Try downloading the file manually from the project website. [ERROR] [ERROR] Then, install it using the command: [ERROR] mvn install:install-file -DgroupId=org.wso2.am -DartifactId=org.wso2.apimgt.gateway-manager.nested.category.feature -Dversion=1.9.1 -Dpackaging=zip -Dfile=/path/to/file [ERROR] [ERROR] Alternatively, if you host your own repository you can deploy the file there: [ERROR] mvn deploy:deploy-file -DgroupId=org.wso2.am -DartifactId=org.wso2.apimgt.gateway-manager.nested.category.feature -Dversion=1.9.1 -Dpackaging=zip -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id] [ERROR] [ERROR] [ERROR] org.wso2.am: org.wso2.apimgt.gateway-manager.nested.category.feature:zip:1.9.1 [ERROR] [ERROR] from the specified remote repositories: [ERROR] wso2.releases ( http://maven.wso2.org/nexus/content/repositories/releases/, releases=true, snapshots=true), [ERROR] wso2.snapshots ( http://maven.wso2.org/nexus/content/repositories/snapshots/, releases=false, snapshots=true), [ERROR] wso2-nexus (http://maven.wso2.org/nexus/content/groups/wso2-public/, releases=true, snapshots=true), [ERROR] central (http://repo.maven.apache.org/maven2, releases=true, snapshots=false) [ERROR] -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException -- *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
Re: [Dev] Platform test - Copy files to another servers conf directory.
Hi Irham, I think creating a symlink to ~/conf/ directory might do this. eg: http://stackoverflow.com/questions/1951742/how-to-symlink-a-file-in-linux On Tue, Sep 22, 2015 at 12:42 PM, Irham Iqbal wrote: > Hi All, > > I am writing a platform test for APIM scenario[1]. In this I need to copy > some epr files to BPS conf directory before start BPS. In order to do that > I need BPS home directory, BPS can be in another machine as well. I > thought of copy the necessary files to the BPS pack manually before start > the BPS. Any ideas to automate this please ? > > [1] > https://docs.wso2.com/display/AM190/Adding+an+Application+Creation+Workflow > > Thanks, > Iqbal > -- > Irham Iqbal > Software Engineer - Test Automation > WSO2, Inc.: http://wso2.com > lean. enterprise. middleware > phone: +94 777888452 > > ___ > Dev mailing list > Dev@wso2.org > http://wso2.org/cgi-bin/mailman/listinfo/dev > > -- *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
Re: [Dev] WSO2 Committers += CD Athuraliya
Congratulations CD...!!! On Fri, Jul 31, 2015 at 2:04 PM, Nirmal Fernando wrote: > Hi All, > > It's my pleasure to announce *CD Athuraliya* as a *WSO2 Committer*. He > has been a key contributor to the *WSO2 Machine Learner *Product and in > recognition of his excellent work, he had been voted as a WSO2 Committer. > > Congratulations CD and keep up the good work! > > -- > > Thanks & regards, > Nirmal > > Associate Technical Lead - Data Technologies Team, WSO2 Inc. > Mobile: +94715779733 > Blog: http://nirmalfdo.blogspot.com/ > > > > ___ > Dev mailing list > Dev@wso2.org > http://wso2.org/cgi-bin/mailman/listinfo/dev > > -- *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
Re: [Dev] Do we have free hosting for WSO2 APP Manager
Hi Nifras, Your requirement is not much clear. WSO2 APP Manager is a server which you can download freely from [1]. (It is not a website/web-application, so you do not need to host in any App server) Please refer [2] to get an understanding about the deployment. [1] http://wso2.com/products/app-manager/ [2] https://docs.wso2.com/display/APPM100/Running+the+Product On Thu, Jul 9, 2015 at 11:16 AM, NIFRAS ISMAIL wrote: > Hi there, > How we host the App Manager in live. Do we have any free hosting? > > Regards. > *M. Nifras Ismail* > [image: LinkedIn] <http://lk.linkedin.com/pub/nifras-ismail/54/343/94b> > > > > ___ > Dev mailing list > Dev@wso2.org > http://wso2.org/cgi-bin/mailman/listinfo/dev > > -- *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
Re: [Dev] Supporting referential integrity in the database of WSO2MB
Hi, Using referential integrity when ever possible is the best practice and it will be a good option to enhance query performance as well. Yes of cause it will be useful in cascade deleting (as you do not need to delete depended data from all the child tables manually) Other than that, it will enhance the performance of your SQL queries specially when you have joins with multiple tables. And mysql, ms-sqlserver and oracle all support cascade deleting but make sure you use the correct syntax in you DDL statement. On Tue, Jul 7, 2015 at 6:13 PM, Sasikala Kottegoda wrote: > Hi Hasitha, > > In a durable topic scenario, for each message received from the publisher, > we generate a number of messages that is equal to the number of durable > subscriptions (with different message IDs). > Therefore, we have each content entry associated to a unique metadata > entry. So I think cascade delete will not be a problem. > > Thank you > > On Tue, Jul 7, 2015 at 3:15 PM, Hasitha Amal De Silva > wrote: > >> Hi guys, >> >> In a durable topic scenario, say we have 2 subscribers A and B, do we >> maintain 2 entries for the same message content @ message_content table ? >> If we refer to the same message_content entry for both subscribers, be wary >> of cascade deletes. >> >> Thanks >> >> On Fri, Jun 26, 2015 at 3:06 PM, Anuja Herath wrote: >> >>> Hi Sasikala, >>> >>> Since we dropped cassandra, this will enable us to use full power of >>> RDBMS. >>> But make sure that mentioned operations will work on MySQL, MS SQL and >>> oracle in the same way. >>> >>> Thanks, >>> Anuja >>> >>> On Fri, Jun 26, 2015 at 2:56 PM, Sasikala Kottegoda >>> wrote: >>> >>>> Hi all, >>>> >>>> Currently our database schema does not support referential integrity >>>> between the tables MB_CONTENT (which stores message contet) and MB_METADATA >>>> (which store message metadata). But message content with no related >>>> metadata is meaningless. >>>> >>>> To address this problem, what we have done is deleting message content >>>> along with metadata. >>>> >>>> But if we have have a foreign key relationship between the two tables, >>>> we will be able to ensure that no message content will be left without >>>> metadata associated. Also, it will reduce the number of database calls that >>>> are made thus speeding up the process. >>>> >>>> Any comments? >>>> >>>> Thank you. >>>> -- >>>> Sasikala Kottegoda >>>> *Software Engineer* >>>> WSO2 Inc., http://wso2.com/ >>>> lean. enterprise. middleware >>>> Mobile: +94 774835928/712792401 >>>> >>>> ___ >>>> Dev mailing list >>>> Dev@wso2.org >>>> http://wso2.org/cgi-bin/mailman/listinfo/dev >>>> >>>> >>> >>> >>> -- >>> Anuja Herath >>> *Software Engineer* >>> *WSO2, Inc.* >>> Mobile : +94 (0)71 429 8861 >>> >>> ___ >>> Dev mailing list >>> Dev@wso2.org >>> http://wso2.org/cgi-bin/mailman/listinfo/dev >>> >>> >> >> >> -- >> Cheers, >> >> Hasitha Amal De Silva >> Software Engineer >> Mobile : 0772037426 >> Blog: http://devnutshell.tumblr.com/ >> WSO2 Inc.: http://wso2.com ( lean.enterprise.middleware. ) >> > > > > -- > Sasikala Kottegoda > *Software Engineer* > WSO2 Inc., http://wso2.com/ > lean. enterprise. middleware > Mobile: +94 774835928/712792401 > > ___ > Dev mailing list > Dev@wso2.org > http://wso2.org/cgi-bin/mailman/listinfo/dev > > -- *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
Re: [Dev] Writing to a database in WSO2 Synapse
Hi Chanaka, You may also refer [1] [1] http://lahirucooray.blogspot.com/2015/05/database-interaction-wso2-esb-lets-say.html On Mon, Jun 1, 2015 at 9:22 AM, Chanaka Sampath Cooray < chanakasampat...@gmail.com> wrote: > Hi all, > > I want to write some information to a database in wso2 synapse level and > retrieve that information to a carbon component in carbon mediation. Can > you suggest me a way of doing that or give me some example code or > reference for that please? > > Thanks, > -- > *Chanaka Sampath Cooray* > Undergraduate | Department of Computer Science and Engineering,University > of Moratuwa > Mobile: +94 71 361 4884 > E-Mail: chanakasampat...@gmail.com > Linked-In: https://lk.linkedin.com/pub/chanaka-sampath/65/221/102 > <https://lk.linkedin.com/pub/chanaka-sampath/65/221/102> > > ___ > Dev mailing list > Dev@wso2.org > http://wso2.org/cgi-bin/mailman/listinfo/dev > > -- *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
Re: [Dev] [DEV] Problem regarding Transaction Handling in MySQL
I believe the better approach is to enforce referential integrity (with cascade on delete) and delete the master record so it will automatically delete the child records. On Wed, May 27, 2015 at 10:20 AM, Sasikala Kottegoda wrote: > Hi all, > > MB stores message metadata and content in two separate tables. > > Currently, message metadata is being deleted once the messages are > delivered, but the content is not (deleted later by a scheduled task). > > What I'm trying to do is to delete (transactional delete) both message > metadata and content once they get delivered. For this, I have created two > prepared statements. I add messages to these two statements and execute the > batches as shown below. > > for (AndesRemovableMetadata md : messagesToRemove) { > //add parameters to delete metadata > metadataRemovalPreparedStatement.setInt(1, queueID); > metadataRemovalPreparedStatement.setLong(2, md.getMessageID()); > metadataRemovalPreparedStatement.addBatch(); > > //add parameters to delete content > contentRemovalPreparedStatment.setLong(1, md.getMessageID()); > contentRemovalPreparedStatment.addBatch(); > } > metadataRemovalPreparedStatement.executeBatch(); > contentRemovalPreparedStatment.executeBatch(); > connection.commit(); > > > This works fine in a normal scenario. But when I kill the MB node (which > acts as the SQL client) suddenly, it seems like the execution of the second > prepared statement is not completed. Meaning that, even though the metadata > is removed from the respective table, the content is not. When I > interchange the statement executions, metadata gets left in the metadata > table and content gets deleted. > > Could I please know what I'm doing wrong? > > Also, another solution to this would be to add a foreign key constraint to > the content table to enable cascade delete. Would that be a better approach? > > Thank you > -- > Sasikala Kottegoda > *Software Engineer* > WSO2 Inc., http://wso2.com/ > lean. enterprise. middleware > Mobile: +94 774835928/712792401 > > ___ > Dev mailing list > Dev@wso2.org > http://wso2.org/cgi-bin/mailman/listinfo/dev > > -- *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
Re: [Dev] [APPM] Improving usability on Application detail view - Publisher
+1 On Wed, Mar 11, 2015 at 2:10 PM, Dakshika Jayathilaka wrote: > Hi Devs, > > I'm working on $subject. Current UI having some usability issues. > > Concerns: > > 1. to make consistent view, we need to add title on each page > 2. IMO *Actions* needs to have proper separation > 3. IMO *Actions* cannot be contained along with Application name > 4. Description section showing incorrect information > > Here is the proposed detail view. > > 1. Application overview page > > > > When you go to edit or copy view, you can see the cancel button in the > context bottom with other > related actions. > > WDYT? > > Thank you, > > Regards, > > *Dakshika Jayathilaka* > Software Engineer > WSO2, Inc. > lean.enterprise.middleware > 0771100911 > > _______ > Dev mailing list > Dev@wso2.org > http://wso2.org/cgi-bin/mailman/listinfo/dev > > -- *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
Re: [Dev] [Jaggery] How to convert String value of true/false to Boolean in Jaggery?
;>> >>>>>>>> [1] >>>>>>>> http://stackoverflow.com/questions/263965/how-can-i-convert-a-string-to-boolean-in-javascript/28588344#28588344 >>>>>>>> >>>>>>>> Thanks, >>>>>>>> Himasha >>>>>>>> >>>>>>>> On Tue, Mar 10, 2015 at 11:03 AM, Abimaran Kugathasan < >>>>>>>> abima...@wso2.com> wrote: >>>>>>>> >>>>>>>>> Hi, >>>>>>>>> >>>>>>>>> I have a query string parameter with value true or false. I need >>>>>>>>> to convert this value to corresponding boolean value for some >>>>>>>>> conditional >>>>>>>>> checking. >>>>>>>>> >>>>>>>>> Currently, I'm using string comparision with == to evaluate. >>>>>>>>> >>>>>>>>> var isPassiveAuthRequired >>>>>>>>> = request.getParameter("passiveAuthRequired"); >>>>>>>>> >>>>>>>>> if('true' == isPassiveAuthRequired) { >>>>>>>>> // >>>>>>>>> } >>>>>>>>> >>>>>>>>> This doesn't look a proper way. I tried >>>>>>>>> Boolean(isPassiveAuthRequired), but it returns false even for value >>>>>>>>> 'true'. >>>>>>>>> >>>>>>>>> Anybody knows a better way? >>>>>>>>> >>>>>>>>> -- >>>>>>>>> Thanks >>>>>>>>> Abimaran Kugathasan >>>>>>>>> >>>>>>>>> Software Engineer | WSO2 Inc >>>>>>>>> Data & APIs Technologies Team >>>>>>>>> Mobile : +94 773922820 >>>>>>>>> >>>>>>>>> <http://stackoverflow.com/users/515034> >>>>>>>>> <http://lk.linkedin.com/in/abimaran> >>>>>>>>> <http://www.lkabimaran.blogspot.com/> >>>>>>>>> <https://github.com/abimaran> <https://twitter.com/abimaran> >>>>>>>>> >>>>>>>>> >>>>>>>>> ___ >>>>>>>>> Dev mailing list >>>>>>>>> Dev@wso2.org >>>>>>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev >>>>>>>>> >>>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> -- >>>>>>>> Himasha Guruge >>>>>>>> *Software Engineer* >>>>>>>> WS*O2* *Inc.* >>>>>>>> Mobile: +94 777459299 >>>>>>>> himas...@wso2.com >>>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> -- >>>>>>> Thanks >>>>>>> Abimaran Kugathasan >>>>>>> >>>>>>> Software Engineer | WSO2 Inc >>>>>>> Data & APIs Technologies Team >>>>>>> Mobile : +94 773922820 >>>>>>> >>>>>>> <http://stackoverflow.com/users/515034> >>>>>>> <http://lk.linkedin.com/in/abimaran> >>>>>>> <http://www.lkabimaran.blogspot.com/> <https://github.com/abimaran> >>>>>>> <https://twitter.com/abimaran> >>>>>>> >>>>>>> >>>>>>> ___ >>>>>>> Dev mailing list >>>>>>> Dev@wso2.org >>>>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev >>>>>>> >>>>>>> >>>>>> >>>>>> >>>>>> -- >>>>>> Tanya Madurapperuma >>>>>> >>>>>> Software Engineer, >>>>>> WSO2 Inc. : wso2.com >>>>>> Mobile : +94718184439 >>>>>> Blog : http://tanyamadurapperuma.blogspot.com >>>>>> >>>>> >>>>> >>>>> >>>>> -- >>>>> Thanks >>>>> Abimaran Kugathasan >>>>> >>>>> Software Engineer | WSO2 Inc >>>>> Data & APIs Technologies Team >>>>> Mobile : +94 773922820 >>>>> >>>>> <http://stackoverflow.com/users/515034> >>>>> <http://lk.linkedin.com/in/abimaran> >>>>> <http://www.lkabimaran.blogspot.com/> <https://github.com/abimaran> >>>>> <https://twitter.com/abimaran> >>>>> >>>>> >>>> >>>> >>>> -- >>>> Tanya Madurapperuma >>>> >>>> Software Engineer, >>>> WSO2 Inc. : wso2.com >>>> Mobile : +94718184439 >>>> Blog : http://tanyamadurapperuma.blogspot.com >>>> >>> >>> >>> >>> -- >>> Thanks >>> Abimaran Kugathasan >>> >>> Software Engineer | WSO2 Inc >>> Data & APIs Technologies Team >>> Mobile : +94 773922820 >>> >>> <http://stackoverflow.com/users/515034> >>> <http://lk.linkedin.com/in/abimaran> >>> <http://www.lkabimaran.blogspot.com/> <https://github.com/abimaran> >>> <https://twitter.com/abimaran> >>> >>> >> >> >> -- >> Tanya Madurapperuma >> >> Software Engineer, >> WSO2 Inc. : wso2.com >> Mobile : +94718184439 >> Blog : http://tanyamadurapperuma.blogspot.com >> > > > > -- > Thanks > Abimaran Kugathasan > > Software Engineer | WSO2 Inc > Data & APIs Technologies Team > Mobile : +94 773922820 > > <http://stackoverflow.com/users/515034> > <http://lk.linkedin.com/in/abimaran> > <http://www.lkabimaran.blogspot.com/> <https://github.com/abimaran> > <https://twitter.com/abimaran> > > > ___ > Dev mailing list > Dev@wso2.org > http://wso2.org/cgi-bin/mailman/listinfo/dev > > -- *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
Re: [Dev] [Announce] WSO2 Committers += Asok Perera
Congratz Asok... On Tue, Mar 10, 2015 at 9:23 AM, Sameera Perera wrote: > Hi all, > > It is with great pleasure that WSO2 welcomes Asok Perera as a WSO2 > committer! > > Congratulations! > > -- > > -- > > *Sameera Perera* > Director of Engineering > gtalk: samee...@wso2.com > Tel : 94 11 214 5345 > Fax :94 11 2145300 > *WSO2, Inc.* <http://wso2.com/> > lean.enterprise.middleware > > > > ___ > Dev mailing list > Dev@wso2.org > http://wso2.org/cgi-bin/mailman/listinfo/dev > > -- *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
Re: [Dev] WSO2 Committers += Aiyadurai Rajeevn
Congratz Rajeevan!!! On Thu, Feb 26, 2015 at 10:00 AM, Dimuthu Leelarathne wrote: > > Hi all, > > It is with great pleasure that WSO2 welcomes Aiyadurai Rajeevn as > WSO2 committer! > > Congratulations! > > thanks, > Dimuthu > -- > Dimuthu Leelarathne > Architect & Product Lead of App Factory > > WSO2, Inc. (http://wso2.com) > email: dimut...@wso2.com > Mobile : 0773661935 > > Lean . Enterprise . Middleware > > ___ > Dev mailing list > Dev@wso2.org > http://wso2.org/cgi-bin/mailman/listinfo/dev > > -- *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
Re: [Dev] [DEV] Need clarification regarding "Allow Anonymous Access" option
Hi, There are two main scenarios: *Allow anonymous access to whole app:* When an user check the "allow anonymous" option, he can access that particular app even without log in to the AppManager.. Any un-authenticated user can access the gateway endpoint URL of the app even without subscribing to the app. *Allow anonymous access to selected url patterns:* Under policy groups there's another section to select "allow anonymous" option. This is basically to allow anonymous access only to the corresponding url pattern/ http verb On Tue, Feb 17, 2015 at 2:39 PM, Yasassri Ratnayake wrote: > Hi AppM Team, > > I would like to get some clarification regarding the "Allow Anonymous > Access:" option which can be selected when creating a webapp. What is the > intended behavior of an Anonymous App? > > With Regards, > -- > Yasassri Ratnayake > Software Engineer - QA > WSO2 Inc ; http://wso2.com > lean.enterprise.middleware > *Mobile : +94715933168 <%2B94715933168>* > *Blog : http://yasassriratnayake.blogspot.com/ > <http://yasassriratnayake.blogspot.com/>* > > ___ > Dev mailing list > Dev@wso2.org > http://wso2.org/cgi-bin/mailman/listinfo/dev > > -- *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
[Dev] .NET Sample Application hosting space
Hi, I'm writing a sample .NET application to test with AppManager and I need to know is there any internal IIS Server available to host my sample app?? -- *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
[Dev] Please review and commit
Hi, Please merge the PR https://github.com/wso2/app-manager/pull/108 -- *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
Re: [Dev] WSO2 Committers += Roshan Wijesena
Congrats Roshan!!! On Tue, Dec 23, 2014 at 2:11 PM, Nuwan Dias wrote: > Hi, > > Its with great pleasure we welcome Roshan Wijesena as a WSO2 committer. > @Roshan, congratulations and keep up the good work! > > Thanks, > NuwanD. > > -- > Nuwan Dias > > Associate Tech Lead - WSO2, Inc. http://wso2.com > email : nuw...@wso2.com > Phone : +94 777 775 729 > > ___ > Dev mailing list > Dev@wso2.org > http://wso2.org/cgi-bin/mailman/listinfo/dev > > -- *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
[Dev] Please review and commit : APPM-265
Hi, Please merge the PR https://github.com/wso2/app-manager/pull/94 -- *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
Re: [Dev] Please review and commit : APPM-155
Hi Ruwan, Yes, there are many similar hard coded texts in the existing code base and I think we need to change all the occurrences.. Thanks.. On Tue, Dec 16, 2014 at 10:25 PM, Ruwan Yatawara wrote: > > Hi Lahiru, > > Small suggestion. Noticed that a bunch of text such as Allows 5 > request(s) per minute. are hard coded. Actually these tier value are > subject to change once the tiers.xml is changed. > > Hence it would be best to load these values dynamically, else it would be > reported as another bug later on. > > Thanks and Regards, > > Ruwan Yatawara > > Senior Software Engineer, > WSO2 Inc. > > email : ruw...@wso2.com > mobile : +94 77 9110413 > blog : http://thoughts.ruwan-ace.com/ > www: :http://wso2.com > > > On Tue, Dec 16, 2014 at 6:55 PM, Lahiru Cooray wrote: >> >> Hi, >> >> Please merge the PR >> https://github.com/wso2/app-manager/pull/92 >> >> >> -- >> *Lahiru Cooray* >> Software Engineer >> WSO2, Inc.;http://wso2.com/ >> lean.enterprise.middleware >> >> Mobile: +94 715 654154 >> > -- *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
[Dev] Please review and commit : APPM-155
Hi, Please merge the PR https://github.com/wso2/app-manager/pull/92 -- *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
[Dev] Please review and commit : APPM-224
Hi, Please merge the PR https://github.com/wso2/app-manager/pull/89 (fix for : https://wso2.org/jira/browse/APPM-224) -- *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
[Dev] Request to commit the patch APPM-49
Hi, Please review and commit the diff attached with [1] [1] https://wso2.org/jira/browse/APPM-49 -- *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
Re: [Dev] Request to commit the patch APPM-254
Hi Ruwan, Done. Please review and commit both SVN and GIT changes.. Thanks.. On Tue, Dec 9, 2014 at 12:26 PM, Ruwan Yatawara wrote: > Hi Lahiru, > > Seems you have included a diff for changes that need to go in to git, in > the archive attached to the jira. > > Please do a pull request to the wso2 repo from yours and include the > reference to said pull request in the Jira instead. Would be easier to > merge that way. Attaching the svn changes as a diff is fine since there is > no other alternative. > > Thanks and Regards, > > Ruwan Yatawara > > Senior Software Engineer, > WSO2 Inc. > > email : ruw...@wso2.com > mobile : +94 77 9110413 > blog : http://thoughts.ruwan-ace.com/ > www: :http://wso2.com > > > On Tue, Dec 9, 2014 at 12:12 PM, Lahiru Cooray wrote: > >> Hi, >> >> Please review and commit the diff attached with [1] >> >> [1] - https://wso2.org/jira/browse/APPM-254 >> >> >> Thanks. >> -- >> *Lahiru Cooray* >> Software Engineer >> WSO2, Inc.;http://wso2.com/ >> lean.enterprise.middleware >> >> Mobile: +94 715 654154 >> >> >> > -- *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
[Dev] Request to commit the patch APPM-254
Hi, Please review and commit the diff attached with [1] [1] - https://wso2.org/jira/browse/APPM-254 Thanks. -- *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
Re: [Dev] what would be more efficient? obj.clone() or new object?
Hi, I'm trying to execute a SQL and store the result in a Json Array. What would be the most efficient code block?? JSONObject obj = new JSONObject(); while (rs.next()) { obj.put("NAME", rs.getString("NAME")); jsonArr.add(obj.clone()); } * Or* while (rs.next()) { obj = new JSONObject(); obj.put("NAME", rs.getString("NAME")); jsonArr.add(obj); } On Fri, Dec 5, 2014 at 11:05 AM, Lahiru Cooray wrote: > > Hi, > > I'm trying to execute a SQL and store the result in a Json Array. > > What would be the most efficient code block?? > > > > JSONObject obj = new JSONObject(); > > while (rs.next()) { > > obj.put("NAME", rs.getString("NAME")); > > jsonArr.add(obj.clone()); > > } > > * Or* > > while (rs.next()) { > > JSONObject obj = new JSONObject(); > > obj.put("NAME", rs.getString("NAME")); > > jsonArr.add(obj); > > } > > > -- > *Lahiru Cooray* > Software Engineer > WSO2, Inc.;http://wso2.com/ > lean.enterprise.middleware > > Mobile: +94 715 654154 > -- *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
[Dev] what would be more efficient? obj.clone() or new object?
Hi, I'm trying to execute a SQL and store the result in a Json Array. What would be the most efficient code block?? JSONObject obj = new JSONObject(); while (rs.next()) { obj.put("NAME", rs.getString("NAME")); jsonArr.add(obj.clone()); } * Or* while (rs.next()) { JSONObject obj = new JSONObject(); obj.put("NAME", rs.getString("NAME")); jsonArr.add(obj); } -- *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
Re: [Dev] Time series Siddhi extension use Apache commons math functions?
HI LahiruS, Please refer mail thread "Extensions for Siddhi - Math operations" in [Architecture] to check the currently available math operators. On Tue, Nov 25, 2014 at 12:06 AM, Lahiru Sandaruwan wrote: > Hi, > > $subject... > [1] has a set of functions that are available. I see Siddhi extension use > commons math library, but could not find it is using these functions. > > Thanks. > > [1] http://commons.apache.org/proper/commons-math/userguide/stat.html > > -- > -- > Lahiru Sandaruwan > Committer and PMC member, Apache Stratos, > Senior Software Engineer, > WSO2 Inc., http://wso2.com > lean.enterprise.middleware > > email: lahi...@wso2.com blog: http://lahiruwrites.blogspot.com/ > linked-in: http://lk.linkedin.com/pub/lahiru-sandaruwan/16/153/146 > > > ___ > Dev mailing list > Dev@wso2.org > http://wso2.org/cgi-bin/mailman/listinfo/dev > > -- *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
Re: [Dev] Obtain the tenant ID of the currently logged in user from Jaggery
Hi, In AppManager it uses the below method to get the tenant Id: *var tenant=server.tenant(request,session);* *var tenantId =tenant.tenantId;* On Tue, Nov 18, 2014 at 1:52 PM, Supun Sethunga wrote: > Hi, > > How can do $subject? > > I was able to get the Tenant Domain as follows though. > > var user=jagg.getUser(); > var MultitenantUtils = > Packages.org.wso2.carbon.utils.multitenancy.MultitenantUtils; > var tenantDomain = MultitenantUtils.getTenantDomain(user); > > Thanks, > Supun > > -- > *Supun Sethunga* > Software Engineer > WSO2, Inc. > lean | enterprise | middleware > Mobile : +94 716546324 > > ___ > Dev mailing list > Dev@wso2.org > http://wso2.org/cgi-bin/mailman/listinfo/dev > > -- *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
Re: [Dev] Where to store JS configurable data?
Thanks a lot for the replies.. I will follow the same standard.. On Tue, Nov 18, 2014 at 10:37 AM, Inosh Perera wrote: > Hi Lahiru, > As Dakshika mentioned, it is usual way is to get things as a JSON object. > For example you can look at top libraries such as jQuery. > > Regards, > Inosh > > On Tue, Nov 18, 2014 at 10:10 AM, Dakshika Jayathilaka > wrote: > >> Hi, >> >> You can maintain JSON object to set your configuration options. >> >> Regards, >> >> *Dakshika Jayathilaka* >> Software Engineer >> WSO2, Inc. >> lean.enterprise.middleware >> 0771100911 >> >> On Tue, Nov 18, 2014 at 10:00 AM, Lahiru Cooray wrote: >> >>> Hi all, >>> >>> I'm currently writing a Javascript library *(not a jaggery)* and I need >>> to get some external inputs from the developer who's going to use that >>> library. >>> Please advice the best practice, where should I store that configurable >>> data and how to access it. >>> >>> >>> -- >>> *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 >>> >>> >> >> ___ >> Dev mailing list >> Dev@wso2.org >> http://wso2.org/cgi-bin/mailman/listinfo/dev >> >> > > > -- > Inosh Perera > Software Engineer, WSO2 Inc. > Tel: 0785293686 > -- *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
[Dev] Where to store JS configurable data?
Hi all, I'm currently writing a Javascript library *(not a jaggery)* and I need to get some external inputs from the developer who's going to use that library. Please advice the best practice, where should I store that configurable data and how to access it. -- *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
Re: [Dev] [CEP] Sending messages to multiple email addresses using CEP output email adapter
Hi CD, To manage the subscribers list, i think of course you need to maintain a database. Could you please share the ER diagram or table structure of the existing db. On Wed, Nov 5, 2014 at 9:45 AM, CD Athuraliya wrote: > Hi all, > > Using the above method we can send emails to multiple email addresses > using output email adapter. Still what is the best way to manage a dynamic > email list to be used with email output adapter? In our case we need to > maintain a subscription list. Currently we are using a separate database > for this purpose. Kindly share your thoughts on best way to do this. > > Thanks and best regards. > > On Tue, Nov 4, 2014 at 4:26 PM, Lahiru Cooray wrote: > >> Hi Madhawa, >> >> As per the offline chat, to solve your problem you can simply concatenate >> the receiving email addresses related to each event. >> >> *Eg:* >> *@email - "*a...@gmail.com, b...@yahoo.com, c...@hotmail.com" >> >> Event formatter email address - *@**email* >> >> >> On Thu, Oct 30, 2014 at 1:03 AM, Madhawa Gunasekara >> wrote: >> >>> Hi All, >>> >>> I'm working on a traffic analysis project. I just need to send traffic >>> alert messages to subscribers. But email addresses vary according to >>> their subscribed location. >>> >>> As per my understanding the email address should be fixed when using a >>> CEP email output adapter. >>> >>> How can I use WSO2 CEP output email adapter to carry through my problem? >>> >>> >>> >>> Thanks. >>> >>> -- >>> *Madhawa Gunasekara* >>> Software Engineering Intern >>> WSO2 Inc.; http://wso2.com >>> lean.enterprise.middleware >>> >>> mobile: +94 719411002 >>> >>> >>> >>> ___ >>> Dev mailing list >>> Dev@wso2.org >>> http://wso2.org/cgi-bin/mailman/listinfo/dev >>> >>> >> >> >> -- >> *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 >> >> > > > -- > *CD Athuraliya* > Software Engineering Intern > WSO2, Inc. > lean . enterprise . middleware > Mobile: +94 716288847 > LinkedIn <http://lk.linkedin.com/in/cdathuraliya> | Twitter > <https://twitter.com/cdathuraliya> | Blog > <http://cdathuraliya.tumblr.com/> > -- *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
Re: [Dev] [CEP] Sending messages to multiple email addresses using CEP output email adapter
Hi Madhawa, As per the offline chat, to solve your problem you can simply concatenate the receiving email addresses related to each event. *Eg:* *@email - "*a...@gmail.com, b...@yahoo.com, c...@hotmail.com" Event formatter email address - *@**email* On Thu, Oct 30, 2014 at 1:03 AM, Madhawa Gunasekara wrote: > Hi All, > > I'm working on a traffic analysis project. I just need to send traffic > alert messages to subscribers. But email addresses vary according to > their subscribed location. > > As per my understanding the email address should be fixed when using a CEP > email output adapter. > > How can I use WSO2 CEP output email adapter to carry through my problem? > > > > Thanks. > > -- > *Madhawa Gunasekara* > Software Engineering Intern > WSO2 Inc.; http://wso2.com > lean.enterprise.middleware > > mobile: +94 719411002 > > > > ___ > Dev mailing list > Dev@wso2.org > http://wso2.org/cgi-bin/mailman/listinfo/dev > > -- *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
Re: [Dev] Custome Function in siddhi query
Hi Awanthika, I totally agree with your point when we except result for each event. We can pass a single attribute to a custom function (in multiple events/streams) and store it. We wrote a function to calculate the cardinality (distinct event count in each stream).And there we updated a single instance for multiple streams. On Sun, Oct 19, 2014 at 4:31 PM, Awanthika Senarath wrote: > Hi Lahiru, > > Yes, my bad. In that case he has to use a custom window. > > thanks and regards > > On Sun, Oct 19, 2014 at 3:21 PM, Lahiru Cooray wrote: > >> Hi, >> I guess Shashika needs to read all the events in a single stream and out >> put a *single value.* >> >> *Stream1 * >> Event 1 >>>>> {BookID:'001'} {BookName:'aaa' } >> Event 2 >>>>> {BookID:'002'} {BookName:'bbb' } >> Event 3 >>>>> {BookID:'003'} {BookName:'ccc' } >> >> *Eg: Output the Book Count * >> >> As per my understanding we cannot use a custom function for this use case >> since it will output a result for each event. >> >> On Thu, Oct 16, 2014 at 6:42 PM, Shashika Karunatilaka < >> shashi...@wso2.com> wrote: >> >>> Hi Mohanadarshan, >>> Thanks for the info, yes i have to go with the custom window. >>> >>> On Wed, Oct 15, 2014 at 6:03 PM, Mohanadarshan Vivekanandalingam < >>> mo...@wso2.com> wrote: >>> >>>> >>>> >>>> On Wed, Oct 15, 2014 at 5:52 PM, Shashika Karunatilaka < >>>> shashi...@wso2.com> wrote: >>>> >>>>> Hi, >>>>> >>>> >>>> Hi Shashika, >>>> >>>> >>>>> >>>>> >>>> I'm in the process of creating siddhi custom function, its like an >>>>> aggregate function which inputs a set of data returns a single value. >>>>> Is there a way i can send data array to my custom function or else >>>>> can i handle that inside my custom function? >>>>> As an example there is a stream called "A", stream "A" has attribute >>>>> called "bookID", i need to pass all the bookID's in that stream to the >>>>> aggregate function and return a single value. >>>>> >>>>> >>>> Based on my understanding, i don't believe siddhi function is >>>> appropriate for your usecase.. You may need to use transform processor or >>>> window.. >>>> >>>> Thanks, >>>> Mohan >>>> >>>> >>>> >>>>> Thank you. >>>>> >>>>> -- >>>>> Shashika Prabath Karunatilaka, >>>>> Software Engineer, >>>>> WSO2, Inc: http://wso2.com/ >>>>> mobile : +94 77 7487792 >>>>> >>>>> ___ >>>>> Dev mailing list >>>>> Dev@wso2.org >>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev >>>>> >>>>> >>>> >>>> >>>> -- >>>> *V. Mohanadarshan* >>>> *Software Engineer,* >>>> *Data Technologies Team,* >>>> *WSO2, Inc. http://wso2.com <http://wso2.com> * >>>> *lean.enterprise.middleware.* >>>> >>>> email: mo...@wso2.com >>>> phone:(+94) 771117673 >>>> >>> >>> >>> >>> -- >>> Shashika Prabath Karunatilaka, >>> Software Engineer, >>> WSO2, Inc: http://wso2.com/ >>> mobile : +94 77 7487792 >>> >>> ___ >>> Dev mailing list >>> Dev@wso2.org >>> http://wso2.org/cgi-bin/mailman/listinfo/dev >>> >>> >> >> >> -- >> *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 >> >> > > > -- > Awanthika Senarath > Software Engineer, WSO2 Inc. > Mobile: +94717681791 > > > -- *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
Re: [Dev] Custome Function in siddhi query
Hi, I guess Shashika needs to read all the events in a single stream and out put a *single value.* *Stream1 * Event 1 >>>>> {BookID:'001'} {BookName:'aaa' } Event 2 >>>>> {BookID:'002'} {BookName:'bbb' } Event 3 >>>>> {BookID:'003'} {BookName:'ccc' } *Eg: Output the Book Count * As per my understanding we cannot use a custom function for this use case since it will output a result for each event. On Thu, Oct 16, 2014 at 6:42 PM, Shashika Karunatilaka wrote: > Hi Mohanadarshan, > Thanks for the info, yes i have to go with the custom window. > > On Wed, Oct 15, 2014 at 6:03 PM, Mohanadarshan Vivekanandalingam < > mo...@wso2.com> wrote: > >> >> >> On Wed, Oct 15, 2014 at 5:52 PM, Shashika Karunatilaka < >> shashi...@wso2.com> wrote: >> >>> Hi, >>> >> >> Hi Shashika, >> >> >>> >>> >> I'm in the process of creating siddhi custom function, its like an >>> aggregate function which inputs a set of data returns a single value. >>> Is there a way i can send data array to my custom function or else can >>> i handle that inside my custom function? >>> As an example there is a stream called "A", stream "A" has attribute >>> called "bookID", i need to pass all the bookID's in that stream to the >>> aggregate function and return a single value. >>> >>> >> Based on my understanding, i don't believe siddhi function is appropriate >> for your usecase.. You may need to use transform processor or window.. >> >> Thanks, >> Mohan >> >> >> >>> Thank you. >>> >>> -- >>> Shashika Prabath Karunatilaka, >>> Software Engineer, >>> WSO2, Inc: http://wso2.com/ >>> mobile : +94 77 7487792 >>> >>> ___ >>> Dev mailing list >>> Dev@wso2.org >>> http://wso2.org/cgi-bin/mailman/listinfo/dev >>> >>> >> >> >> -- >> *V. Mohanadarshan* >> *Software Engineer,* >> *Data Technologies Team,* >> *WSO2, Inc. http://wso2.com <http://wso2.com> * >> *lean.enterprise.middleware.* >> >> email: mo...@wso2.com >> phone:(+94) 771117673 >> > > > > -- > Shashika Prabath Karunatilaka, > Software Engineer, > WSO2, Inc: http://wso2.com/ > mobile : +94 77 7487792 > > ___ > Dev mailing list > Dev@wso2.org > http://wso2.org/cgi-bin/mailman/listinfo/dev > > -- *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
Re: [Dev] Using an External Library in writing Siddhi Extention - Need clarifications
Hi Jonann, Thanks a lot for the feedback. On Sat, Oct 18, 2014 at 7:07 PM, Johann Nallathamby wrote: > > > On Wed, Oct 15, 2014 at 1:25 PM, Lahiru Cooray wrote: > >> Hi, >> >> We are writing some extensions to Siddhi (eg: TopK, Cardinality, etc) and >> we are using an external library (Stream Lib[1]) to reuse its already >> implemented algorithms and same library is used in many functions. >> >> We need to know what is the standard way to deploy a third party library? >> is it ok to copy the jar file under "CEP_HOME>repository>components>lib" ? >> > > Its OK to test it by deploying it into lib. But if you shipping it with > CEP you need to create a proper OSGi bundle out of it and install it > through a CEP related feature. > >> >> >> [1]https://github.com/addthis/stream-lib >> -- >> *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 >> >> > > > -- > Thanks & Regards, > > *Johann Dilantha Nallathamby* > Associate Technical Lead & Product Lead of WSO2 Identity Server > Integration Technologies Team > WSO2, Inc. > lean.enterprise.middleware > > Mobile - *+9476950* > Blog - *http://nallaa.wordpress.com <http://nallaa.wordpress.com>* > -- *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
Re: [Dev] Using an External Library in writing Siddhi Extention - Need clarifications
Thanks a lot.. On Thu, Oct 16, 2014 at 9:15 AM, Inosh Perera wrote: > Hi Lahiru, > Yes, its Ok. Make sure to check for lib licence, prior to start using > them, when you are using 3rd party libraries. > > Regards, > Inosh > > On Wed, Oct 15, 2014 at 2:20 PM, Rajeev Sampath wrote: > >> Hi, >> >> On Wed, Oct 15, 2014 at 1:25 PM, Lahiru Cooray wrote: >> >>> Hi, >>> >>> We are writing some extensions to Siddhi (eg: TopK, Cardinality, etc) >>> and we are using an external library (Stream Lib[1]) to reuse its already >>> implemented algorithms and same library is used in many functions. >>> >>> We need to know what is the standard way to deploy a third party >>> library? is it ok to copy the jar file under >>> "CEP_HOME>repository>components>lib" ? >>> >>> >> Yes. Copy the jars to lib folder. >> >> >> Thanks >> Rajeev >> >> >>> >>> [1]https://github.com/addthis/stream-lib >>> -- >>> *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 >>> >>> >> >> >> -- >> Rajeev Sampath >> Senior Software Engineer >> WSO2, Inc.; http://www.wso2.com. >> >> Mobile: >> * +94716265766 <%2B94716265766>* >> >> ___ >> Dev mailing list >> Dev@wso2.org >> http://wso2.org/cgi-bin/mailman/listinfo/dev >> >> > > > -- > Inosh Perera > Software Engineer, WSO2 Inc. > Tel: 0785293686 > -- *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
Re: [Dev] Issue in writing a Custom function as Siddhi Extension
Hi, Please refer the attached java class. And the siddhi query is as follows: from InputStream1 select custom:abs(para1) as p1 insert into OutStream1 As per the code, when we call abs() function with no parameters it should fire the validation. But it wont give the expected result. Thanks.. On Wed, Oct 15, 2014 at 4:41 PM, Lasantha Fernando wrote: > Hi Lahiru, > > Looking at the code segment given above, everything seems correct. Can you > attach the complete class of the Siddhi extension and the exact query used, > so that we can dig into it deeper? > > Thanks, > Lasantha > > On 14 October 2014 21:54, Lahiru Cooray wrote: > >> Hi, >> >> When writing a custom function as a Siddhi Extension I faced an issue in >> validating the parameter count passed. >> >> Eg: >> from InputStream1 >> select *custom:cos(para1)* >> insert into OutputSream1 >> >> I tried to validate the custom function '*cos*' where user should be >> able to pass only one parameter.I used the below code in my function: >> >> @Override >> >> public void init(Attribute.Type[] types, SiddhiContext siddhiContext) { >> >> if (types.length !=1 ) { >> >> //validation message >> >> } >> >> ……… >> >> } >> Here even when the user doesn't pass any parameter, it returns the >> types.length as '1' and the data type as LONG. >> >> Can somebody please help me to figure out the reason for this?? >> >> Thanks... >> -- >> *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 >> >> > > > -- > *Lasantha Fernando* > Software Engineer - Data Technologies Team > WSO2 Inc. http://wso2.com > > email: lasan...@wso2.com > mobile: (+94) 71 5247551 > -- *Lahiru Cooray* Software Engineer WSO2, Inc.;http://wso2.com/ lean.enterprise.middleware Mobile: +94 715 654154 AbsExtension.java Description: Binary data ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] Using an External Library in writing Siddhi Extention - Need clarifications
Hi, We are writing some extensions to Siddhi (eg: TopK, Cardinality, etc) and we are using an external library (Stream Lib[1]) to reuse its already implemented algorithms and same library is used in many functions. We need to know what is the standard way to deploy a third party library? is it ok to copy the jar file under "CEP_HOME>repository>components>lib" ? [1]https://github.com/addthis/stream-lib -- *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
[Dev] Issue in writing a Custom function as Siddhi Extension
Hi, When writing a custom function as a Siddhi Extension I faced an issue in validating the parameter count passed. Eg: from InputStream1 select *custom:cos(para1)* insert into OutputSream1 I tried to validate the custom function '*cos*' where user should be able to pass only one parameter.I used the below code in my function: @Override public void init(Attribute.Type[] types, SiddhiContext siddhiContext) { if (types.length !=1 ) { //validation message } ……… } Here even when the user doesn't pass any parameter, it returns the types.length as '1' and the data type as LONG. Can somebody please help me to figure out the reason for this?? Thanks... -- *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
Re: [Dev] Error when building carbon orbit
Hi Ramindu, Please check your JDK/ Maven versions. I faced the same issue and managed to solve it after downgrading the Maven to 3.0.5 and JDK 1.6 (Previously I used JDK 1.7 and Maven 3.2.2) On Tue, Sep 23, 2014 at 2:18 PM, Ramindu De Silva wrote: > Hi all, > > [INFO] WSO2 Carbon Orbit - Parent Maven Project .. SUCCESS [0.182s] > [INFO] WSO2 Carbon Orbit - Tribes FAILURE [1.653s] > > The includes the above as well. > > Regards. > > On Tue, Sep 23, 2014 at 2:06 PM, Ramindu De Silva > wrote: > >> Hi all, >> >> When I was building the "Carbon Orbit", I'm getting the following error. >> Any help will be greatly appreciated. >> >> [INFO] WSO2 Carbon Orbit - Rabbit-MQ AMQP java client orbit bundle >> SKIPPED >> >> [ERROR] Failed to execute goal >> org.apache.felix:maven-bundle-plugin:2.3.7:bundle (default-bundle) on >> project tribes: Internal error in maven-bundle-plugin: >> /opt/Carbon/orbit/trunk/tribes/target/tribes-7.0.34.wso2v1.jar (No such >> file or directory) >> >> >> Regards. >> -- >> *Ramindu De Silva* >> Software Engineering Intern >> WSO2 Inc.; http://wso2.com >> lean.enterprise.middleware >> >> email: ramin...@wso2.com >> mob: +94772339350 >> mob: +94782731766 >> > > > > -- > *Ramindu De Silva* > Software Engineering Intern > WSO2 Inc.; http://wso2.com > lean.enterprise.middleware > > email: ramin...@wso2.com > mob: +94772339350 > mob: +94782731766 > > ___ > Dev mailing list > Dev@wso2.org > http://wso2.org/cgi-bin/mailman/listinfo/dev > > -- *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
Re: [Dev] Error while building Carbon
Thanks a lot.. Will do that and check.. On Mon, Sep 22, 2014 at 9:41 AM, Gayashan Amarasinghe wrote: > Hi LahiruC, > > Try building with maven 3.0.x version. We recommend maven 3.0.x for > building from source [1]. > > [1] https://docs.wso2.com/display/Carbon420/Installation+Prerequisites > > Thanks. > /Gayashan > > On Mon, Sep 22, 2014 at 9:35 AM, Lahiru Cooray wrote: > >> I'm Im following tutorial[1] to build carbon from the source: >> >> [1]http://java.dzone.com/articles/how-build-wso2-carbon-420 >> >> Running Versions: >> >> >>- java version: "1.6.0_65" >>- Apache Maven: "3.2.2" >>- OS : "mac 10.9" >> >> >> When i run " mvn clean install -Dmaven.test.skip=true" command I get >> the below error. please help... >> >> -- >> >> * Error Stack >> >> >> [INFO] Scanning for projects... >> >> [ERROR] The build could not read 1 project -> [Help 1] >> >> [ERROR] >> >> [ERROR] The project >> org.apache.tomcat.wso2:jdbc-pool:${jdbc.pool.version}.wso2v1 >> (/Users/lahiruC/Documents/FastTrackerProgram/8-BuildCarbon/carbon/orbit/trunk/jdbc-pool/pom.xml) >> has 1 error >> >> [ERROR] Non-resolvable parent POM: Failure to find >> org.wso2.carbon:carbon-dependents:pom:4.0.0 in >> http://repo.maven.apache.org/maven2 was cached in the local repository, >> resolution will not be reattempted until the update interval of central has >> elapsed or updates are forced and 'parent.relativePath' points at wrong >> local POM @ line 22, column 13 -> [Help 2] >> >> [ERROR] >> >> [ERROR] To see the full stack trace of the errors, re-run Maven with the >> -e switch. >> >> [ERROR] Re-run Maven using the -X switch to enable full debug logging. >> >> [ERROR] >> >> [ERROR] For more information about the errors and possible solutions, >> please read the following articles: >> >> [ERROR] [Help 1] >> http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException >> >> [ERROR] [Help 2] >> http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelException >> >> Lahirus-MacBook-Pro:trunk lahiruC$ java -version >> >> java version "1.6.0_65" >> >> Java(TM) SE Runtime Environment (build 1.6.0_65-b14-466.1-11M4716) >> >> Java HotSpot(TM) 64-Bit Server VM (build 20.65-b04-466.1, mixed mode) >> >> >> >> >> >> >> >> >> >> * orbit POM.XML >> * >> >> http://maven.apache.org/POM/4.0.0"; >> >> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; >> >> xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 >> http://maven.apache.org/maven-v4_0_0.xsd";> >> >> >> >> >> 4.0.0 >> >> org.wso2.carbon >> >> orbit-parent >> >> 4.2.0-SNAPSHOT >> >> pom >> >> WSO2 Carbon Orbit - Parent Maven Project >> >> orbit-parent >> >> http://wso2.org >> >> >> >> >> >> >> >> >> >> wso2-nexus >> >> WSO2 internal Repository >> >> http://maven.wso2.org/nexus/content/groups/wso2-public/ >> >> >> >> >> true >> >> daily >> >> ignore >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> wso2-maven2-repository >> >> WSO2 Maven2 Repository >> >> scp://dist.wso2.org/home/httpd/dist.wso2.org/maven2/ >> >> >> >> >> >> >> wso2-maven2-snapshot-repository >> >> WSO2 Maven2 Snapshot Repository >> >> scp:// >> dist.wso2.org/home/httpd/dist.wso2.org/snapshots/maven2/ >> >> >> >> >> >> >> >> >> tribes >> >> js &g
[Dev] Error while building Carbon
I'm Im following tutorial[1] to build carbon from the source: [1]http://java.dzone.com/articles/how-build-wso2-carbon-420 Running Versions: - java version: "1.6.0_65" - Apache Maven: "3.2.2" - OS : "mac 10.9" When i run " mvn clean install -Dmaven.test.skip=true" command I get the below error. please help... -- * Error Stack [INFO] Scanning for projects... [ERROR] The build could not read 1 project -> [Help 1] [ERROR] [ERROR] The project org.apache.tomcat.wso2:jdbc-pool:${jdbc.pool.version}.wso2v1 (/Users/lahiruC/Documents/FastTrackerProgram/8-BuildCarbon/carbon/orbit/trunk/jdbc-pool/pom.xml) has 1 error [ERROR] Non-resolvable parent POM: Failure to find org.wso2.carbon:carbon-dependents:pom:4.0.0 in http://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced and 'parent.relativePath' points at wrong local POM @ line 22, column 13 -> [Help 2] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException [ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelException Lahirus-MacBook-Pro:trunk lahiruC$ java -version java version "1.6.0_65" Java(TM) SE Runtime Environment (build 1.6.0_65-b14-466.1-11M4716) Java HotSpot(TM) 64-Bit Server VM (build 20.65-b04-466.1, mixed mode) * orbit POM.XML * http://maven.apache.org/POM/4.0.0"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd";> 4.0.0 org.wso2.carbon orbit-parent 4.2.0-SNAPSHOT pom WSO2 Carbon Orbit - Parent Maven Project orbit-parent http://wso2.org wso2-nexus WSO2 internal Repository http://maven.wso2.org/nexus/content/groups/wso2-public/ true daily ignore wso2-maven2-repository WSO2 Maven2 Repository scp://dist.wso2.org/home/httpd/dist.wso2.org/maven2/ wso2-maven2-snapshot-repository WSO2 Maven2 Snapshot Repository scp:// dist.wso2.org/home/httpd/dist.wso2.org/snapshots/maven2/ tribes js rabbit-mq jstl hazelcast wadl-core saxon cglib poi poi-ooxml poi-scratchpad java-property-utils cors-filter httpcore spring-framework/3.1.0.wso2v2 cassandra-jdbc jdbc-pool org.apache.maven.wagon wagon-ssh 2.1 org.apache.felix maven-bundle-plugin 2.3.7 org.codehaus.mojo build-helper-maven-plugin 1.7 org.apache.maven.plugins maven-compiler-plugin 2.3.2 7.0.34 3.0.1 ****** *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
Re: [Dev] Error in writing a Carbon component
thanks a lot Firzhan.. Will try this.. On Wed, Sep 17, 2014 at 12:47 PM, Firzhan Naqash wrote: > > Hi Lahiru, > > I think you haven't mentioned the repository and plugin-repository > proplerly in your pom.xml file. > > Try to add nexus-repo in your pom.xml file > > > > wso2-nexus > WSO2 internal Repository > http://maven.wso2.org/nexus/content/groups/wso2-public/ > > true > daily > fail > > > > > > And try to add plugin-repository in your pom file. > > > > wso2-maven2-repository-1 > http://dist.wso2.org/maven2 > > > wso2-maven2-repository-2 > http://dist.wso2.org/snapshots/maven2 > > > repository.dev.java.net-maven2 > Java.net Repository for Maven > http://download.java.net/maven/2/ > default > > > > > Do a clean mvn build. This may solve your problem > > > Regards, > Firzhan > > On Wed, Sep 17, 2014 at 12:44 PM, Lahiru Cooray wrote: > >> Hi, >> >> I'm following these tutorials to write a Carbon component (and a Feature). >> [1] >> http://wso2.com/library/tutorials/2014/03/how-to-write-a-wso2-carbon-component/ >> [2] >> http://wso2.com/library/tutorials/2014/03/how-to-create-a-feature-from-wso2-carbon-component/ >> >> I have successfully completed the tutorial [1]. >> But when I follow all the steps in tutorial [2] , I get the below error. >> please help.. >> >> >> *Error >> stack* >> >> SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder". >> >> SLF4J: Defaulting to no-operation (NOP) logger implementation >> >> SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for >> further details. >> >> [INFO] Scanning for projects... >> >> [WARNING] >> >> [WARNING] Some problems were encountered while building the effective >> model for org.wso2.carbon:org.wso2.carbon.student.mgt:bundle:4.2.0 >> >> [WARNING] 'build.plugins.plugin.version' for >> org.apache.felix:maven-bundle-plugin is missing. @ line 19, column 21 >> >> [WARNING] The expression ${pom.artifactId} is deprecated. Please use >> ${project.artifactId} instead. >> >> [WARNING] The expression ${pom.artifactId} is deprecated. Please use >> ${project.artifactId} instead. >> >> [WARNING] >> >> [WARNING] Some problems were encountered while building the effective >> model for org.wso2.carbon:org.wso2.carbon.student.mgt.stub:bundle:4.2.0 >> >> [WARNING] 'build.plugins.plugin.version' for >> org.apache.felix:maven-bundle-plugin is missing. @ line 133, column 21 >> >> [WARNING] 'build.plugins.plugin.version' for >> org.codehaus.mojo:build-helper-maven-plugin is missing. @ line 114, column >> 21 >> >> [WARNING] >> >> [WARNING] Some problems were encountered while building the effective >> model for org.wso2.carbon:org.wso2.carbon.student.mgt.ui:bundle:4.2.0 >> >> [WARNING] 'build.plugins.plugin.version' for >> org.apache.felix:maven-bundle-plugin is missing. @ line 25, column 21 >> >> [WARNING] The expression ${pom.artifactId} is deprecated. Please use >> ${project.artifactId} instead. >> >> [WARNING] >> >> [WARNING] It is highly recommended to fix these problems because they >> threaten the stability of your build. >> >> [WARNING] >> >> [WARNING] For this reason, future Maven versions might no longer support >> building such malformed projects. >> >> [WARNING] >> >> [INFO] >> >> >> [INFO] Reactor Build Order: >> >> [INFO] >> >> [INFO] WSO2 Carbon - Student Manager >> >> [INFO] WSO2 Carbon - Student Manager Components >> >> [INFO] WSO2 Carbon - Student Manager Server Component >> >> [INFO] WSO2 Carbon - Student Manager Stub >> >> [INFO] WSO2 Carbon - Student Manager UI Component >> >> [INFO] WSO2 Carbon - Student Manager Features >> >> [INFO] WSO2 Carbon - Student Manager UI Feature >> >> [INFO] WSO2 Carbon - Student Manager Aggregate Feature >> >> [INFO] WSO2 Carbon - St
[Dev] Error in writing a Carbon component
er.execute( P2ApplicationLauncher.java:132) at org.wso2.maven.p2.RepositoryGenMojo.generateRepository( RepositoryGenMojo.java:253) at org.wso2.maven.p2.RepositoryGenMojo.createRepo(RepositoryGenMojo.java:204 ) at org.wso2.maven.p2.RepositoryGenMojo.execute(RepositoryGenMojo.java:191) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo( DefaultBuildPluginManager.java:101) at org.apache.maven.lifecycle.internal.MojoExecutor.execute( MojoExecutor.java:209) at org.apache.maven.lifecycle.internal.MojoExecutor.execute( MojoExecutor.java:153) at org.apache.maven.lifecycle.internal.MojoExecutor.execute( MojoExecutor.java:145) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject( LifecycleModuleBuilder.java:84) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject( LifecycleModuleBuilder.java:59) at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild( LifecycleStarter.java:183) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute( LifecycleStarter.java:161) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156) at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537) at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196) at org.apache.maven.cli.MavenCli.main(MavenCli.java:141) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke( NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke( DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced( Launcher.java:290) at org.codehaus.plexus.classworlds.launcher.Launcher.launch( Launcher.java:230) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode( Launcher.java:409) at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352) Caused by: java.lang.NullPointerException at org.eclipse.tycho.core.osgitools.DefaultBundleReader.toProperties( DefaultBundleReader.java:165) at org.eclipse.tycho.core.osgitools.DefaultBundleReader.parseHeader( DefaultBundleReader.java:176) at org.eclipse.tycho.core.osgitools.OsgiBundleProject.readArtifactKey( OsgiBundleProject.java:134) at org.eclipse.tycho.p2.facade.internal.P2ApplicationLauncher.addBundle( P2ApplicationLauncher.java:137) at org.eclipse.tycho.p2.facade.internal.P2ApplicationLauncher.execute( P2ApplicationLauncher.java:96) ... 24 more [INFO] [INFO] Reactor Summary: [INFO] [INFO] WSO2 Carbon - Student Manager . SUCCESS [0.098s] [INFO] WSO2 Carbon - Student Manager Components .. SUCCESS [0.003s] [INFO] WSO2 Carbon - Student Manager Server Component SUCCESS [1.347s] [INFO] WSO2 Carbon - Student Manager Stub SUCCESS [3.073s] [INFO] WSO2 Carbon - Student Manager UI Component SUCCESS [0.826s] [INFO] WSO2 Carbon - Student Manager Features SUCCESS [0.003s] [INFO] WSO2 Carbon - Student Manager UI Feature .. SUCCESS [0.860s] [INFO] WSO2 Carbon - Student Manager Aggregate Feature ... SUCCESS [0.187s] [INFO] WSO2 Carbon - Student Manager Feature Repository .. FAILURE [0.048s] [INFO] [INFO] BUILD FAILURE [INFO] [INFO] Total time: 7.358s [INFO] Finished at: Wed Sep 17 12:29:29 IST 2014 [INFO] Final Memory: 36M/519M [INFO] [ERROR] Failed to execute goal org.wso2.maven:carbon-p2-plugin:1.5.3:p2-repo-gen (2-p2-repo-generation) on project wso2carbon-student-mgt-repository: java.lang.NullPointerException -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException [ERROR] [ERROR] After correcting the problems, you can resume the build with the command [ERROR] mvn -rf :wso2carbon-student-mgt-repository JDWP exit error JVMTI_ERROR_WRONG_PHASE(112): on getting class status [../../../src/share/back/util.c:1283] JDWP exit error JVMTI_ERROR_INVALID_ENVIRONMENT(116): on raw monitor enter [../../../src/share/back/util.c:1052] ******** -- *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
Re: [Dev] Getting some Error message while running IS sample: configuring SAML2 SSO
Hi, I get a different error in the same scenario. After following all the steps in the mentioned article [1], when i run the example ( http://localhost:8080/travelocity.com) and when i click on each link it gets redirected to the correct login form.(Eg: When i click on 'Login with Google', it gets redirected to gmail login form) but when I provide correct credentials it shows an error saying 'OpenID verification failed'. Please help! [1] https://docs.wso2.com/display/IS500/Configuring+SAML2+SSO On Thu, Sep 11, 2014 at 10:45 PM, Darshana Gunawardana wrote: > On Thu, Sep 11, 2014 at 10:10 PM, Pulasthi Mahawithana > wrote: > >> Hi Rajeevan, >> >> Can you make sure that you have unchecked "Enable Assertion Encryption" >> at IS? >> > > Aha.. Enabling encryption should be the issue.. > > >> According to the default configurations of travelocity.com SP [1], >> "Enable Assertion Encryption" should be false. However "Enable Assertion >> Signing" should be true. >> >> [1] >> http://svn.wso2.org/repos/wso2/carbon/platform/branches/turing/products/is/5.0.0/modules/samples/sso/SSOAgentSample/src/main/resources/travelocity.properties >> >> On Thu, Sep 11, 2014 at 6:27 PM, Darshana Gunawardana >> wrote: >> >>> Hi Rajeevan, >>> >>> Is there any errors in Identity Server logs? >>> >>> If not can you please do following, >>> 1. Enable debug logs on org.wso2.carbon.identity.sso.saml >>> 2. Add sso-tracer plugin[1] for firefox >>> 3. Enable sso tracer and try login to travelocity app >>> 4. Share the carbon log and sso-tracer output >>> >>> [1] https://addons.mozilla.org/en-us/firefox/addon/sso-tracer/ >>> >>> Regards, >>> Darshana >>> >>> On Thu, Sep 11, 2014 at 5:35 PM, Aiyadurai Rajeevan >>> wrote: >>> >>>> Hi, >>>> >>>> I'm going through the article related to configuring SAML2 SSO [1]. >>>> After configured everything as explained in the article, I tried to access >>>> travelocity.com home page, but looks like the home page is displayed >>>> with some error (saying, SAML Assertion not found in the Response) >>>> ,Please find the SS in the attachment. >>>> >>>> Note: I have deployed the travelocity.com.war in apache-tomcat-7.0.55 >>>> >>>> Could you please someone let me know if anything else i have to do to >>>> rectify this issue/ this is the right home page i have landed up? >>>> >>>> >>>> [1] https://docs.wso2.com/display/IS500/Configuring+SAML2+SSO >>>> >>>> Thanks & Regards, >>>> S.A.Rajeevan >>>> Software Engineer WSO2 Inc >>>> E-Mail: rajeev...@wso2.com | Mobile : +94776411636 >>>> >>>> ___ >>>> Dev mailing list >>>> Dev@wso2.org >>>> http://wso2.org/cgi-bin/mailman/listinfo/dev >>>> >>>> >>> >>> >>> -- >>> Regards, >>> >>> >>> *Darshana Gunawardana*Software Engineer >>> WSO2 Inc.; http://wso2.com >>> >>> *E-mail: darsh...@wso2.com * >>> *Mobile: +94718566859 <%2B94718566859>*Lean . Enterprise . Middleware >>> >>> ___ >>> Dev mailing list >>> Dev@wso2.org >>> http://wso2.org/cgi-bin/mailman/listinfo/dev >>> >>> >> >> >> -- >> *Pulasthi Mahawithana* >> Software Engineer >> WSO2 Inc., http://wso2.com/ >> Mobile: +94-71-5179022 >> Blog: http://blog.pulasthi.org >> > > > > -- > Regards, > > > *Darshana Gunawardana*Software Engineer > WSO2 Inc.; http://wso2.com > > *E-mail: darsh...@wso2.com * > *Mobile: +94718566859 <%2B94718566859>*Lean . Enterprise . Middleware > > ___ > Dev mailing list > Dev@wso2.org > http://wso2.org/cgi-bin/mailman/listinfo/dev > > -- *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
Re: [Dev] how to pass credentials - using a AXIOM (client)
Thanks Nuwan for sharing an useful resource. Will try this out.. On Wed, Sep 10, 2014 at 10:45 AM, Nuwan Wimalasekara wrote: > Hi > The below source[1] is for secure axis2 service client implementation. > please refer [1] and This may help to resolve your issue > > [1] > https://svn.wso2.org/repos/wso2/carbon/platform/branches/turing/platform-integration/test-automation-framework/4.2.6/org.wso2.carbon.automation.utils/src/main/java/org/wso2/carbon/automation/utils/axis2client/SecureAxisServiceClient.java > > Thanks, > Nuwanw > > On Wed, Sep 10, 2014 at 9:56 AM, Asok Perera wrote: > >> Hi, >> >> I have the same question and please check below how I tried to implement >> this. >> >> -- >> >> >> System.setProperty("javax.net.ssl.trustStore", >> "/Users/asok/Documents/wso2esb-4.8.1/repository/resources/security/client-truststore.jks" >> ); >> System.setProperty("javax.net.ssl.trustStorePassword", "wso2carbon"); >> options = new Options(); >> try { >> options.setProperty(RampartMessageData.KEY_RAMPART_POLICY, loadPolicy( >> "chb_policy_1.xml")); >> options.setUserName("admin"); >> options.setPassword("admin"); >> } catch (Exception e1) { >> e1.printStackTrace(); >> >> } >> >> - >> >> Im getting following error, even though I have put the chb_policy_1.xml >> file. >> org.apache.axis2.AxisFault: *Unable to engage module : rampart* >> at org.apache.axis2.client.ServiceClient.engageModule( >> ServiceClient.java:363) >> at client_AXIOM.Client.(Client.java:54) >> at client_AXIOM.Client.main(Client.java:120) >> >> org.apache.axis2.AxisFault: Address information does not exist in the >> Endpoint Reference (EPR).The system cannot infer the transport mechanism. >> >> Can anyone point out how to implement this as AXIOM client ? >> >> BR >> >> >> *Asok Aravinda Perera* >> Software Engineer >> WSO2, Inc.;http://wso2.com/ >> <http://www.google.com/url?q=http%3A%2F%2Fwso2.com%2F&sa=D&sntz=1&usg=AFQjCNGJuLRux6KkJwXKVUCYOtEsNCmIAQ> >> lean.enterprise.middleware >> >> Mobile: +94722241032 >> >> On Tue, Sep 9, 2014 at 8:46 PM, Vimalanathan Rajeevan > > wrote: >> >>> Hi Lahiru, >>> >>> Can I know what kind of error you are getting when using AXIOM client >>> and passing credentials in the above way? >>> >>> Best Regards, >>> V.Rajeevan >>> Software Engineer, >>> WSO2 Inc. :http://wso2.com >>> >>> Mobile : +94 773090875 >>> Email : rajeev...@wso2.com >>> >>> On Tue, Sep 9, 2014 at 5:45 PM, Lahiru Cooray wrote: >>> >>>> Hi, >>>> >>>> I have created a non secured web service and secured it using ESB. >>>> When I invoke the service using an ADB client it worked properly. >>>> I used the below code to pass the credentials >>>> >>>> >>>> >>>> /// >>>> HttpTransportProperties.Authenticator authenticator = new >>>> HttpTransportProperties.Authenticator(); >>>> authenticator.setUsername("admin"); >>>> authenticator.setPassword("admin"); >>>> >>>> stub._getServiceClient().getOptions() >>>> .setProperty(HTTPConstants.AUTHENTICATE, authenticator); >>>> stub >>>> ._getServiceClient() >>>> .getOptions() >>>> .setProperty(Constants.Configuration.ENABLE_REST, >>>> Constants.VALUE_TRUE); >>>> >>>> >>>> /// >>>> >>>> *And I'm facing a problem when I try to do the same using an AXIOM >>>> client. I need to know how to pass credentials when using an AXIOM client?* >>>> >>>> >>>> -- >>>> *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 >>>> >>>> >>> >>> ___ >>> 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 >> >> > > > -- > Nuwan Wimalasekara > Senior Software Engineer - Test Automation > WSO2, Inc.: http://wso2.com > lean. enterprise. middleware > > phone: +94 71 668 4620 > > > > > ___ > Dev mailing list > Dev@wso2.org > http://wso2.org/cgi-bin/mailman/listinfo/dev > > -- *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
[Dev] how to pass credentials - using a AXIOM (client)
Hi, I have created a non secured web service and secured it using ESB. When I invoke the service using an ADB client it worked properly. I used the below code to pass the credentials /// HttpTransportProperties.Authenticator authenticator = new HttpTransportProperties.Authenticator(); authenticator.setUsername("admin"); authenticator.setPassword("admin"); stub._getServiceClient().getOptions() .setProperty(HTTPConstants.AUTHENTICATE, authenticator); stub ._getServiceClient() .getOptions() .setProperty(Constants.Configuration.ENABLE_REST, Constants.VALUE_TRUE); /// *And I'm facing a problem when I try to do the same using an AXIOM client. I need to know how to pass credentials when using an AXIOM client?* -- *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
Re: [Dev] CSS and DIV Structure
Hi Shiva, I checked the HTML structure and seems like nothing wrong with it. Please check this with another browser. I guess this may be a issue with the CSS file. On Thu, Sep 4, 2014 at 2:59 PM, Shiva Balachandran wrote: > Hi All, > > As you all may understand the amount of typo we come across when we > develop a HTML site, I am facing a issue where one DIV is overlaying > another. As shown in the attachment screenshot. Does anyone has any clue on > why this might happen, i checked the div structure and the css files but i > am unable to spot the issue or the error in the structure. > > I have attached the div structure and the screenshot of the error. > > Thank you. > -- > Shiva Balachandran > Software Engineer > WSO2 Inc. > > Mobile - +94 774445788 > > ___ > Dev mailing list > Dev@wso2.org > http://wso2.org/cgi-bin/mailman/listinfo/dev > > -- *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