Re: [Dev] Checking the existence of the roles with the character "@"

2016-10-16 Thread Ishara Cooray
What if the create role context logic is changed as below.

JDBCRoleContext searchCtx = new JDBCRoleContext();
String[] roleNameParts = roleName.split(UserCoreConstants.
TENANT_DOMAIN_COMBINER);
if (roleNameParts.length > 1 && (roleNameParts[1] == null || roleNameParts[1
].equals("null"))) {
roleNameParts = new String[]{roleNameParts[0]};
}

to

JDBCRoleContext searchCtx = new JDBCRoleContext();
String[] roleNameParts = roleName.split(UserCoreConstants.
TENANT_DOMAIN_COMBINER);
if (roleNameParts.length > 1 && (roleNameParts[1] == null || roleNameParts[1
].equals("null"))) {
roleNameParts = new String[]{roleName.substring(0,
roleName.lastIndexOf("@"))};
}

However there is no need to create a new string array here. Simply String
should do(you can assign it to a String variable other that using existing
string array). Please check that as well.


Thanks & Regards,
Ishara Cooray
Senior Software Engineer
Mobile : +9477 262 9512
WSO2, Inc. | http://wso2.com/
Lean . Enterprise . Middleware

On Mon, Oct 17, 2016 at 9:55 AM, Megala Uthayakumar  wrote:

> Hi All,
>
> I am working on a jira issue which is related with problem in updating the
> permissions for the role names with special characters[1]. When I was
> analyzing this issue I found that
> when we have an existing role with a "@" character, the system returns
> false, even that particular role exists in the primary user store. This is
> because, in the JDBCUserStoreManager, before checking whether the
> particular role exists, it creates a role context [2], in which it splits
> the role using "@" character and takes the 1st part of the role as the role
> name and if the split has more than a single part [3], it considers second
> part as the tenant id.
>
> For example if we have a role with a name 'test@', it will consider
> 'test' as a role name, because of that isExisting check, returns false.
>
> This behavior affects the role addition in management console too. After
> creating a role with a name "test@" , if we try to create another role
> name with the same name, it throws, following exception.
> *Caused by: org.h2.jdbc.JdbcSQLException: Unique index or primary key
> violation: "CONSTRAINT_INDEX_19 ON PUBLIC.UM_ROLE(UM_ROLE_NAME,
> UM_TENANT_ID) VALUES ( /* key:6 */ null, 'adadad@', -1234, null)"; SQL
> statement:*
> *INSERT INTO UM_ROLE (UM_ROLE_NAME, UM_TENANT_ID) VALUES (?, ?)
> [23505-175]*
> * at org.h2.message.DbException.getJdbcSQLException(DbException.java:332)*
> * at org.h2.message.DbException.get(DbException.java:172)*
> * at org.h2.message.DbException.get(DbException.java:149)*
> * at org.h2.index.BaseIndex.getDuplicateKeyException(BaseIndex.java:101)*
> * at org.h2.index.PageBtree.find(PageBtree.java:121)*
> * at org.h2.index.PageBtreeLeaf.addRow(PageBtreeLeaf.java:148)*
> * at org.h2.index.PageBtreeLeaf.addRowTry(PageBtreeLeaf.java:101)*
> * at org.h2.index.PageBtreeIndex.addRow(PageBtreeIndex.java:96)*
> * at org.h2.index.PageBtreeIndex.add(PageBtreeIndex.java:87)*
> * at org.h2.table.RegularTable.addRow(RegularTable.java:119)*
> * at org.h2.command.dml.Insert.insertRows(Insert.java:157)*
> * at org.h2.command.dml.Insert.update(Insert.java:115)*
> * at org.h2.command.CommandContainer.update(CommandContainer.java:79)*
> * at org.h2.command.Command.executeUpdate(Command.java:253)*
> * at
> org.h2.jdbc.JdbcPreparedStatement.executeUpdateInternal(JdbcPreparedStatement.java:154)*
> * at
> org.h2.jdbc.JdbcPreparedStatement.executeUpdate(JdbcPreparedStatement.java:140)*
> * at
> org.wso2.carbon.user.core.jdbc.JDBCUserStoreManager.updateStringValuesToDatabase(JDBCUserStoreManager.java:2352)*
> * ... 78 more*
> *[2016-10-17 09:33:50,836] ERROR
> {org.wso2.carbon.user.mgt.ui.UserAdminClient} -  Error occurred while
> getting database type from DB connection*
> *org.apache.axis2.AxisFault: Error occurred while getting database type
> from DB connection*
> * at
> org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(Utils.java:531)*
> * at
> org.apache.axis2.description.RobustOutOnlyAxisOperation$RobustOutOnlyOperationClient.handleResponse(RobustOutOnlyAxisOperation.java:91)*
> * at
> org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:445)*
> * at
> org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:225)*
> * at
> org.apache.axis2.client.OperationClient.execute(OperationClient.java:149)*
> * at
> org.wso2.carbon.user.mgt.stub.UserAdminStub.addRole(UserAdminStub.java:5002)*
> * at
> org.wso2.carbon.user.mgt.ui.UserAdminClient.addRole(UserAdminClient.java:76)*
> * at
> org.apache.jsp.role.add_002dfinish_002dajaxprocessor_jsp._jspService(add_002dfinish_002dajaxprocessor_jsp.java:159)*
> * at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)*
> * at javax.servlet.http.HttpServlet.service(HttpServlet.java:731)*
> * at
> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:439)*
> * at
> 

Re: [Dev] [IoTS] Build error with missing package org.wso2.carbon.apimgt.api.model [5.0.0, 6.0.0)

2016-10-16 Thread Rasika Perera
Hi Jason,

Seems like you have older versions of the repos. Can you verify your git
repos are on latest version and get `git pulls` from all repos.

https://github.com/wso2/carbon-device-mgt/tree/master/
https://github.com/wso2/carbon-device-mgt-plugins/tree/master/
https://github.com/wso2/product-iots/tree/master

Thanks,
Rasika

On Mon, Oct 17, 2016 at 7:14 AM, 云展智创  wrote:

> Hi all,
>
> When I built the product-iot in order of carbon-device-mgt,
> carbon-device-mgt-plugin, then product-iot, I got the following errors.
> Anyone can help me? Thanks.
>
> Installing org.wso2.carbon.device.mgt.analytics.dashboard.feature.group
> 1.2.2.SNAPSHOT.
> Installing org.wso2.carbon.analytics.cdmf.feature.group 1.0.1.SNAPSHOT.
> Installation failed.
> Cannot complete the install because one or more required items could not
> be found.
>  Software being installed: WSO2 Carbon - MQTT Based Push Notification
> Provider Feature 1.2.2.SNAPSHOT (org.wso2.carbon.device.mgt.
> extensions.push.notification.provider.mqtt.feature.group 1.2.2.SNAPSHOT)
>  Missing requirement: org.wso2.carbon.device.mgt.common 1.2.2.SNAPSHOT
> (org.wso2.carbon.device.mgt.common 1.2.2.SNAPSHOT) requires 'package
> org.wso2.carbon.apimgt.api.model [5.0.0,6.0.0)' but it could not be found
>  Cannot satisfy dependency:
>   From: org.wso2.carbon.device.mgt.extensions.push.notification.provider.mqtt
> 1.2.2.SNAPSHOT 
> (org.wso2.carbon.device.mgt.extensions.push.notification.provider.mqtt
> 1.2.2.SNAPSHOT)
>   To: package org.wso2.carbon.device.mgt.common [1.2.0,2.0.0)
>  Cannot satisfy dependency:
>   From: WSO2 Carbon - MQTT Based Push Notification Provider Feature
> 1.2.2.SNAPSHOT 
> (org.wso2.carbon.device.mgt.extensions.push.notification.provider.mqtt.feature.group
> 1.2.2.SNAPSHOT)
>   To: org.wso2.carbon.device.mgt.extensions.push.notification.provider.mqtt
> [1.2.2.SNAPSHOT]
>
>
> --
> Zhanwen Zhou (Jason)
> +86 13922218435
> zhanwen.z...@smartcloudex.com
> Guangzhou Smart Cloudex Technology Co., Ltd.
> Business: IOT, API
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
With Regards,

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



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


Re: [Dev] hi,abimaran,help me for this.

2016-10-16 Thread Abimaran Kugathasan
Hi Christ,

In which node your are getting this exception? Is it in Gateway or Store?
Additionally, how do you configure DAS? Through REST Client or RDBMS [1]?

BTW, you can use Stackoverflow [2] or dev@wso2.org mailing list in future
for any clarification regarding WSO2 queries.

[1] : https://docs.wso2.com/display/AM1100/Publishing+API+Runtime+Statistics
[2] : http://stackoverflow.com/questions/tagged/wso2

On Sun, Oct 16, 2016 at 7:53 PM, christ Feng  wrote:

> hi , abimaran. I have one problem wanna ask you .
>My APIM version is 1.10.0 and DAS is 3.0.1
>
>1.
>
>I Clustering APIM divide into 4 part,publisher,store,keymanager,
>gataway. And use DAS for stats. Database is mysql.
>2.
>
>I set the connection between APIM and DAS on publisher node.
>3.
>
>When I invoke an api ,APIM console give error as below.
>
> error:
>
> [2016-10-13 11:13:54,775] ERROR - APIMgtUsageHandler Cannot publish event. 
> null
> java.lang.NullPointerException
> at 
> org.wso2.carbon.apimgt.usage.publisher.APIMgtUsageDataBridgeDataPublisher.publishEvent(APIMgtUsageDataBridgeDataPublisher.java:124)
> at 
> org.wso2.carbon.apimgt.usage.publisher.APIMgtUsageHandler.handleRequest(APIMgtUsageHandler.java:169)
> at org.apache.synapse.rest.API.process(API.java:322)
> at 
> org.apache.synapse.rest.RESTRequestHandler.dispatchToAPI(RESTRequestHandler.java:86)
> at 
> org.apache.synapse.rest.RESTRequestHandler.process(RESTRequestHandler.java:65)
> at 
> org.apache.synapse.core.axis2.Axis2SynapseEnvironment.injectMessage(Axis2SynapseEnvironment.java:295)
> at 
> org.apache.synapse.core.axis2.SynapseMessageReceiver.receive(SynapseMessageReceiver.java:83)
> at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180)
> at 
> org.apache.synapse.transport.passthru.ServerWorker.processNonEntityEnclosingRESTHandler(ServerWorker.java:317)
> at 
> org.apache.synapse.transport.passthru.ServerWorker.run(ServerWorker.java:149)
> at 
> org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:172)
> at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
> at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
> at java.lang.Thread.run(Thread.java:745)
> [2016-10-13 11:13:54,807] ERROR - APIMgtResponseHandler Cannot publish 
> response event. null
> java.lang.NullPointerException
> at 
> org.wso2.carbon.apimgt.usage.publisher.APIMgtUsageDataBridgeDataPublisher.publishEvent(APIMgtUsageDataBridgeDataPublisher.java:140)
> at 
> org.wso2.carbon.apimgt.usage.publisher.APIMgtResponseHandler.mediate(APIMgtResponseHandler.java:211)
> at 
> org.apache.synapse.mediators.ext.ClassMediator.mediate(ClassMediator.java:84)
> at 
> org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:81)
> at 
> org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:48)
> at 
> org.apache.synapse.mediators.base.SequenceMediator.mediate(SequenceMediator.java:155)
> at org.apache.synapse.rest.Resource.process(Resource.java:297)
> at org.apache.synapse.rest.API.process(API.java:335)
> at 
> org.apache.synapse.rest.RESTRequestHandler.dispatchToAPI(RESTRequestHandler.java:86)
> at 
> org.apache.synapse.rest.RESTRequestHandler.process(RESTRequestHandler.java:52)
> at 
> org.apache.synapse.core.axis2.Axis2SynapseEnvironment.injectMessage(Axis2SynapseEnvironment.java:295)
> at 
> org.apache.synapse.core.axis2.SynapseCallbackReceiver.handleMessage(SynapseCallbackReceiver.java:529)
> at 
> org.apache.synapse.core.axis2.SynapseCallbackReceiver.receive(SynapseCallbackReceiver.java:172)
> at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180)
> at 
> org.apache.synapse.transport.passthru.ClientWorker.run(ClientWorker.java:251)
> at 
> org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:172)
> at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
> at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
> at java.lang.Thread.run(Thread.java:745)
>
> I am glad to hear something from you .
>
>


