-
Notifications
You must be signed in to change notification settings - Fork 4.5k
Closed
Labels
[Package] Server Side Render/packages/server-side-render/packages/server-side-render[Status] In ProgressTracking issues with work in progressTracking issues with work in progress[Type] BugAn existing feature does not function as intendedAn existing feature does not function as intended
Description
Description
If an invalid response is returned during server-side validation of a Gutenberg block, no operations will be possible
I would like to be able to retry.
Step-by-step reproduction instructions
- Implement a feature that allows input of up to 2000 ASCII characters or 500 multibyte characters in the properties of a Gutenberg block.
- Block URLs longer than 2048 bytes using nginx or WAF.
- Enter a long string into the Gutenberg block's properties to ensure that the GET query parameter is at least 2048 bytes when Gutenberg performs server-side validation.
/wp-json/wp/v2/block-renderer/custom-gutenberg-blocks/
- The validation request URL for
/wp-json/wp/v2/block-renderer/custom-gutenberg-blocks/
is longer than 2048 bytes, and nginx, WAF, etc. return an arbitrary HTTP error such as 503. - If you receive an HTTP 503 error from
/wp-json/wp/v2/block-renderer/custom-gutenberg-blocks/
more than once, you will not be able to manipulate Gutenberg properties like in the attached image.
Screenshots, screen recording, code snippet
Environment info
- WordPress 6.8.0 (docker image: wordpress:6.8.0-php8.4-fpm-alpine )
package.json(for Gutenberg block developping)
"devDependencies": {
"@types/wordpress__block-editor": "11.5.16",
"@types/wordpress__blocks": "12.5.17",
"@wordpress/scripts": "30.15.0"
}
Please confirm that you have searched existing issues in the repo.
- Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
- Yes
Please confirm which theme type you used for testing.
- Block
- Classic
- Hybrid (e.g. classic with theme.json)
- Not sure
Metadata
Metadata
Assignees
Labels
[Package] Server Side Render/packages/server-side-render/packages/server-side-render[Status] In ProgressTracking issues with work in progressTracking issues with work in progress[Type] BugAn existing feature does not function as intendedAn existing feature does not function as intended