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

Remove unnecessary size check on static files #39

Merged
merged 1 commit into from
May 10, 2021
Merged

Remove unnecessary size check on static files #39

merged 1 commit into from
May 10, 2021

Conversation

Roy-Orbison
Copy link
Contributor

Breaks serving 0-byte files where only the file name is significant, such as those used in HTTP challenges for domain verification, SSL cert issuance, etc.

Q A
Documentation no
Bugfix yes
BC Break no
New Feature no
RFC no
QA no

Description

This was a fix to a downstream issue (shlinkio/shlink#988) due to which Let's Encrypt SSL certificates failed to issue/renew on Litespeed Web Server (an Apache-compatible server).

Breaks serving 0-byte files where only the file name is significant, such as those used in HTTP challenges for domain verification, SSL cert issuance, etc.

Signed-off-by: Roy-Orbison <Roy-Orbison@users.noreply.github.com>
@acelaya
Copy link

acelaya commented Feb 1, 2021

As a reference, according to apache docs, this change makes sense:

-s
Is regular file, with size.
Treats the TestString as a pathname and tests whether or not it exists, and is a regular file with size greater than zero.
-f
Is regular file.
Treats the TestString as a pathname and tests whether or not it exists, and is a regular file.

@froschdesign
Copy link
Member

If this proposal accepted then we need also an update on laminas-mvc-skeleton.

@weierophinney weierophinney added this to the 3.8.0 milestone May 10, 2021
@weierophinney weierophinney added the Enhancement New feature or request label May 10, 2021
@weierophinney weierophinney merged commit ffd3f7c into mezzio:3.8.x May 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants