From 4a9ce62fe96f4b009be90015ea0f8cb5ef028ccf Mon Sep 17 00:00:00 2001 From: Daniel Veillard Date: Tue, 31 Oct 2006 10:25:13 +0000 Subject: [PATCH] * src/xend_internal.c: when getting informations about a non existant domain, it is not a good idea to raise the HTTP 404 GET error, the handling is better done somewhere up in the stack. Daniel --- ChangeLog | 7 +++++++ NEWS | 12 ++++++++++++ config.h.in | 8 ++++++++ src/xend_internal.c | 3 ++- 4 files changed, 29 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 5cbf24a6ae..db6b39ba62 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +Tue Oct 31 10:31:34 CET 2006 Daniel Veillard + + * src/xend_internal.c: when getting informations about a non + existant domain, it is not a good idea to raise the HTTP + 404 GET error, the handling is better done somewhere up in + the stack. + Tue Oct 24 15:31:23 EDT 2006 Daniel P.Berrange * python/generator.py, python/libvir.c: Drop python interpreter diff --git a/NEWS b/NEWS index cae744a6a5..f1c59d6853 100644 --- a/NEWS +++ b/NEWS @@ -5,6 +5,18 @@ http://libvirt.org/news.html Releases +0.1.8: Oct 16 2006: + - Bug for system with page size != 4k + - vcpu number initialization (Philippe Berthault) + - don't label crashed domains as shut off (Peter Vetere) + - fix virsh man page (Noriko Mizumoto) + - blktapdd support for alternate drivers like blktap (Daniel Berrange) + - memory leak fixes (xend interface and XML parsing) (Daniel Berrange) + - compile fix + - mlock/munlock size fixes (Daniel Berrange) + - improve error reporting + + 0.1.7: Sep 29 2006: - fix a memory bug on getting vcpu informations from xend (Daniel Berrange) - fix another problem in the hypercalls change in Xen changeset diff --git a/config.h.in b/config.h.in index b9ae06bdba..fac4097426 100644 --- a/config.h.in +++ b/config.h.in @@ -4,6 +4,14 @@ language is requested. */ #undef ENABLE_NLS +/* Define to 1 if you have the MacOS X function CFLocaleCopyCurrent in the + CoreFoundation framework. */ +#undef HAVE_CFLOCALECOPYCURRENT + +/* Define to 1 if you have the MacOS X function CFPreferencesCopyAppValue in + the CoreFoundation framework. */ +#undef HAVE_CFPREFERENCESCOPYAPPVALUE + /* Define if the GNU dcgettext() function is already present or preinstalled. */ #undef HAVE_DCGETTEXT diff --git a/src/xend_internal.c b/src/xend_internal.c index bcb349119e..1816e1fa41 100644 --- a/src/xend_internal.c +++ b/src/xend_internal.c @@ -444,7 +444,8 @@ xend_get(virConnectPtr xend, const char *path, ret = xend_req(s, content, n_content); close(s); - if ((ret < 0) || (ret >= 300)) { + if (((ret < 0) || (ret >= 300)) && + ((ret != 404) || (strncmp(path, "/xend/domain/", 13)))) { virXendError(NULL, VIR_ERR_GET_FAILED, content); }