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

[MRESOLVER-269] FileProcessor.write( File, InputStream ) is defunct #222

Merged
merged 2 commits into from
Nov 18, 2022

Conversation

cstamas
Copy link
Member

@cstamas cstamas commented Nov 17, 2022

The FileProcessor.write( File, InputStream ) method is completely broken, it always fails. This method is used ONLY when FileTransformer is present. Result of plain oversight and not being covered by tests.


https://issues.apache.org/jira/browse/MRESOLVER-296

@cstamas cstamas self-assigned this Nov 17, 2022
@cstamas
Copy link
Member Author

cstamas commented Nov 17, 2022

Good, same error as in IT reproduced:

Error:  org.eclipse.aether.internal.impl.DefaultFileProcessorTest.testWriteStream  Time elapsed: 0.007 s  <<< ERROR!
java.nio.file.FileAlreadyExistsException: /home/runner/work/maven-resolver/maven-resolver/maven-resolver-impl/target/surefire-tmp/aether-ba89ddd7/tmpdir-730038012625876920DefaultFileProcessorTest/testWriteStream.txt6170314563750400049tmp

@cstamas cstamas marked this pull request as ready for review November 17, 2022 19:32
@cstamas cstamas merged commit 3561187 into apache:master Nov 18, 2022
@cstamas cstamas deleted the MRESOLVER-296-file-processor branch November 18, 2022 10:24
@cstamas cstamas added this to the 1.9.2 milestone Nov 18, 2022
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

Successfully merging this pull request may close these issues.

2 participants