Skip to content

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

Open
t-engl wants to merge 1 commit intopimcore:2.3from
t-engl:sbs-error-414
Open

Fix SimpleBackendSearch Error 414 - Request-URI Too Large#1087
t-engl wants to merge 1 commit intopimcore:2.3from
t-engl:sbs-error-414

Conversation

@t-engl
Copy link

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

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
Copy link
Contributor

Copilot AI left a comment

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.

}

return null;
}
Copy link

Copilot AI Jan 28, 2026

Choose a reason for hiding this comment

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

Avoid automated semicolon insertion (92% of all statements in the enclosing script have an explicit semicolon).

Copilot uses AI. Check for mistakes.
@t-engl
Copy link
Author

t-engl commented Jan 28, 2026

Added related PR to pimcore/pimcore

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants