The include parameter does not work with non-base Drupal fields with different types of entities when we have special characters in the fulltext string.

Created on 24 December 2024, 10 days ago

I encountered an issue where making an API request to search with special characters across multiple content types causes errors when using the include fields.
Note:

There is no issue with adding base fields in the include.
There is no issue if we search without special character field.

Here is my endpoint.
/jsonapi/index/elastic?filter[4][condition][path]=type&filter[4][condition][value]=collection_description&filter[4][condition][memberOf]=content_type&filter[content_type][group][conjunction]=OR&filter[fulltext]=se'a&filter[type][condition][path]=type&filter[type][condition][value]=blog&filter[type][condition][memberOf]=content_type&include=field_blog_slider&page[limit]=5&page[offset]=0

Here is the response:

{
  "jsonapi": {
    "version": "1.0",
    "meta": {
      "links": {
        "self": {
          "href": "http://jsonapi.org/format/1.0/"
        }
      }
    }
  },
  "errors": [
    {
      "title": "Bad Request",
      "status": "400",
      "detail": "`field_blog_slider` are not valid relationship names. 
🐛 Bug report
Status

Active

Version

1.0

Component

Code

Created by

🇮🇳India keshavv India

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024