Edgewall Software
Modify

Opened 12 years ago

Closed 11 years ago

#10777 closed defect (worksforme)

Wrong Age and Author in Source Browser after upgrade to trac 0.12

Reported by: anonymous Owned by:
Priority: normal Milestone:
Component: admin/console Version: 0.12.3
Severity: normal Keywords: upgrade version control browser
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

By some reason for some environments there is wrong Age and Author in Source Browser after upgrade to trac 0.12. Sometimes the issue is fixed by re-doing upgrade (trac-admin <env> upgrade. But sometimes it does not work. Bad Age is usually 43 years. Wrong Author is Anonymous.

Looking into database (trac.db) I have found that there is revision value without leading zeros in "bad" rows of revision and node_change tables.

sqlite> select * from revision;
repos|rev|time|author|message
1|0|1167263763000000||
1|1|1167263833000000|greg|
1|0000000002|1167271165308028|alex|Initial Update

Here the rev value '1' results in Age 43 years and Author Anonymous in Source Browser.

The issue can be fixed by changing rev from '1' to '0000000001'

update revision set rev='0000000001' where rev='1';
update node_change set rev='0000000001' where rev='1';

Attachments (0)

Change History (2)

comment:1 by Remy Blank, 12 years ago

A trac-admin $ENV repository resync should fix this issue. Can you please try?

comment:2 by Christian Boos, 11 years ago

Resolution: worksforme
Status: newclosed

Most likely due to a mix of Trac versions. Maybe you have a commit hook which was still running Trac 0.11 or earlier?

Anyway, assuming this has been fixed.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The ticket will remain with no owner.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from (none) 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.