Skip to content

WebLogic REST API sessions are now managed and should not grow #239

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

Merged
merged 2 commits into from
Jan 4, 2023

Conversation

russgold
Copy link
Member

@russgold russgold commented Jan 3, 2023

The REST API creates sessions when it receives a request specifying login credentials; in order to prevent it from creating massive numbers of them, the exporter now acts as a web browser does, adding to its collection of web cookies when it receives a Set-Cookie header from the REST API, and sending a Cookie header to the API when it makes requests.

@russgold russgold self-assigned this Jan 3, 2023
@oracle-contributor-agreement oracle-contributor-agreement bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label Jan 3, 2023
@russgold russgold marked this pull request as ready for review January 3, 2023 23:42
lennyphan
lennyphan previously approved these changes Jan 4, 2023
robertpatrick
robertpatrick previously approved these changes Jan 4, 2023
@russgold russgold dismissed stale reviews from robertpatrick and lennyphan via fca91f9 January 4, 2023 16:40
@sonarqubecloud
Copy link

sonarqubecloud bot commented Jan 4, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

97.7% 97.7% Coverage
0.0% 0.0% Duplication

final Cookie cookie = new Cookie(cookieHeader);
COOKIES
.computeIfAbsent(context.getAuthenticationHeader(), h -> new ArrayList<>())
.add(cookie);
Copy link
Member

Choose a reason for hiding this comment

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

You would need to synchronize around the add too.

Copy link
Member

Choose a reason for hiding this comment

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

Oh, ignore... This is called under the other synchronized block.

@russgold russgold merged commit 5677472 into main Jan 4, 2023
@russgold russgold deleted the russ_owls_105424 branch January 4, 2023 19:32
@russgold russgold changed the title Manage wls-management-services sessions in exporter WLSE REST API sessions are now managed and should not grow Jan 18, 2023
@russgold russgold changed the title WLSE REST API sessions are now managed and should not grow WebLogic REST API sessions are now managed and should not grow Jan 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
OCA Verified All contributors have signed the Oracle Contributor Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants