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: avoid executing function when /favicon.ico or /robots.txt is called #226

Conversation

alsoba13
Copy link
Contributor

@alsoba13 alsoba13 commented Aug 16, 2023

Proposed change to fix #225.

As explained in the issue, the solution is based on other Jetty handlers: InetAccessHandler.java

Regarding tests, the integration tests were passing because they just check that 404 is returned, but they miss to check that function is not invoked.

I think that an extra test checking that part would be nice, but the current test framework API won't let me easily check that. I may extend a bit the test framework to add this test if you agree.

@google-cla
Copy link

google-cla bot commented Aug 16, 2023

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

Copy link
Contributor

@HKWinterhalter HKWinterhalter left a comment

Choose a reason for hiding this comment

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

Thank you for finding and fixing this issue! Ack about improving the test framework in another PR

@HKWinterhalter HKWinterhalter merged commit fca8676 into GoogleCloudPlatform:main Sep 28, 2023
@alsoba13
Copy link
Contributor Author

alsoba13 commented Oct 2, 2023

Thank you!

Just a simple doubt. Once the new version is released, how much time it may take to see the fix on production gcp?

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.

Requesting /favicon.ico or /robots.txt invokes function, although it shouldn't according to doc
3 participants