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

JsonFactory.createParser() with File may leak InputStreams #763

Closed
cowtowncoder opened this issue Jun 11, 2022 · 1 comment
Closed

JsonFactory.createParser() with File may leak InputStreams #763

cowtowncoder opened this issue Jun 11, 2022 · 1 comment
Labels
2.14 Issue planned (at earliest) for 2.14
Milestone

Comments

@cowtowncoder
Copy link
Member

(note: offshoot of FasterXML/jackson-databind#3455)

Looks like there is a code path during initialization of InputStream for managed streams (for java.io.File and java.net.URL) which may result in leaked InputStreams (and related entities like file handles).
It's necessary to ensure that this does not happen.

@cowtowncoder cowtowncoder added the 2.14 Issue planned (at earliest) for 2.14 label Jun 11, 2022
@cowtowncoder cowtowncoder added this to the 2.14.0 milestone Jun 11, 2022
@cowtowncoder
Copy link
Member Author

Fixed for 2.14.0 for JSON parser. Probably needs to be fixed for (some) other formats too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2.14 Issue planned (at earliest) for 2.14
Projects
None yet
Development

No branches or pull requests

1 participant