[ 
https://issues.apache.org/jira/browse/SOLR-17110?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17831938#comment-17831938
 ] 

ASF subversion and git services commented on SOLR-17110:
--------------------------------------------------------

Commit fcdad0ee63fa8d37a64b409135fb9d652623c724 in solr's branch 
refs/heads/branch_9x from Andrey Bozhko
[ https://gitbox.apache.org/repos/asf?p=solr.git;h=fcdad0ee63f ]

SOLR-17110: Fix JacksonJsonWriter to properly quote uuid values in json query 
response (#2367)



> unquoted uuid values in json query response
> -------------------------------------------
>
>                 Key: SOLR-17110
>                 URL: https://issues.apache.org/jira/browse/SOLR-17110
>             Project: Solr
>          Issue Type: Bug
>    Affects Versions: 9.3, 9.4
>         Environment: linux, jdk 17
>            Reporter: Märt
>            Priority: Major
>          Time Spent: 50m
>  Remaining Estimate: 0h
>
> 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: issues-unsubscr...@solr.apache.org
For additional commands, e-mail: issues-h...@solr.apache.org

Reply via email to