-- 
Thanks
Abimaran Kugathasan
Senior Software Engineer - API Technologies

Email : abima...@wso2.com
Mobile : +94 773922820


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


Re: [Dev] Email Notification under a proxy server

2016-10-16 Thread Tishan Dahanayakage
Hi Aneela,

Please use following doc to id the keys and then add those as new property
element to the file and try.

https://javamail.java.net/nonav/docs/api/com/sun/mail/smtp/package-summary.html

Thanks
/Tishan

On Thu, Oct 13, 2016 at 9:27 PM, Aneela Safdar  wrote:

> Hi Tishan,
>
> Thanks for response.
>
> I was wondering there are no properties key for proxy server ip and its
> port, also for username and password for authentication from proxy. All I
> could see in output-event-adapter.xml are those which I have already used.
>
> 
> 
> safdar.anee...@gmail.com
> Aneela Safdar
> *
> smtp.googlemail.com
> 465
> true
> true
> 
> 8
> 100
> 2
> 1
> 
>
> Can you tell me what should be the keys for following values
>
> proxy server ip
> proxy server port
> proxy authentication username
> proxy authentication password
>
> Thanks in advance.
>
> Regards,
> Aneela Safdar
>
>
> --
> *From:* Tishan Dahanayakage 
> *To:* Aneela Safdar 
> *Cc:* WSO2 Developers' List 
> *Sent:* Wednesday, October 12, 2016 5:18 PM
> *Subject:* Re: [Dev] Email Notification under a proxy server
>
> Hi,
>
> Yes. you can add required AMTP properties to out-event-adaptor.xml. Also
> please make sure that your proxy server supports SOCKS and allows anonymous
> connections. This[1] is the class that represent the adaptor. This will be
> useful if you run into any issues.
>
> [1] https://github.com/wso2/carbon-analytics-common/blob/
> master/components/event-publisher/event-output-adapters/org.wso2.carbon.
> event.output.adapter.email/src/main/java/org/wso2/carbon/
> event/output/adapter/email/EmailEventAdapter.java
>
> Thanks,
> Tishan
>
> On Wed, Oct 12, 2016 at 4:10 PM, Aneela Safdar 
> wrote:
>
> Hi,
>
> I am trying to use Email adapter in order to provide notifications. But
> the problem is I am behind a proxy server and JavaMail doesnot support any
> web proxy, After a little search, I have found out that it is doable if
> proxy server supports SOCKS. It means I have to add parameters of Email
> adapter  in outout-event-adapter.xml file to put information of proxy
> server ip, port, username and password etc. Any suggestions or other way
> out?
>
>
> Regards,
> Aneela Safdar
>
> __ _
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/ mailman/listinfo/dev
> 
>
>
>
>
> --
> Tishan Dahanayakage
> Senior Software Engineer
> WSO2, Inc.
> Mobile:+94 716481328
>
> Disclaimer: This communication may contain privileged or other
> confidential information and is intended exclusively for the addressee/s.
> If you are not the intended recipient/s, or believe that you may have
> received this communication in error, please reply to the sender indicating
> that fact and delete the copy you received and in addition, you should not
> print, copy, re-transmit, disseminate, or otherwise use the information
> contained in this communication. Internet communications cannot be
> guaranteed to be timely, secure, error or virus-free. The sender does not
> accept liability for any errors or omissions.
>
>
>


