Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: content-type application/json returns no attributes on /attributes/restSearch #8842

Open
1 task done
hazcod opened this issue Jan 3, 2023 · 1 comment
Open
1 task done
Labels
needs triage This issue has been automatically labelled and needs further triage

Comments

@hazcod
Copy link

hazcod commented Jan 3, 2023

Expected behavior

When sending a POST request to /attributes/restSearch, no attributes are ever returned if I specify a HTTP request Content-Type: application/json header.
Things do work if I ommit it or use text/javascript.

The result will be along the lines of this, regardless of the request:

{
"Response": { "Attributes": [] }
}

Actual behavior

Get attributes as normal.

Steps to reproduce

Send any POST request to /attributes/restSearch with content-type: application/json.

Version

2.4.166

Operating System

Unsure

Operating System version

Unsure

PHP version

Unsure

Browser

HTTP

Browser version

No response

Relevant log output

No response

Extra attachments

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
@hazcod hazcod added the needs triage This issue has been automatically labelled and needs further triage label Jan 3, 2023
@hazcod
Copy link
Author

hazcod commented Jan 5, 2023

Duped with #8806

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs triage This issue has been automatically labelled and needs further triage
Projects
None yet
Development

No branches or pull requests

1 participant