Skip to content

Make Rack::Lint disallow PATH_INFO="" SCRIPT_NAME=""#2316

Merged
ioquatix merged 1 commit intorack:mainfrom
jeremyevans:path-info-script-name-non-empty
Jul 30, 2025
Merged

Make Rack::Lint disallow PATH_INFO="" SCRIPT_NAME=""#2316
ioquatix merged 1 commit intorack:mainfrom
jeremyevans:path-info-script-name-non-empty

Conversation

@jeremyevans
Copy link
Copy Markdown
Contributor

@jeremyevans jeremyevans commented Mar 22, 2025

This was previously allowed, even though the text implies it shouldn't be valid. As such, I consider this a bug fix and not a SPEC change.

Fixes #2307.

@jeremyevans
Copy link
Copy Markdown
Contributor Author

@ioquatix
Copy link
Copy Markdown
Member

Let me re-iterate how glad I am that we test our major downstream dependencies.

@ioquatix
Copy link
Copy Markdown
Member

This should be fixed by sinatra/sinatra#2114

Copy link
Copy Markdown
Member

@ioquatix ioquatix left a comment

Choose a reason for hiding this comment

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

LGTM. Sinatra now has the fix so it's up to them to implement it (or not).

This was previously allowed, even though the text implies it shouldn't
be valid.  As such, I consider this a bug fix and not a SPEC change.
@ioquatix ioquatix force-pushed the path-info-script-name-non-empty branch from 345374c to 4d285ea Compare July 30, 2025 00:55
@ioquatix ioquatix merged commit 9453930 into rack:main Jul 30, 2025
14 of 17 checks passed
ioquatix added a commit to sinatra/sinatra that referenced this pull request Jul 30, 2025
This is a temporary fix for #2113 until rack/rack#2316 is merged.
@ioquatix
Copy link
Copy Markdown
Member

I've merged a temporary fix to skip the faulty tests in Sinatra, so this should now be green.

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.

Is SCRIPT_NAME and PATH_INFO both empty strings allowed?

2 participants