You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As provided in in form matchingPattern default value is *.*. But when running this give an error
ERROR {ListFiles} - Error while performing file:listFiles for folder file:////Users/kalindu/Downloads/folder/ java.util.regex.PatternSyntaxException: Dangling meta character '*' near index 0
*.*
^
at java.base/java.util.regex.Pattern.error(Pattern.java:2028)
at java.base/java.util.regex.Pattern.sequence(Pattern.java:2203)
at java.base/java.util.regex.Pattern.expr(Pattern.java:2069)
at java.base/java.util.regex.Pattern.compile(Pattern.java:1783)
at java.base/java.util.regex.Pattern.<init>(Pattern.java:1429)
at java.base/java.util.regex.Pattern.compile(Pattern.java:1069)
at org.wso2.carbon.connector.utils.SimpleFileFiler.<init>(SimpleFileFiler.java:39)
at org.wso2.carbon.connector.operations.ListFiles.getFilesAndFolders(ListFiles.java:328)
at org.wso2.carbon.connector.operations.ListFiles.listFilesInHierarchicalFormat(ListFiles.java:257)
at org.wso2.carbon.connector.operations.ListFiles.listFilesInFolder(ListFiles.java:227)
at org.wso2.carbon.connector.operations.ListFiles.connect(ListFiles.java:141)
at org.wso2.carbon.connector.core.AbstractConnector.mediate(AbstractConnector.java:32)
at org.apache.synapse.mediators.ext.ClassMediator.updateInstancePropertiesAndMediate(ClassMediator.java:182)
at org.apache.synapse.mediators.ext.ClassMediator.mediate(ClassMediator.java:95)
at org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:126)
at org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:74)
at org.apache.synapse.mediators.template.TemplateMediator.mediate(TemplateMediator.java:147)
at org.apache.synapse.mediators.template.InvokeMediator.mediate(InvokeMediator.java:180)
at org.apache.synapse.mediators.template.InvokeMediator.mediate(InvokeMediator.java:96)
at org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:126)
at org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:74)
at org.apache.synapse.mediators.base.SequenceMediator.mediate(SequenceMediator.java:158)
at org.apache.synapse.api.Resource.process(Resource.java:338)
at org.apache.synapse.api.API.process(API.java:462)
at org.apache.synapse.api.AbstractApiHandler.apiProcess(AbstractApiHandler.java:95)
at org.apache.synapse.api.AbstractApiHandler.dispatchToAPI(AbstractApiHandler.java:73)
at org.apache.synapse.api.rest.RestRequestHandler.dispatchToAPI(RestRequestHandler.java:90)
at org.apache.synapse.api.rest.RestRequestHandler.process(RestRequestHandler.java:76)
at org.apache.synapse.rest.RESTRequestHandler.process(RESTRequestHandler.java:54)
at org.apache.synapse.core.axis2.Axis2SynapseEnvironment.injectMessage(Axis2SynapseEnvironment.java:350)
at org.apache.synapse.core.axis2.SynapseMessageReceiver.receive(SynapseMessageReceiver.java:101)
at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180)
at org.apache.synapse.transport.passthru.ServerWorker.processNonEntityEnclosingRESTHandler(ServerWorker.java:401)
at org.apache.synapse.transport.passthru.ServerWorker.run(ServerWorker.java:215)
at org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:172)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:829)
[2025-02-21 10:06:07,801] ERROR {ListFiles} - {api:listfiles} Error while performing file:listFiles for folder file:////Users/kalindu/Downloads/folder/ java.util.regex.PatternSyntaxException: Dangling meta character '*' near index 0
*.*
^
at java.base/java.util.regex.Pattern.error(Pattern.java:2028)
at java.base/java.util.regex.Pattern.sequence(Pattern.java:2203)
at java.base/java.util.regex.Pattern.expr(Pattern.java:2069)
at java.base/java.util.regex.Pattern.compile(Pattern.java:1783)
at java.base/java.util.regex.Pattern.<init>(Pattern.java:1429)
at java.base/java.util.regex.Pattern.compile(Pattern.java:1069)
at org.wso2.carbon.connector.utils.SimpleFileFiler.<init>(SimpleFileFiler.java:39)
at org.wso2.carbon.connector.operations.ListFiles.getFilesAndFolders(ListFiles.java:328)
at org.wso2.carbon.connector.operations.ListFiles.listFilesInHierarchicalFormat(ListFiles.java:257)
at org.wso2.carbon.connector.operations.ListFiles.listFilesInFolder(ListFiles.java:227)
at org.wso2.carbon.connector.operations.ListFiles.connect(ListFiles.java:141)
at org.wso2.carbon.connector.core.AbstractConnector.mediate(AbstractConnector.java:32)
at org.apache.synapse.mediators.ext.ClassMediator.updateInstancePropertiesAndMediate(ClassMediator.java:182)
at org.apache.synapse.mediators.ext.ClassMediator.mediate(ClassMediator.java:95)
at org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:126)
at org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:74)
at org.apache.synapse.mediators.template.TemplateMediator.mediate(TemplateMediator.java:147)
at org.apache.synapse.mediators.template.InvokeMediator.mediate(InvokeMediator.java:180)
at org.apache.synapse.mediators.template.InvokeMediator.mediate(InvokeMediator.java:96)
at org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:126)
at org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:74)
at org.apache.synapse.mediators.base.SequenceMediator.mediate(SequenceMediator.java:158)
at org.apache.synapse.api.Resource.process(Resource.java:338)
at org.apache.synapse.api.API.process(API.java:462)
at org.apache.synapse.api.AbstractApiHandler.apiProcess(AbstractApiHandler.java:95)
at org.apache.synapse.api.AbstractApiHandler.dispatchToAPI(AbstractApiHandler.java:73)
at org.apache.synapse.api.rest.RestRequestHandler.dispatchToAPI(RestRequestHandler.java:90)
at org.apache.synapse.api.rest.RestRequestHandler.process(RestRequestHandler.java:76)
at org.apache.synapse.rest.RESTRequestHandler.process(RESTRequestHandler.java:54)
at org.apache.synapse.core.axis2.Axis2SynapseEnvironment.injectMessage(Axis2SynapseEnvironment.java:350)
at org.apache.synapse.core.axis2.SynapseMessageReceiver.receive(SynapseMessageReceiver.java:101)
at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180)
at org.apache.synapse.transport.passthru.ServerWorker.processNonEntityEnclosingRESTHandler(ServerWorker.java:401)
at org.apache.synapse.transport.passthru.ServerWorker.run(ServerWorker.java:215)
at org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:172)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:829)
Steps to Reproduce
Create a project
Add api and File connecter list operation
Send request to api
Version
MI- 4.3.0, Connector - 4.0.35
Environment Details (with versions)
No response
The text was updated successfully, but these errors were encountered:
Description
As provided in in form
matchingPattern
default value is*.*
. But when running this give an errorSteps to Reproduce
Version
MI- 4.3.0, Connector - 4.0.35
Environment Details (with versions)
No response
The text was updated successfully, but these errors were encountered: