Märt created SOLR-17110:
---------------------------
Summary: unquoted uuid values in json query response
Key: SOLR-17110
URL: https://issues.apache.org/jira/browse/SOLR-17110
Project: Solr
Issue Type: Bug
Security Level: Public (Default Security Level. Issues are Public)
Affects Versions: 9.4, 9.3
Environment: linux, jdk 17
Reporter: Märt
Json query responses that contain UUID field values are malformed: the values
are not properly quoted. Example:
{code:java}
"docs":[{
"id":"1",
"eventId":d8fa5301-4f7b-4c14-aa0e-b891e20f16f5,
"_version_":1787085364586872832
}] {code}
Steps to repro:
Unpack solr 9.4.0 and start with `{color:#000000}bin/solr -f{color}`.
Run the shell script:
{code:java}
baseurl="http://localhost:8983"
curl -X POST
"$baseurl/solr/admin/cores?action=CREATE&&name=sample&configSet=_default"
curl -H 'Content-Type: application/json' --data-binary '{"add-field-type":
{"name":"uuid", "class":"solr.UUIDField"}}' "$baseurl/solr/sample/schema"
curl -H 'Content-Type: application/json' --data-binary '{"add-field": {"name":
"eventId", "type":"uuid"}}' "$baseurl/solr/sample/schema"
curl -H 'Content-Type: application/json' --data-binary '{"id": "1", "eventId":
"d8fa5301-4f7b-4c14-aa0e-b891e20f16f5"}'
"$baseurl/solr/sample/update/json/docs?commit=true"
curl "$baseurl/solr/sample/query?q=*:*"
{code}
This is likely a regression from SOLR-16691.
This was first reported in
[https://lists.apache.org/thread/b717gcmjj92vxgq48g4ho8wct3zm4rct] and
something was done in SOLR-10653 but it seems the issue persists. The latest CI
build solr-9.5.0-jenkins725.tgz still reproduces.
I reported the issue again in
[https://lists.apache.org/thread/zfgz4oh23b3njklgjs4cqjn6p7ctz3ow] but no
response yet.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]