syntax highlighting/pygments is broken (trac is missing a link to jquery.js)

Bug #610205 reported by Iuri Diniz
26
This bug affects 5 people
Affects Status Importance Assigned to Milestone
trac (Debian)
Fix Released
Unknown
trac (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: trac

The trac package is missing a link to jquery.js, more precisely
/usr/lib/python2.6/dist-packages/trac/htdocs/js/ is missing a link to jquery.js, thus chrome can not find js/jquery.js.
This affect syntax highlighting using pygments which realy on jquery.js.

A workaround is:
ln -s /usr/share/javascript/jquery/jquery.js /usr/lib/python2.6/dist-packages/trac/htdocs/js
---
Architecture: i386
DistroRelease: Ubuntu 10.04
InstallationMedia: Ubuntu 10.04 "Lucid Lynx" - Release Candidate i386 (20100419.1)
NonfreeKernelModules: nvidia
Package: trac 0.11.7-1
PackageArchitecture: all
ProcEnviron:
 LANGUAGE=pt_BR:pt:en
 LANG=pt_BR.UTF-8
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.32-23.37-generic 2.6.32.15+drm33.5
Tags: lucid
Uname: Linux 2.6.32-23-generic i686
UserGroups: adm admin cdrom dialout dip fax floppy fuse lpadmin plugdev sambashare tape video

Revision history for this message
Iuri Diniz (iuridiniz) wrote : Dependencies.txt

apport information

tags: added: apport-collected
description: updated
Revision history for this message
Philipp Wendler (philw85) wrote :

This is already fixed in Debian. Please pull version 0.11.7-2.

Revision history for this message
Daniel Ellis (danellisuk) wrote :

By the way, this issue makes Trac 0.11 run (or at least feel) very slow. I think this is because the browser cannot find jquery.js which causes all sorts of javascript errors.

I fixed our install by adding the following Alias to the path which does contain all the relevant files. Now trac is speedy again!

Alias /trac/chrome/common /usr/share/pyshared/trac/htdocs

<Directory "/usr/share/pyshared/trac/htdocs">
  Order allow,deny
  Allow from all
</Directory>

<Location /trac>
  # Trac config here...
</Location>

# Note, this Location must appear below the /trac location to take effect
<Location "/trac/chrome/common">
  SetHandler None
</Location>

Changed in trac (Debian):
status: Unknown → Fix Released
Revision history for this message
Maarten Bezemer (veger) wrote :

The Oneiric and Precise (and some older packages as well) use fixed Debian version (or newer), so this issue is fixed.

Changed in trac (Ubuntu):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.