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: Send HTTP status code 500 when Bootstrap::ensureRequiredEnvironment() fails #3364

Open
1 task done
christophlehmann opened this issue Jun 10, 2024 · 0 comments
Open
1 task done
Labels

Comments

@christophlehmann
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

Flow could not create the directory "/var/www/html/Data/Persistent". Please check the file permissions manually or run "sudo ./flow flow:core:setfilepermissions" to fix the problem. (Error #1347526553).

This critical error message results with exit code 1 (= not successful) on cli but on a web request i get a HTTP 200 response.

Expected Behavior

I get a HTTP 500 response for such failing web requests. This can be achieved with http_response_code(500);

Steps To Reproduce

No response

Environment

- Neos: 8.3
- PHP: 8.3

Anything else?

No response

christophlehmann pushed a commit to christophlehmann/flow-development-collection that referenced this issue Jun 10, 2024
With this critical error messages like the following now sends the HTTP status code 500 instead 200 in order to state something is not okay on the server side.

Flow could not create the directory "/var/www/html/Data/Persistent". Please check the file permissions manually or run "sudo ./flow flow:core:setfilepermissions" to fix the problem. (Error #1347526553)

Resolves: neos#3364
christophlehmann pushed a commit to christophlehmann/flow-development-collection that referenced this issue Jun 10, 2024
With this critical error messages like the following now sends the HTTP status code 500 instead 200 in order to state something is not okay on the server side.

Flow could not create the directory "/var/www/html/Data/Persistent". Please check the file permissions manually or run "sudo ./flow flow:core:setfilepermissions" to fix the problem. (Error #1347526553)

Resolves: neos#3364
christophlehmann pushed a commit to christophlehmann/flow-development-collection that referenced this issue Jun 10, 2024
With this critical error messages like the following now sends the HTTP status code 500 instead 200 in order to state something is not okay on the server side.

Flow could not create the directory "/var/www/html/Data/Persistent". Please check the file permissions manually or run "sudo ./flow flow:core:setfilepermissions" to fix the problem. (Error #1347526553)

Resolves: neos#3364
vcg-development pushed a commit to vcg-development/flow-development-collection that referenced this issue Oct 22, 2024
With this critical error messages like the following now sends the HTTP status code 500 instead 200 in order to state something is not okay on the server side.

Flow could not create the directory "/var/www/html/Data/Persistent". Please check the file permissions manually or run "sudo ./flow flow:core:setfilepermissions" to fix the problem. (Error #1347526553)

Resolves: neos#3364
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant