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

Jdbc Libs File Set Matching Rule issue #27197

Open
hantsy opened this issue Dec 16, 2023 · 0 comments
Open

Jdbc Libs File Set Matching Rule issue #27197

hantsy opened this issue Dec 16, 2023 · 0 comments
Labels
in:Kernel/Bootstrap Needs member attention release bug This bug is present in a released version of Open Liberty

Comments

@hantsy
Copy link

hantsy commented Dec 16, 2023

Kernel Assessment
Small. Relevant code is listed here: #15724 (comment). (Focus on the regex code and on the file matching code.)

See related issue #15724, which intersects in the regex generation step.

Describe the bug

When preparing the https://github.com/hantsy/jakartaee10-starter-boilerplate and in the progress of handling this issue, I found an small issue about the path matching rule in JdbcLib fileset includes of the server.xml file.

I used the following config to search Jdbc drivers from the resources folder. I used a Derby embedded database in my example project.

<library id="derbyJDBCLib">
    <fileset dir="${shared.resource.dir}" includes="derby*.jar"/>
</library>

When downloading the derby.jar into the resources folder directly, it can not find the derby.jar in the resources folder. When saving the derby jar with a version as derby-10.14.2.0.jar(this line has already included the fixes and added the version), it worked.

Theoretically the * can match anything, length is 0 or more. But derby*.jar does not match derby.jar.

Steps to Reproduce
Steps to reproduce the bug

Expected behavior
A clear and concise description of what you expected to happen.

Diagnostic information:

Additional context
Add any other context about the problem here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in:Kernel/Bootstrap Needs member attention release bug This bug is present in a released version of Open Liberty
Projects
Status: Needs Member Attention Kernel Issues
Development

No branches or pull requests

3 participants