Skip to content

[Bug] - Core, Foxx, string query is being saved as opposed to JSON object. #1775

@JoshuaSBrown

Description

@JoshuaSBrown

Description

A problem was encountered in the release candidate it looks like the query params are being interpreted and saved as a string instead of a JSON object this is creating problems for query execution. Part of the problem seems to have stemmed from changes in the core service that are not appropriately wrapping the params in curly braces before sending them to the database.

The second problem seems to be that the joi schema validator being used by foxx is accepting any input arguments instead of requiring that the params be interpreted as a json object.

Steps to Replicate

  1. Symptoms of the error can be seen by logging into the web server
  2. Selecting the Search icon
  3. Putting in some search information
  4. Saving the query
  5. Going to the file browser panel and expanding the saved queries
Image

Additional context

Page occured:

Expected behavior

Artifacts (if appropriate):

Metadata

Metadata

Assignees

Labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions