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

[Bug]: Shared Services HTTPD Server sometimes returns Bad Request #519

Open
anilnatha opened this issue Jan 22, 2025 · 2 comments
Open

[Bug]: Shared Services HTTPD Server sometimes returns Bad Request #519

anilnatha opened this issue Jan 22, 2025 · 2 comments
Assignees
Labels
bug Something isn't working U-CS

Comments

@anilnatha
Copy link

anilnatha commented Jan 22, 2025

Checked for duplicates

Have you checked for duplicate issue tickets?

Yes - I've already checked, but didn't find anything.

Describe the bug

When navigating to a URL in a venue, e.g. https://www.dev.mdps.mcp.nasa.gov:4443/unity/dev/ui

An error response of Bad Request is returned, see screenshot. At the bottom of the response, the shared services httpd server appears to be the responding server which is why I'm adding a ticket to this repo.

Image

What did you expect?

I expected the server to either 1) ask me to login if my session/token has expired or 2) return the results of what i expect from visiting the service identified after the <project>/<venue>/ in the URL.

Reproducible steps

How would we reproduce this bug? Please walk us through it step by step. Plain-text snippets preferred but screenshots welcome.

I'm unsure of the exact steps to reproduce this behavior, but from what I've observed, if one let's some time go by after successfully logging in, and then later revisits the same URL, this response is given.

I've also observed that clearing cookies in the browser resolves this issue.

What is your environment?

Include any computer hardware, operating system, framework, browser, time-of-day or other contextual information related to your issue

  • Operating System: MacOSX
  • Browser: Firefox ESR
@jl-0
Copy link

jl-0 commented Feb 27, 2025

Related to proxy issue, similar to ticket unity-sds/unity-project-management#223

@jl-0 jl-0 moved this from Needs Review to Todo in Unity Project Board Feb 27, 2025
@jl-0 jl-0 moved this from Todo to In Progress in Unity Project Board Feb 27, 2025
@ramesh-maddegoda
Copy link
Contributor

@jl-0 and @anilnatha ,

This looks like a well known issue with mod_auth_openidc that we use for COgnito authentication in HTTPD (Apache 2), as discussed in the following links.

https://discourse.openondemand.org/t/hitting-max-authorized-valid-state-cookies/667/5
OpenIDC/mod_auth_openidc#714

They have fixed this in recent versions and introduced a new property called OIDCStateMaxNumberOfCookies to limit the max number of state cookies. Some developers suggest to use 10 as a fair number of cookies.

However, to make sure if this OIDCStateMaxNumberOfCookies setting is working, I set it to 3 for now in MCP Dev HTTPD as follows.

 # Set max number of state cookies to avoid piling up OIDC state cookies
 OIDCStateMaxNumberOfCookies 3 true

@anilnatha,

  • Can you please let me know if you see this issue anymore?
  • Also please let me know if setting this value to 3 has any unexpected impacts

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working U-CS
Projects
Status: In Progress
Development

No branches or pull requests

4 participants