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

Review use of QueryBuilder and prevent ResourceResolver leakage #1539

Closed
davidjgonzalez opened this issue Nov 1, 2018 · 7 comments
Closed
Assignees
Milestone

Comments

@davidjgonzalez
Copy link
Contributor

Use of QueryBuilder APIs for querying often results in a leaking ResourceResolver.

The ACS Commons code-base should be reviewed for use of QueryBuilder and any leakage should be mitigated.

@davidjgonzalez davidjgonzalez self-assigned this Nov 1, 2018
@stale
Copy link

stale bot commented Dec 31, 2018

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix label Dec 31, 2018
@stale stale bot closed this as completed Jan 12, 2019
@adamcin
Copy link
Contributor

adamcin commented Jan 15, 2019

@davidjgonzalez I think we should reopen this issue after merging #1686 . The CloseableQueryBuilder should ease mitigation in most places.

@badvision badvision removed the wontfix label Jan 15, 2019
@badvision badvision reopened this Jan 15, 2019
adamcin added a commit to adamcin/acs-aem-commons that referenced this issue Jan 15, 2019
badvision pushed a commit that referenced this issue Jan 17, 2019
* Issue #1539 replace encapsulated usage of QB with CloseableQB.

* Implemented AdapterFactory for CloseableQB and added some cursory tests

* Full coverage for OnDeployScriptBase.

* More coverage for EnsureAce.
justinedelson pushed a commit that referenced this issue Feb 6, 2019
* Issue #1539 replace encapsulated usage of QB with CloseableQB.

* Implemented AdapterFactory for CloseableQB and added some cursory tests

* Full coverage for OnDeployScriptBase.

* More coverage for EnsureAce.
@stale
Copy link

stale bot commented Mar 16, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix label Mar 16, 2019
@davidjgonzalez
Copy link
Contributor Author

@adamcin Do you recall where this was left off? I thought you actually ended up going through and updated the uses of QueryBuilder to use CloseableQueryBuilder. Do you recall if you only tackled a subset?

@adamcin
Copy link
Contributor

adamcin commented Mar 19, 2019

@davidjgonzalez I believe I converted all usages of QueryBuilder that were present at the time.

@davidjgonzalez
Copy link
Contributor Author

thanks @adamcin took a quick scan and looks like you did; there were a few unused references left but easy enough to clean up in #1794 - thanks!!!

@davidjgonzalez davidjgonzalez added this to the 4.0.2 milestone Mar 19, 2019
davidjgonzalez added a commit to davidjgonzalez/acs-aem-commons that referenced this issue Mar 19, 2019
@justinedelson justinedelson modified the milestones: 4.0.2, 4.1.2 May 7, 2019
@davidjgonzalez
Copy link
Contributor Author

This was fixed w/ CloseableQueryBuilder

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants