Return-Path: X-Original-To: apmail-cocoon-users-archive@www.apache.org Delivered-To: apmail-cocoon-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 30F358079 for ; Fri, 9 Sep 2011 08:21:13 +0000 (UTC) Received: (qmail 41975 invoked by uid 500); 9 Sep 2011 08:21:12 -0000 Delivered-To: apmail-cocoon-users-archive@cocoon.apache.org Received: (qmail 41566 invoked by uid 500); 9 Sep 2011 08:20:54 -0000 Mailing-List: contact users-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: users@cocoon.apache.org List-Id: Delivered-To: mailing list users@cocoon.apache.org Received: (qmail 41556 invoked by uid 99); 9 Sep 2011 08:20:51 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 09 Sep 2011 08:20:51 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [86.39.240.33] (HELO mail.hostyou.net) (86.39.240.33) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 09 Sep 2011 08:20:41 +0000 Received: from zappware.com [81.83.7.21] ([192.168.0.33]) by mail.hostyou.net (HostYou Mail Server) with ESMTP id SRD37520 for ; Fri, 09 Sep 2011 10:20:20 +0200 Date: Fri, 09 Sep 2011 10:20:20 +0200 To: users@cocoon.apache.org From: =?UTF-8?Q?Brecht_Schoolmeesters?= Subject: =?UTF-8?Q?map:serialize_http_404_status_code_in_map:handle-errors?= Message-ID: X-Mailer: IceWarp Mailer 10.3.2 X-Priority: 3 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="b1_f0bdb1de8bc4416b811b7d717a65ec65" X-Virus-Checked: Checked by ClamAV on apache.org --b1_f0bdb1de8bc4416b811b7d717a65ec65 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi, I think there is a bug in cocoon. When I try the following, the cocoon = server returns http status code 200. It should return http 404: =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 This is very strange because when I set status codes 500, 400, 401, ... = these all work. The only one that doesn't work is the 404 not found status = code. The problem only occurs within the tag. Thanks in advance, Brecht --b1_f0bdb1de8bc4416b811b7d717a65ec65 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi,

I think there is a bug in = cocoon. When I try the following, the cocoon server returns http status = code 200. It should return http 404:

 &= lt;map:handle-errors>
        = <map:generate src=3D"error.xml"/>
      =   <map:serialize type=3D"xml" status-code=3D"404"/>
&= lt;/map:handle-errors>

This is very = strange because when I set status codes 500, 400, 401, ... these all work. = The only one that doesn't work is the 404 not found status code. The = problem only occurs within the <map:handle-errors> = tag.

Thanks in = advance,
Brecht
--b1_f0bdb1de8bc4416b811b7d717a65ec65--