I'm pretty sure that Trac 0.10 didn't do this, but after upgrading to
branches/0.11-stable Trac 0.11dev-r7086, Trac is trying to diff PDFs,
resulting in 100% server CPU use for about half a minute and generating
a massive page. While I realize that PDFs are mostly text, I'm not sure
why Trac is trying to interpret it, given its MIME type.
SVN properties on the file, as shown in Trac browser:
* Property svn:mime-type set to application/pdf
* Property svn:needs-lock set to needs lock
My impression is that any mime-type in SVN that doesn't start with
"text/" is a "binary" file. Now Trac does say:
HTML preview not available, since no preview renderer could handle it.
Try downloading the file instead.
Other info:
Trac: 0.11dev-r7086
Python: 2.4.3 (#2, Oct 6 2006, 08:04:11) [GCC 4.0.3 (Ubuntu
4.0.3-1ubuntu5)]
setuptools: 0.6c8
SQLite: 3.2.8
pysqlite: 2.4.1
Genshi: 0.5dev-r851
mod_python: < 3.2
Pygments: 0.10
Subversion: 1.3.1 (r19032)
jQuery: 1.2.3
changeset max_diff_bytes 10000000
max_diff_files 0
The max_diff_bytes is the default value. Maybe I could make it smaller
but Trac shouldn't try to diff a PDF at all, should it?
Jason
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Trac
Users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/trac-users?hl=en
-~----------~----~----~----~------~----~------~--~---