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

[WINDUP-3881]-"Export zip" is not working in Windows #1669

Merged
merged 4 commits into from
Jun 14, 2023

Conversation

carlosthe19916
Copy link
Member

@carlosthe19916 carlosthe19916 commented May 24, 2023

https://issues.redhat.com/browse/WINDUP-3881

In Windows, the value of String zipOutputPath is formatted using \ as a file separator; however, a URI object should be constructed by a String that uses / as a separator. Creating the final URI object based on a java.io.File makes sure the separators are handled automatically on each OS.

@mrizzi mrizzi self-requested a review May 24, 2023 09:50
@mrizzi mrizzi added auto-backport Set the PR for being backported auto-backport-to-releases/6.2.z Backport this issue to releases/6.2.z branch labels Jun 12, 2023
carlosthe19916 and others added 3 commits June 14, 2023 16:58
…example.war (windup#1680)

* Changed libs in hibernate-tutorial-web-3.3.2.GA.war and spring-small-example.war

* Made windup-rulesets caches uniquely identified

* Changed libs in Windup1x-javaee-example.war

* Changed libs in jee-example-app-1.0.0.ear

* Changed libs in duplicate/duplicate-ear-test-{1,2,3}.ear

* Changed libs in frameworks.war

* Changed libs in graph/tests/src/test/resources/project_model_traversal/app.ear

* Restore MANIFEST.MF in Windup1x-javaee-example.war
Copy link
Member

@mrizzi mrizzi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes have been tested successfully (thanks @PhilipCattanach).

Thanks for fixing this @carlosthe19916

@mrizzi mrizzi merged commit cff9651 into windup:master Jun 14, 2023
23 checks passed
github-actions bot pushed a commit that referenced this pull request Jun 14, 2023
* Output URI created from a java.io.File rather than a String to avoid Windows characters error

---------

Co-authored-by: Marco Rizzi <mrizzi@users.noreply.github.com>
Co-authored-by: mrizzi <mrizzi@redhat.com>
(cherry picked from commit cff9651)
@github-actions
Copy link

💚 All backports created successfully

Status Branch Result
releases/6.2.z

Questions ?

Please refer to the Backport tool documentation and see the Github Action logs for details

mrizzi pushed a commit that referenced this pull request Jun 15, 2023
* Output URI created from a java.io.File rather than a String to avoid Windows characters error

---------

Co-authored-by: Marco Rizzi <mrizzi@users.noreply.github.com>
Co-authored-by: mrizzi <mrizzi@redhat.com>
(cherry picked from commit cff9651)

Co-authored-by: Carlos E. Feria Vila <carlosthe19916@gmail.com>
jmle pushed a commit to jmle/windup that referenced this pull request Jun 26, 2023
* Output URI created from a java.io.File rather than a String to avoid Windows characters error

---------

Co-authored-by: Marco Rizzi <mrizzi@users.noreply.github.com>
Co-authored-by: mrizzi <mrizzi@redhat.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto-backport Set the PR for being backported auto-backport-to-releases/6.2.z Backport this issue to releases/6.2.z branch Ready to Review
Projects
None yet
2 participants