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

Fix: wrong key used to access log-cache root endpoint. Fix cloudfoundry#1251 #1252

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

Lokowandtg
Copy link

Fix #1251.
The key to access the log-cache URL hay a typo.
Add one testcase to the normal access with the key.
Add one testcase for the fallback if the root endpoint does not provide the value. This test shows that the letters "api" in the remaining URL are also replaced, leading to invalid results.

@@ -24,6 +24,7 @@
import org.cloudfoundry.logcache.v1.ReadRequest;
import org.cloudfoundry.logcache.v1.ReadResponse;
import org.cloudfoundry.reactor.ConnectionContext;
import org.cloudfoundry.reactor.RootProvider;
Copy link
Contributor

Choose a reason for hiding this comment

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

unused import, please remove

@anthonydahanne
Copy link
Contributor

please rebase on main

@Lokowandtg Lokowandtg force-pushed the fixLogCacheRootAccess branch from e35de47 to b2435fa Compare February 20, 2025 18:16
Copy link

linux-foundation-easycla bot commented Feb 20, 2025

CLA Signed

The committers listed above are authorized under a signed CLA.

@Lokowandtg Lokowandtg force-pushed the fixLogCacheRootAccess branch from b2435fa to 6ec4124 Compare February 24, 2025 17:06
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.

Typo in key name when accessing log-cache from root endpoint
2 participants