-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
HHH-14725 Fix reset handling on BlobProxy #4496
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
Conversation
beikov
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
|
How about wrapping an |
|
Is there maybe an ETA when this will be merged? Our workaround for now is: Another workaround is to use a |
Hi @beikov do we have another proxy type that does this so I can use that as a reference guide? |
|
It's fine, let's merge this as soon as tests succeed. |
| final Asset asset = new Asset(); | ||
| asset.setFileName( "blob.txt" ); | ||
|
|
||
| final InputStream stream = new BufferedInputStream( Files.newInputStream( path ) ); |
Check warning
Code scanning / CodeQL
Potential input resource leak
| @Test | ||
| @Priority(10) | ||
| public void initData() { | ||
| final Path path = Path.of( getClass().getResource( "./blob.txt" ).getPath() ); |
Check warning
Code scanning / CodeQL
Unsafe use of getResource
|
The test seems to fail @Naros |
|
@Naros What is the status of this one? |
|
Closing this one in favour of #9402 where I rebased the PR and fixed a problem with the test. |
https://hibernate.atlassian.net/browse/HHH-14725