From owner-freebsd-www@FreeBSD.ORG Sun Sep 30 21:40:05 2012 Return-Path: Delivered-To: freebsd-www@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5D0D91065670 for ; Sun, 30 Sep 2012 21:40:05 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 1446B8FC15 for ; Sun, 30 Sep 2012 21:40:05 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q8ULe4XK073047 for ; Sun, 30 Sep 2012 21:40:04 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q8ULe4J7073041; Sun, 30 Sep 2012 21:40:04 GMT (envelope-from gnats) Resent-Date: Sun, 30 Sep 2012 21:40:04 GMT Resent-Message-Id: <201209302140.q8ULe4J7073041@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-www@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Michael Gmelin Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 4F40F106564A for ; Sun, 30 Sep 2012 21:37:26 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22]) by mx1.freebsd.org (Postfix) with ESMTP id 3A2338FC08 for ; Sun, 30 Sep 2012 21:37:26 +0000 (UTC) Received: from red.freebsd.org (localhost [127.0.0.1]) by red.freebsd.org (8.14.5/8.14.5) with ESMTP id q8ULbP98087630 for ; Sun, 30 Sep 2012 21:37:25 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.5/8.14.5/Submit) id q8ULbPRE087629; Sun, 30 Sep 2012 21:37:25 GMT (envelope-from nobody) Message-Id: <201209302137.q8ULbPRE087629@red.freebsd.org> Date: Sun, 30 Sep 2012 21:37:25 GMT From: Michael Gmelin To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: www/172195: PR database corrupts patches X-BeenThere: freebsd-www@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD Project Webmasters List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 30 Sep 2012 21:40:05 -0000 >Number: 172195 >Category: www >Synopsis: PR database corrupts patches >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-www >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sun Sep 30 21:40:04 UTC 2012 >Closed-Date: >Last-Modified: >Originator: Michael Gmelin >Release: FreeBSD 9.0 >Organization: Grem Equity GmbH >Environment: FreeBSD undermydesk 9.0-RELEASE FreeBSD 9.0-RELEASE #0: Tue Jan 3 07:46:30 UTC 2012 >Description: Uploading patches to the FreeBSD PR system might corrupt them on download from the PR web page. This affects UTF-8 encoded patches as well as binary patches. As an additional test I will upload a text containing a UTF-8 snippet, which should resemble two 3 byte uTF-8 sequences forming the word China in Chinese (0xe4 0xb8 0xad 0xe5 0x9b 0xbd or 中国) Then I will send a follow up email, that contains the same man page as a mime attachment using content-type application/x-gzip. I might to additional tests on this PR (more UTF-8 based text etc.) to see if there is a safe way to provide this kind of data to a PR. >How-To-Repeat: Send a bug follow-up containing a gzipped file or UTF-8 file containing special characters. >Fix: For binary patches: Copy and paste the base64 representation shown in the PR and decode it on the command line, e.g. using "openssl enc -d -a". For text: none known. This might not be a bug and completely work as designed - in this case I would like to see some documentation though, since these days patches might contain UTF-8 characters on a regular basis. Patch attached with submission follows: 中国 >Release-Note: >Audit-Trail: >Unformatted: