Project

General

Profile

« Previous | Next » 

Revision 3e88c44c

Added by Andreas Kohlbecker about 4 years ago

fix #8914 replacing parsed jetty error responses by null (also ref #2711)

View differences:

modules/cdm_dataportal/cdm_api/cdm_api.module
2091 2091
    // Parse data and create object.
2092 2092
    $obj = cdm_load_obj($response_body);
2093 2093

  
2094
    if(isset($obj->servlet) && isset($obj->status) && is_numeric($obj->status)){
2095
      // this is json error message returned by jetty #8914
2096
      // wee need to replace it by null to avoid breaking existing assumptions in the code here
2097
      // this is also related to #2711
2098
      $obj = null;
2099
    }
2100

  
2094 2101
    $duration_parse = microtime(TRUE) - $duration_parse_start;
2095 2102

  
2096 2103
    if (cdm_debug_block_visible()) {

Also available in: Unified diff