You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@solr.apache.org by "Eric Pugh (Jira)" <ji...@apache.org> on 2024/03/28 19:22:00 UTC

[jira] [Resolved] (SOLR-17110) unquoted uuid values in json query response

     [ https://issues.apache.org/jira/browse/SOLR-17110?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Eric Pugh resolved SOLR-17110.
------------------------------
    Fix Version/s: 9.6.0
       Resolution: Fixed

> 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
>            Assignee: Eric Pugh
>            Priority: Major
>             Fix For: 9.6.0
>
>          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-unsubscribe@solr.apache.org
For additional commands, e-mail: issues-help@solr.apache.org