Skip to content

WordPress Gutenberg UI break when wrong responce received. #69986

@mecaota

Description

@mecaota

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

  1. Implement a feature that allows input of up to 2000 ASCII characters or 500 multibyte characters in the properties of a Gutenberg block.
  2. Block URLs longer than 2048 bytes using nginx or WAF.
  3. 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.
  4. /wp-json/wp/v2/block-renderer/custom-gutenberg-blocks/
  5. 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.
  6. 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

Image

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

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions