[icinga-checkins] icinga.org: icinga-core/dev/core: classic-ui: fixed CGIs generating invalid html code/ json when throwing error #3507

git at icinga.org git at icinga.org
Thu Jan 10 20:23:51 CET 2013


Module: icinga-core
Branch: dev/core
Commit: ea510beee03fdbefe27098d60266334a577720b1
URL:    https://git.icinga.org/?p=icinga-core.git;a=commit;h=ea510beee03fdbefe27098d60266334a577720b1

Author: Ricardo Bartels <ricardo at bitchbrothers.com>
Date:   Fri Dec 21 00:36:51 2012 +0100

classic-ui: fixed CGIs generating invalid html code/ json when throwing error #3507

refs: #3507

* generating valid JSON on error
* removed ERROR_CGI_RESOURCE_CFG and icinga_resource_file_error because it
isn't used anywhere
* removed ERROR_CGI_ID because it isn't' used either
* now tac header shows a nice formatted error messages

---

 Changelog           |    1 +
 cgi/avail.c         |    8 +-
 cgi/cgiutils.c      |  225 ++++++++++++++++++++++++++++++---------------------
 cgi/cmd.c           |    8 +-
 cgi/config.c        |    6 +-
 cgi/extinfo.c       |    8 +-
 cgi/histogram.c     |   16 ++--
 cgi/history.c       |    6 +-
 cgi/notifications.c |    6 +-
 cgi/outages.c       |    8 +-
 cgi/showlog.c       |    6 +-
 cgi/status.c        |    8 +-
 cgi/statusmap.c     |   12 +--
 cgi/summary.c       |    6 +-
 cgi/tac.c           |    8 +-
 cgi/trends.c        |   16 ++--
 include/cgiutils.h  |   21 +++---
 17 files changed, 205 insertions(+), 164 deletions(-)

Diff:   https://git.icinga.org/?p=icinga-core.git;a=commitdiff;h=ea510beee03fdbefe27098d60266334a577720b1




More information about the icinga-checkins mailing list