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

Info.convertFullPathToFsAndRelativePath fails on ` (backtick) in s3 path #155

Open
mkerhart-absa opened this issue Jul 3, 2024 · 0 comments

Comments

@mkerhart-absa
Copy link

Repro steps:

val path = "s3a://bucket/data/`backticked.name`"
val (fs, p) = InfoFile.convertFullPathToFsAndRelativePath(path)(hadoopConfig)

Error:

Illegal character in path at index 18: s3a://bucket/data/`backticked.name`
java.net.URISyntaxException: Illegal character in path at index 18: s3a://bucket/data/`backticked.name`
	at java.net.URI$Parser.fail(URI.java:2873)
	at java.net.URI$Parser.checkChars(URI.java:3046)
	at java.net.URI$Parser.parseHierarchical(URI.java:3130)
	at java.net.URI$Parser.parse(URI.java:3078)
	at java.net.URI.<init>(URI.java:588)
	at za.co.absa.atum.utils.InfoFile$.convertFullPathToFsAndRelativePath(InfoFile.scala:45)

Expected result:

The method shouldn't fail. Backtick is a valid path char in this context.

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

1 participant