Uploaded image for project: 'Hippo CMS'
  1. Hippo CMS
  2. CMS-15671

Page model API should throw an error instead serving invalid response

    XMLWordPrintable

Details

    • Bug
    • Status: Open
    • Normal
    • Resolution: Unresolved
    • 14.7.11
    • None
    • None
    • Flagged
    • Orion
    • Ready for refinement
    • Undetermined

    Description

      In case of some model related errors, page model API serves a 200 response with partial JSON  and logs a warning. 
      A 500 error or similar should be thrown:

      23.10.2023 17:13:02 WARN http-nio-8080-exec-54 [HstDelegateeFilterBean.doFilter:647] {dt.trace_id=e01067d7022c58a7742d700d5e39ba09, dt.span_id=7d5f303f19219c3e, dt.trace_sampled=true} ContainerException for 'Request{ method='GET', scheme='https', host='test.com', requestURI='/site/test/resourceapi/', queryString='null'}': org.hippoecm.hst.core.container.ContainerException: (was java.lang.ArrayIndexOutOfBoundsException) (through reference chain: org.hippoecm.hst.pagemodelapi.v10.core.container.AggregatedPageModel["page"]->org.hippoecm.hst.pagemodelapi.v10.core.container.PageModelSerializer$DecoratedPageModelEntityWrapper["data"]->com.someclient.beans.Asset["image"]). 

      Attachments

        Activity

          People

            deniz.ergun Deniz Ergun
            mmilicevic Marijan Milicevic
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: