Notice: this is a static mirror for historical purposes.

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
085Source IntegrationGitwebpublic2009-12-22 16:522011-09-07 13:18
ReporterCasey 
Assigned To 
PrioritynormalSeveritymajorReproducibilityalways
StatusnewResolutionopen 
Product Version 
Target VersionFixed in Version 
Summary085: "Import Latest Data" operation fails w/ "error #1048: Column 'author' cannot be null"
DescriptionI'm trying to setup the gitweb source code integration plugin with a local gitweb repository.

I'm running the latest master-1.2.x mantis branch with all latest plugin dependencies for the Gitweb Integration plugin here: http://git.mantisforge.org/w/source-integration.git [^]

After setting up my repository settings, i'm getting the following error page:

-------------------
APPLICATION ERROR #401

Database query failed. Error received from database was #1048: Column 'author' cannot be null for the query: INSERT INTO mantis_plugin_Source_changeset_table ( repo_id, revision, parent, branch, user_id,
timestamp, author, message, info, ported, author_email, committer, committer_email, committer_id
) VALUES ( ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ? ).
---------------------
Additional InformationMy repository settings are:

Name Project
Type Gitweb
URL http://git.domain.com/project.git [^]
Extra Info

gitweb_root => string(26) "http://git.domain.com/" [^]
gitweb_project => string(9) "project.git"
master_branch => string(6) "master"

--------------------
My gitweb server is using the VirtualHost feature of Apache.
TagsNo tags attached.
Attached Files

- Relationships

-  Notes
User avatar (076)
Casey (reporter)
2010-01-12 17:12
edited on: 2010-01-12 17:19

Issue is related to changes in gitweb. I am running version 1.6.6. The html response page has changed format, it seems. I attached a patch file that can handle the new format.

http://leetcode.net/mantis/file_download.php?file_id=3&type=bug [^]

User avatar (211)
Thomas Hochstein (reporter)
2010-05-13 10:01
edited on: 2010-09-19 06:50

Same problem here (Gitweb 1.6.5), but related to my use of Avatars in gitweb:
# enable avatar support
$feature{'avatar'}{'default'} = ['gravatar'];

I'll attach a diff with the small changes that were necessary to make SourceGitweb.php parse the output of Gitweb correctly.

(Sorry, diff is wrong way around, see next comment and patch against git repo.)

User avatar (240)
Thomas Hochstein (reporter)
2010-09-19 06:41
edited on: 2010-09-19 06:50

Same problem here (again), this time with Gitweb 1.7.1, with Avatars. Now it's the search feature ("Search for commits authored by $name") that throws the parser off ..

Diff attached.

(BTW, Parse-gitweb-output-with-avatars.diff is the wrong way around anyway ... Sorry.)

Attached a patch against current master (021aa8486d4366160d18b71013cd5e3967d2dc38) in git://git.mantisforge.org/source-integration.git [^]

User avatar (242)
Nicolas Aspert (reporter)
2010-09-27 23:44

I experienced the same issue with gitweb 1.7.2 and Thomas' patch fixes it.
User avatar (303)
Nicolas Aspert (reporter)
2011-08-02 08:16

Patch still needed for latest version of Gitweb integration (gitweb 1.7.5 running)
User avatar (309)
mmulrooney (reporter)
2011-09-07 13:17

Don't know if anyone cares, but I have a patch for 1.7.6. Its not "perfect" by any means, but it works...

- Issue History
Date Modified Username Field Change
2009-12-22 16:52 Casey New Issue
2010-01-12 17:12 Casey Note Added: 076
2010-01-12 17:17 Casey File Added: 0001-Fix-commit-parsing-on-latest-gitweb-version.patch
2010-01-12 17:19 Casey Note Edited: 076 View Revisions
2010-01-12 17:19 Casey Note Edited: 076 View Revisions
2010-05-13 10:01 Thomas Hochstein Note Added: 211
2010-05-13 10:02 Thomas Hochstein File Added: Parse-gitweb-output-with-avatars.diff
2010-09-19 06:41 Thomas Hochstein Note Added: 240
2010-09-19 06:42 Thomas Hochstein File Added: Parse-Gitweb-1.7.1.diff
2010-09-19 06:49 Thomas Hochstein File Added: 0001-SourceGitweb.php-Fix-gitweb-parsing-for-gitweb-1.7.patch
2010-09-19 06:50 Thomas Hochstein Note Edited: 240 View Revisions
2010-09-19 06:50 Thomas Hochstein Note Edited: 211 View Revisions
2010-09-27 23:44 Nicolas Aspert Note Added: 242
2011-08-02 08:16 Nicolas Aspert Note Added: 303
2011-09-07 13:17 mmulrooney Note Added: 309
2011-09-07 13:18 mmulrooney File Added: gitweb.patch


Copyright © 2000 - 2012 MantisBT Group
Time: 0.1513 seconds.
memory usage: 8,377 KB
Powered by Mantis Bugtracker

hosted with
Linode