-- 
Tishan Dahanayakage
Senior Software Engineer
WSO2, Inc.
Mobile:+94 716481328

Disclaimer: This communication may contain privileged or other confidential
information and is intended exclusively for the addressee/s. If you are not
the intended recipient/s, or believe that you may have received this
communication in error, please reply to the sender indicating that fact and
delete the copy you received and in addition, you should not print, copy,
re-transmit, disseminate, or otherwise use the information contained in
this communication. Internet communications cannot be guaranteed to be
timely, secure, error or virus-free. The sender does not accept liability
for any errors or omissions.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Checking the existence of the roles with the character "@"

2016-10-16 Thread Megala Uthayakumar
Hi All,

I am working on a jira issue which is related with problem in updating the
permissions for the role names with special characters[1]. When I was
analyzing this issue I found that
when we have an existing role with a "@" character, the system returns
false, even that particular role exists in the primary user store. This is
because, in the JDBCUserStoreManager, before checking whether the
particular role exists, it creates a role context [2], in which it splits
the role using "@" character and takes the 1st part of the role as the role
name and if the split has more than a single part [3], it considers second
part as the tenant id.

For example if we have a role with a name 'test@', it will consider 'test'
as a role name, because of that isExisting check, returns false.

This behavior affects the role addition in management console too. After
creating a role with a name "test@" , if we try to create another role name
with the same name, it throws, following exception.
*Caused by: org.h2.jdbc.JdbcSQLException: Unique index or primary key
violation: "CONSTRAINT_INDEX_19 ON PUBLIC.UM_ROLE(UM_ROLE_NAME,
UM_TENANT_ID) VALUES ( /* key:6 */ null, 'adadad@', -1234, null)"; SQL
statement:*
*INSERT INTO UM_ROLE (UM_ROLE_NAME, UM_TENANT_ID) VALUES (?, ?) [23505-175]*
* at org.h2.message.DbException.getJdbcSQLException(DbException.java:332)*
* at org.h2.message.DbException.get(DbException.java:172)*
* at org.h2.message.DbException.get(DbException.java:149)*
* at org.h2.index.BaseIndex.getDuplicateKeyException(BaseIndex.java:101)*
* at org.h2.index.PageBtree.find(PageBtree.java:121)*
* at org.h2.index.PageBtreeLeaf.addRow(PageBtreeLeaf.java:148)*
* at org.h2.index.PageBtreeLeaf.addRowTry(PageBtreeLeaf.java:101)*
* at org.h2.index.PageBtreeIndex.addRow(PageBtreeIndex.java:96)*
* at org.h2.index.PageBtreeIndex.add(PageBtreeIndex.java:87)*
* at org.h2.table.RegularTable.addRow(RegularTable.java:119)*
* at org.h2.command.dml.Insert.insertRows(Insert.java:157)*
* at org.h2.command.dml.Insert.update(Insert.java:115)*
* at org.h2.command.CommandContainer.update(CommandContainer.java:79)*
* at org.h2.command.Command.executeUpdate(Command.java:253)*
* at
org.h2.jdbc.JdbcPreparedStatement.executeUpdateInternal(JdbcPreparedStatement.java:154)*
* at
org.h2.jdbc.JdbcPreparedStatement.executeUpdate(JdbcPreparedStatement.java:140)*
* at
org.wso2.carbon.user.core.jdbc.JDBCUserStoreManager.updateStringValuesToDatabase(JDBCUserStoreManager.java:2352)*
* ... 78 more*
*[2016-10-17 09:33:50,836] ERROR
{org.wso2.carbon.user.mgt.ui.UserAdminClient} -  Error occurred while
getting database type from DB connection*
*org.apache.axis2.AxisFault: Error occurred while getting database type
from DB connection*
* at
org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(Utils.java:531)*
* at
org.apache.axis2.description.RobustOutOnlyAxisOperation$RobustOutOnlyOperationClient.handleResponse(RobustOutOnlyAxisOperation.java:91)*
* at
org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:445)*
* at
org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:225)*
* at
org.apache.axis2.client.OperationClient.execute(OperationClient.java:149)*
* at
org.wso2.carbon.user.mgt.stub.UserAdminStub.addRole(UserAdminStub.java:5002)*
* at
org.wso2.carbon.user.mgt.ui.UserAdminClient.addRole(UserAdminClient.java:76)*
* at
org.apache.jsp.role.add_002dfinish_002dajaxprocessor_jsp._jspService(add_002dfinish_002dajaxprocessor_jsp.java:159)*
* at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)*
* at javax.servlet.http.HttpServlet.service(HttpServlet.java:731)*
* at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:439)*
* at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:395)*
* at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:339)*
* at javax.servlet.http.HttpServlet.service(HttpServlet.java:731)*
* at org.wso2.carbon.ui.JspServlet.service(JspServlet.java:155)*
* at org.wso2.carbon.ui.TilesJspServlet.service(TilesJspServlet.java:80)*
* at javax.servlet.http.HttpServlet.service(HttpServlet.java:731)*
* at
org.eclipse.equinox.http.helper.ContextPathServletAdaptor.service(ContextPathServletAdaptor.java:37)*
* at
org.eclipse.equinox.http.servlet.internal.ServletRegistration.service(ServletRegistration.java:61)*
* at
org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:128)*
* at
org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:68)*
* at javax.servlet.http.HttpServlet.service(HttpServlet.java:731)*
* at
org.wso2.carbon.tomcat.ext.servlet.DelegationServlet.service(DelegationServlet.java:68)*
* at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)*
* at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)*
* at 

Re: [Dev] Delete queries used in APIM

2016-10-16 Thread Fathima Dilhasha
Thanks Praminda.

On Mon, Oct 17, 2016 at 9:40 AM, Praminda Jayawardana 
wrote:

> Hi Fathima,
>
> Yes these queries are executed in Application deletion flow [1].
>
> [1]: https://github.com/wso2/carbon-apimgt/blob/master/
> components/apimgt/org.wso2.carbon.apimgt.impl/src/main/
> java/org/wso2/carbon/apimgt/impl/dao/ApiMgtDAO.java#L4756
>
> Thank,
> Praminda
>
> On Mon, Oct 17, 2016 at 9:32 AM, Fathima Dilhasha 
> wrote:
>
>> Hi APIM team,
>>
>> Are the following queries executed from any flow in APIM? I cannot seem
>> to find out from the source code.
>>
>> DELETE FROM AM_APPLICATION_REGISTRATION WHERE  APP_ID = 
>>
>> DELETE FROM AM_APPLICATION WHERE APPLICATION_ID = 
>>
>> Thanks.
>> Dilhasha
>>
>>
>> --
>> Fathima Dilhasha
>> *Software Engineer*
>> Mobile : +94 (0) 771663314 <%2B94%20%280%29%20773655496>
>> <%2B94%20%280%29%20773%20451194>
>> dilha...@wso2.com 
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> *Praminda Jayawardana*
> Software Engineer
> WSO2 Inc.; http://wso2.com
> Mobile : +94 (0) 716 590918
>



-- 
Fathima Dilhasha
*Software Engineer*
Mobile : +94 (0) 771663314 <%2B94%20%280%29%20773655496>
<%2B94%20%280%29%20773%20451194>
dilha...@wso2.com 
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Delete queries used in APIM

