Skip to content
This repository was archived by the owner on Aug 13, 2026. It is now read-only.

Fix SimpleBackendSearch Error 414 - Request-URI Too Large - #1087

Merged
kingjia90 merged 3 commits into
pimcore:2.3from
t-engl:sbs-error-414
Jul 20, 2026
Merged

Fix SimpleBackendSearch Error 414 - Request-URI Too Large#1087
kingjia90 merged 3 commits into
pimcore:2.3from
t-engl:sbs-error-414

Conversation

@t-engl

@t-engl t-engl commented Jan 28, 2026

Copy link
Copy Markdown
Contributor

Changes in this pull request

Use POST instead of GET to search for objects for combo to prevent 414 error response if possible.

The change should be backwards compatible, because the used Http-Method is declared by the actual implemenation and defaulting to GET.

For this PR to take effect, SimpleBackendSearch bundled with pimcore 12.x itself should also be patched, but should not break even without the change.

Additional info

It may be sufficient to remove the extra parameter unsavedChanges instead, which is most likelly the root cause of this issue, but I don't know it's purpose.

Added getObjectRelationInlineSearchRouteMethod to searchFacade and helper
Changed object-tags to use getObjectRelationInlineSearchRouteMethod
Copilot AI review requested due to automatic review settings January 28, 2026 14:52

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds support for configuring the HTTP method (GET vs POST) used by the inline relation “combo” search requests, enabling POST to avoid 414 Request-URI Too Large when request parameters become large.

Changes:

  • Configure many-to-one and many-to-many relation combo stores to use a configurable proxy.actionMethods.read.
  • Introduce pimcore.helpers.getObjectRelationInlineSearchRouteMethod() to retrieve the desired HTTP method from the registered search implementation.
  • Extend the search facade (searchImplementationRegistry) with getObjectRelationInlineSearchRouteMethod() including a default fallback to GET.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

File Description
public/js/pimcore/object/tags/manyToOneRelation.js Sets proxy.actionMethods.read for relation inline search store to allow POST.
public/js/pimcore/object/tags/manyToManyObjectRelation.js Sets proxy.actionMethods.read for relation inline search store to allow POST.
public/js/pimcore/helpers.js Adds helper accessor for retrieving the inline search route HTTP method from the search registry.
public/js/pimcore/element/selector/searchFacade.js Adds facade method with backward-compatible GET default when implementation doesn’t specify a method.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread public/js/pimcore/helpers.js Outdated
@t-engl

t-engl commented Jan 28, 2026

Copy link
Copy Markdown
Contributor Author

Added related PR to pimcore/pimcore

kingjia90 and others added 2 commits July 20, 2026 14:48
…ment

Addresses review feedback on getObjectRelationInlineSearchRouteMethod():
terminate the assignment statement with an explicit semicolon instead of
relying on automatic semicolon insertion, consistent with the rest of the file.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@sonarqubecloud

Copy link
Copy Markdown

❌ The last analysis has failed.

See analysis details on SonarQube Cloud

@kingjia90
kingjia90 merged commit 99bbc4a into pimcore:2.3 Jul 20, 2026
12 checks passed
@github-actions github-actions Bot locked and limited conversation to collaborators Jul 20, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants