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

Bug in path manipulation: Breaks for .yaml resource file in package other than root package. #262

Closed
dsbos opened this issue Feb 12, 2018 · 0 comments

Comments

@dsbos
Copy link
Contributor

dsbos commented Feb 12, 2018

The code that makes the file pathname to the copied .yaml resource file doesn't match the pathname of the copied file. This causes failures when the resource file is in a package (directory) other than the root.

When startEmbeddedCassandra(...) is called with a Yaml resource file pathname of /com/xxx/yyy/zzz/db/cassandra.yaml (and when such a resource exists, of course), the code makes a copy at .../embeddedCassandra/cassandra.yaml--adding just the simple name (last pathname segment) of the resource file pathname to the temporary directory name (.../embeddedCassandra).

However, after that copy, when the code tries to make a file pathname to that copied file, it makes a file pathname of ...embeddedCassandra/com/xxx/yyy/zzz/db/cassandra.yaml--using the whole pathname of the resource, not just the simple name (as the copy used).

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

No branches or pull requests

2 participants