Skip to content
New issue

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

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

Already on GitHub? # to your account

Fixed RarHandler - non-absolute URL to File conversion #25226

Merged
merged 1 commit into from
Nov 25, 2024

Conversation

dmatej
Copy link
Contributor

@dmatej dmatej commented Nov 24, 2024

  • As the Archive#getURI says, the method can return nearly anything and there no guarantee that the URI can be converted to a File.
  • Sometimes it is an absolute file, sometimes relative path, sometimes URI pointing to a file inside jar inside ear.
  • This minimal fix avoids an exception, and it is similar to conversion used on other places.

@dmatej dmatej added the bug Something isn't working label Nov 24, 2024
@dmatej dmatej added this to the 7.0.20 milestone Nov 24, 2024
@dmatej dmatej requested a review from a team November 24, 2024 19:54
@dmatej dmatej marked this pull request as draft November 24, 2024 21:01
- As the Archive#getURI says, the method can return nearly anything and there
  no guarantee that the URI can be converted to a File.
- Sometimes it is an absolute file, sometimes relative path, sometimes URI
  pointing to a file inside jar inside ear.
- This minimalistic fix avoids an exception, similar is on other places.

Signed-off-by: David Matějček <david.matejcek@omnifish.ee>
@dmatej dmatej requested review from pzygielo, OndroMih, arjantijms, avpinchuk and a team November 24, 2024 21:14
@dmatej dmatej marked this pull request as ready for review November 24, 2024 21:14
@dmatej dmatej self-assigned this Nov 24, 2024
@arjantijms arjantijms merged commit 8e8c3e3 into eclipse-ee4j:master Nov 25, 2024
3 checks passed
@dmatej dmatej deleted the rar branch November 25, 2024 13:07
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants