Project

General

Profile

Actions

Bug #102204

open

Wrong HTTP response status code after form submit

Added by Patrick Crausaz 6 months ago. Updated 6 months ago.

Status:
New
Priority:
Should have
Assignee:
-
Category:
Form Framework
Target version:
-
Start date:
2023-10-19
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
12
PHP Version:
8.1
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

When submitting a form (package: typo3/cms-form) with an invalid email address, e.g. a domain that doesn't exist, we get the error

503
Expected response code "250/251/252" but got code "550", with message "550-The mail server could not deliver mail to . The 550-account or domain may not exist, they may be blacklisted, or missing the 550 proper dns entries.".

The message on the screen states a 503 error. However, the actual response is a 500 error.


Files

Actions #1

Updated by Stefan Bürk 6 months ago

503 is a HTTP Status Code. The 550 error code in the error message is a Mailserver error code,
which is a completly other story. And not a valid HTTP Status code.

503 means, that an aunhandled application error is thrown.

What are your settings - are you in debug mode and what are your error/exception level configurations ?
If you switch to more production like, is there than another status code displayed or the normal form ?

Getting the smtp error message looks like you are more in a debug mode context.

Actions #2

Updated by Patrick Crausaz 6 months ago

I wasn't referring to the Mailserver error code, only the HTTP Status code.
I tested with debug and production mode.
In both debug mode and production mode, the error is thrown with code 500, but display code 503 (As you can see in the attached screenshot)

Actions #3

Updated by Chris Müller 6 months ago

  • Category set to Form Framework
Actions

Also available in: Atom PDF