Uploaded image for project: 'Olingo'
  1. Olingo
  2. OLINGO-903

?$format=json does not work when entity or collection is nonexistent

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • (Java) V4 4.1.0
    • (Java) V4 4.2.0
    • odata4-server
    • None

    Description

      ArtSalesOrder/0.0.1-SNAPSHOT/CustomerNonExixtent?$format=json

      Regarding the above query the Entity ‘CustomerNonExixtent’ does not exist . But while returning the response it is arriving in xml format even though we request json format. On debugging we found that the uriInfo object creation results in an exception during queries like this, hence the ContentNegotiator switches to the default xml format. Is this behavior expected ?

      Attachments

        Activity

          People

            mirbo mibo
            anirbandas22@gmail.com Anirban Das
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: