Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid default matching pattern in ListFiles operation of file connector #4016

Open
SanojPunchihewa opened this issue Feb 14, 2025 · 0 comments

Comments

@SanojPunchihewa
Copy link
Contributor

Description

We have an invalid pattern (.) set as the default value for the matching pattern in ListFiles operation of file connector. If we deploy the default config and invoke the following error is thrown

[2025-02-14 11:17:47,134] ERROR {ListFiles} - {api:DataServiceAPI:v4.3.0} Error while performing file:listFiles for folder file:////Users/username/work/4.4.0/ssl2 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:1430)
	at java.base/java.util.regex.Pattern.compile(Pattern.java:1069)

Steps to Reproduce

  1. Add the ListFiles operation of the file connector
  2. Set the file connection and the directory path
  3. Deploy and invoke it

Version

Connector version: 4.0.33

Environment Details (with versions)

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant