Edgewall Software
Modify

Opened 18 years ago

Closed 18 years ago

Last modified 16 years ago

#3428 closed defect (duplicate)

Trac attempts to diff non-text files

Reported by: daniel.m.church@… Owned by: Christopher Lenz
Priority: normal Milestone:
Component: version control Version: 0.9.6
Severity: normal Keywords:
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

When viewing a changeset, Trac will attempt to perform a diff on any file where none of the first 1000 bytes are the null byte (0x00). This causes the server to hang when viewing a changeset on large (>~16MB) binary files that do not happen to have a null byte in the first 1000 bytes.

Created a patch (trac-mimetype-no-binary-diff.patch) to prevent Trac from attempting to perform a diff on files that have the svn:mime-type property set to something other than "text/*".

Attachments (1)

trac-mimetype-no-binary-diff.patch (1.4 KB ) - added by daniel.m.church@… 18 years ago.
trac-mimetype-no-binary-diff.patch

Download all attachments as: .zip

Change History (5)

by daniel.m.church@…, 18 years ago

trac-mimetype-no-binary-diff.patch

comment:1 by Christopher Lenz, 18 years ago

That won't work because some a number of common text formats don't use the text/* super-type. Examples: application/xml and image/svg.

comment:2 by Emmanuel Blot, 18 years ago

See also wiki:TracIniMacro#changeset-section that enables the admin to limit the size of a diff'ed changeset.

comment:3 by Christian Boos, 18 years ago

Resolution: duplicate
Status: newclosed

This problem is already handled by the patches in #3332.

comment:4 by Christian Boos, 16 years ago

See rather #2672 for this specific issue.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Christopher Lenz.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Christopher Lenz to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.