Your message dated Thu, 24 Dec 2009 12:02:57 +0000
with message-id <[email protected]>
and subject line Bug#561406: fixed in trac 0.11.6-2
has caused the Debian Bug report #561406,
regarding tracd uses Cache-control instead of Cache-Control HTTP header in its 
responses
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
561406: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=561406
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: trac
Version: 0.11.5-5
Severity: minor
Tags: patch

tracd uses "Cache-control" HTTP response header instead of "Cache-Control" as 
shown :

A) Launch tracd :

$ tracd --port 8000 /tmp/test
Server starting in PID 21267.
Serving on 0.0.0.0:8000 view at http://127.0.0.1:8000/

B) Query it :

$ telnet 127.0.0.1 8000
Trying 127.0.0.1...
Connected to 127.0.0.1.
Escape character is '^]'.
GET / HTTP/1.1

HTTP/1.0 200 OK
Server: tracd/0.11.5 Python/2.5.4
Date: Wed, 16 Dec 2009 21:46:20 GMT
Cache-control: must-revalidate
Content-Type: text/html;charset=utf-8
Content-Length: 377

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";>
<html xmlns="http://www.w3.org/1999/xhtml";>
  <head>
    <title>Available Projects</title>
  </head>
  <body>
    <h1>Available Projects</h1>
    <ul>
      <li>
        <a href="/test" title="My example project">My Project</a>
      </li>
    </ul>
  </body>
</html>Connection closed by foreign host.
$

HTTP RFC specifies "Cache-Control" , but there Cache-control is used. 

A minor bug that could be fixed by the following minor patch :

--- trac/web/api.py     2009-12-16 21:39:06.000000000 +0000
+++ trac/web/api-patched.py     2009-12-16 21:51:20.000000000 +0000
@@ -321,7 +321,7 @@
         self.send_header('Content-Type', 'text/plain')
         self.send_header('Content-Length', 0)
         self.send_header('Pragma', 'no-cache')
-        self.send_header('Cache-control', 'no-cache')
+        self.send_header('Cache-Control', 'no-cache')
         self.send_header('Expires', 'Fri, 01 Jan 1999 00:00:00 GMT')
         self.end_headers()

@@ -350,7 +350,7 @@

     def send(self, content, content_type='text/html', status=200):
         self.send_response(status)
-        self.send_header('Cache-control', 'must-revalidate')
+        self.send_header('Cache-Control', 'must-revalidate')
         self.send_header('Content-Type', content_type + ';charset=utf-8')
         self.send_header('Content-Length', len(content))
         self.end_headers()
@@ -386,7 +386,7 @@

         self.send_response(status)
         self._outheaders = []
-        self.send_header('Cache-control', 'must-revalidate')
+        self.send_header('Cache-Control', 'must-revalidate')
         self.send_header('Expires', 'Fri, 01 Jan 1999 00:00:00 GMT')
         self.send_header('Content-Type', content_type + ';charset=utf-8')
         self.send_header('Content-Length', len(data))

Hope this helps. 
Thanks for all ur good job. trac rulez !

-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)

Kernel: Linux 2.6.30-2-686 (SMP w/1 CPU core)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/bash

Versions of packages trac depends on:
ii  python                       2.5.4-2     An interactive high-level object-o
ii  python-central               0.6.14+nmu2 register and build utility for Pyt
ii  python-genshi                0.5.1-2     Python XML-based template engine
ii  python-pysqlite2             2.5.5-3     Python interface to SQLite 3
ii  python-setuptools            0.6.8-1     Python Distutils Enhancements (set

Versions of packages trac recommends:
ii  apache-ssl [httpd]           1.3.34-4.1  versatile, high-performance HTTP s
ii  apache2                      2.2.14-3    Apache HTTP Server metapackage
ii  apache2-mpm-prefork [httpd]  2.2.14-3    Apache HTTP Server - traditional n
ii  enscript                     1.6.4-13    Converts ASCII text to Postscript,
ii  libjs-jquery                 1.3.3-2     JavaScript library for dynamic web
ii  python-subversion            1.6.3dfsg-1 Python bindings for Subversion
ii  python-tz                    2009p-1     Python version of the Olson timezo

Versions of packages trac suggests:
pn  libapache2-mod-wsgi | libapac <none>     (no description available)
pn  python-docutils               <none>     (no description available)
pn  python-textile                <none>     (no description available)
pn  trac-accountmanager           <none>     (no description available)
pn  trac-bzr                      <none>     (no description available)
pn  trac-email2trac               <none>     (no description available)
pn  trac-git                      <none>     (no description available)
pn  trac-mercurial                <none>     (no description available)
pn  trac-spamfilter               <none>     (no description available)

-- no debconf information




--- End Message ---
--- Begin Message ---
Source: trac
Source-Version: 0.11.6-2

We believe that the bug you reported is fixed in the latest version of
trac, which is due to be installed in the Debian FTP archive:

trac_0.11.6-2.diff.gz
  to main/t/trac/trac_0.11.6-2.diff.gz
trac_0.11.6-2.dsc
  to main/t/trac/trac_0.11.6-2.dsc
trac_0.11.6-2_all.deb
  to main/t/trac/trac_0.11.6-2_all.deb



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
W. Martin Borgert <[email protected]> (supplier of updated trac package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.8
Date: Thu, 24 Dec 2009 08:43:08 +0000
Source: trac
Binary: trac
Architecture: source all
Version: 0.11.6-2
Distribution: unstable
Urgency: low
Maintainer: Python Applications Packaging Team 
<[email protected]>
Changed-By: W. Martin Borgert <[email protected]>
Description: 
 trac       - Enhanced wiki and issue tracking system for software development
Closes: 561406 562145
Changes: 
 trac (0.11.6-2) unstable; urgency=low
 .
   * Create jQuery symlink at install time, as the file might not
     exist at that moment. (Closes: #562145). Thanks, Clint Adams.
   * Fix a typo in tracd HTTP header, thanks to Sebastien Couret
     for fixing. (Closes: #561406).
Checksums-Sha1: 
 85eeb6c897935912eeba05d36c0fa8a670f52045 1463 trac_0.11.6-2.dsc
 f55fa70fd1f8245081e7992e0f05211e63a18faf 34910 trac_0.11.6-2.diff.gz
 83c29760466c63f336a81ceaae82aef6eb0a7ee7 613130 trac_0.11.6-2_all.deb
Checksums-Sha256: 
 4e86e2a97ad72c636a83f5edaa0dc14b9d8e8025520e685afd0e17e428c8684b 1463 
trac_0.11.6-2.dsc
 7831499374ce2e5d6c75107bab16121df122c6cbcd0c55dbd467abcfc2976346 34910 
trac_0.11.6-2.diff.gz
 b4ff3ae6da2b85e9932d952fcef6ba8e7732be6a30734cd0cef3f3ff214501af 613130 
trac_0.11.6-2_all.deb
Files: 
 020a75e09e0c3dce641b93ba66e2f187 1463 web optional trac_0.11.6-2.dsc
 ac98a53da49992b2423d894239262cee 34910 web optional trac_0.11.6-2.diff.gz
 ca41bb3e03d23feafdb8b295d3f3081e 613130 web optional trac_0.11.6-2_all.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)

iEYEARECAAYFAkszU0AACgkQ+xM0OFfj6Igx7ACbBcLpEKpiR9DyPHkM1a4UWGZe
F/oAoIp2VmllXVtB8gr7CN3CC71idEuI
=wG7k
-----END PGP SIGNATURE-----



--- End Message ---

Reply via email to