2016-10-16 Thread Praminda Jayawardana
Hi Fathima,

Yes these queries are executed in Application deletion flow [1].

[1]:
https://github.com/wso2/carbon-apimgt/blob/master/components/apimgt/org.wso2.carbon.apimgt.impl/src/main/java/org/wso2/carbon/apimgt/impl/dao/ApiMgtDAO.java#L4756

Thank,
Praminda

On Mon, Oct 17, 2016 at 9:32 AM, Fathima Dilhasha  wrote:

> Hi APIM team,
>
> Are the following queries executed from any flow in APIM? I cannot seem to
> find out from the source code.
>
> DELETE FROM AM_APPLICATION_REGISTRATION WHERE  APP_ID = 
>
> DELETE FROM AM_APPLICATION WHERE APPLICATION_ID = 
>
> Thanks.
> Dilhasha
>
>
> --
> Fathima Dilhasha
> *Software Engineer*
> Mobile : +94 (0) 771663314 <%2B94%20%280%29%20773655496>
> <%2B94%20%280%29%20773%20451194>
> dilha...@wso2.com 
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*Praminda Jayawardana*
Software Engineer
WSO2 Inc.; http://wso2.com
Mobile : +94 (0) 716 590918
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Delete queries used in APIM

2016-10-16 Thread Fathima Dilhasha
Hi APIM team,

Are the following queries executed from any flow in APIM? I cannot seem to
find out from the source code.

DELETE FROM AM_APPLICATION_REGISTRATION WHERE  APP_ID = 

DELETE FROM AM_APPLICATION WHERE APPLICATION_ID = 

Thanks.
Dilhasha


-- 
Fathima Dilhasha
*Software Engineer*
Mobile : +94 (0) 771663314 <%2B94%20%280%29%20773655496>
<%2B94%20%280%29%20773%20451194>
dilha...@wso2.com 
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Bulk deleting files with a pattern in file connector

2016-10-16 Thread Malaka Silva
Hi Shazni,

Create a jira to track this please.​​

​Feel free to contribute the improvement. :)


On Sun, Oct 16, 2016 at 8:11 PM, Vivekananthan Sivanayagam <
vivekanant...@wso2.com> wrote:

> Hi ,
>
> The existing connector does not have this option to delete. It deletes
> only a single file or given folder, can not work for the pattern at the
> moment.
>
> Vivekananthan Sivanayagam
> Associate Software Engineer | WSO2
> E:vivekanant...@wso2.com
> M:+94752786138
>
> On Sun, Oct 16, 2016 at 5:36 PM, Shazni Nazeer  wrote:
>
>> Hi all,
>>
>> Just double checking, if there's a way to bulk delete files using the
>> file connector. I tried different options but wasn't able to do this.
>>
>> e.g: Given a pattern, Cal_*.xml, should delete Cal_1.xml, Cal_test.xml etc
>>
>> Do you guys know a way to achieve above using the file connector?
>>
>> If not, wouldn't this be a useful improvement for the file-connector [1]
>>
>> [1] https://docs.wso2.com/display/ESBCONNECTORS/Working+with
>> +the+File+Connector+Version+2
>>
>> regards,
>>
>> Shazni Nazeer
>> Associate Technical Lead | WSO2
>>
>> Mob : +94 37331
>> LinkedIn : http://lk.linkedin.com/in/shazninazeer
>> Blog : http://shazninazeer.blogspot.com
>>
>> 
>>
>
>


-- 

Best Regards,

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

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

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

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


[Dev] [IoTS] Build error with missing package org.wso2.carbon.apimgt.api.model [5.0.0, 6.0.0)

2016-10-16 Thread 云展智创
Hi all,

When I built the product-iot in order of carbon-device-mgt, 
carbon-device-mgt-plugin, then product-iot, I got the following errors. Anyone 
can help me? Thanks.

Installing org.wso2.carbon.device.mgt.analytics.dashboard.feature.group 
1.2.2.SNAPSHOT.
Installing org.wso2.carbon.analytics.cdmf.feature.group 1.0.1.SNAPSHOT.
Installation failed.
Cannot complete the install because one or more required items could not be 
found.
 Software being installed: WSO2 Carbon - MQTT Based Push Notification Provider 
Feature 1.2.2.SNAPSHOT 
(org.wso2.carbon.device.mgt.extensions.push.notification.provider.mqtt.feature.group
 1.2.2.SNAPSHOT)
 Missing requirement: org.wso2.carbon.device.mgt.common 1.2.2.SNAPSHOT 
(org.wso2.carbon.device.mgt.common 1.2.2.SNAPSHOT) requires 'package 
org.wso2.carbon.apimgt.api.model [5.0.0,6.0.0)' but it could not be found
 Cannot satisfy dependency:
  From: org.wso2.carbon.device.mgt.extensions.push.notification.provider.mqtt 
1.2.2.SNAPSHOT 
(org.wso2.carbon.device.mgt.extensions.push.notification.provider.mqtt 
1.2.2.SNAPSHOT)
  To: package org.wso2.carbon.device.mgt.common [1.2.0,2.0.0)
 Cannot satisfy dependency:
  From: WSO2 Carbon - MQTT Based Push Notification Provider Feature 
1.2.2.SNAPSHOT 
(org.wso2.carbon.device.mgt.extensions.push.notification.provider.mqtt.feature.group
 1.2.2.SNAPSHOT)
  To: org.wso2.carbon.device.mgt.extensions.push.notification.provider.mqtt 
[1.2.2.SNAPSHOT]


--
Zhanwen Zhou (Jason)
+86 13922218435
zhanwen.z...@smartcloudex.com
Guangzhou Smart Cloudex Technology Co., Ltd.
Business: IOT, API

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


Re: [Dev] Bulk deleting files with a pattern in file connector

2016-10-16 Thread Vivekananthan Sivanayagam
Hi ,

The existing connector does not have this option to delete. It deletes only
a single file or given folder, can not work for the pattern at the moment.

Vivekananthan Sivanayagam
Associate Software Engineer | WSO2
E:vivekanant...@wso2.com
M:+94752786138

On Sun, Oct 16, 2016 at 5:36 PM, Shazni Nazeer  wrote:

> Hi all,
>
> Just double checking, if there's a way to bulk delete files using the file
> connector. I tried different options but wasn't able to do this.
>
> e.g: Given a pattern, Cal_*.xml, should delete Cal_1.xml, Cal_test.xml etc
>
> Do you guys know a way to achieve above using the file connector?
>
> If not, wouldn't this be a useful improvement for the file-connector [1]
>
> [1] https://docs.wso2.com/display/ESBCONNECTORS/Working+
> with+the+File+Connector+Version+2
>
> regards,
>
> Shazni Nazeer
> Associate Technical Lead | WSO2
>
> Mob : +94 37331
> LinkedIn : http://lk.linkedin.com/in/shazninazeer
> Blog : http://shazninazeer.blogspot.com
>
> 
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Bulk deleting files with a pattern in file connector

2016-10-16 Thread Shazni Nazeer
Hi all,

Just double checking, if there's a way to bulk delete files using the file
connector. I tried different options but wasn't able to do this.

e.g: Given a pattern, Cal_*.xml, should delete Cal_1.xml, Cal_test.xml etc

Do you guys know a way to achieve above using the file connector?

If not, wouldn't this be a useful improvement for the file-connector [1]

[1]
https://docs.wso2.com/display/ESBCONNECTORS/Working+with+the+File+Connector+Version+2

regards,

Shazni Nazeer
Associate Technical Lead | WSO2

Mob : +94 37331
LinkedIn : http://lk.linkedin.com/in/shazninazeer
Blog : http://shazninazeer.blogspot.com


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