Notice: this is a static mirror for historical purposes.

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
196Source IntegrationGitwebpublic2011-02-24 14:572011-02-27 06:30
ReporterNolan Lawson 
Assigned ToJohn Reese 
Product Version 
Target VersionFixed in Version 
Summary196: "repo_import_latest&id=all" does not work (redux)
DescriptionThis is a duplicate of a closed bug: [^] I couldn't figure out how to reopen it, so I just made a new issue.

I am trying to set up my cron job to run curl "<mantis url>/plugin.php?page=Source/repo_import_latest&id=all", so that I can update Mantis' view of the repository periodically. But when I run the curl command, I get the error message: APPLICATION ERROR #2800
Invalid form security token. Did you submit the form twice by accident?

Please use the "Back" button in your web browser to return to the previous page. There you can correct whatever problems were identified in this error or select another action. You can also click an option from the menu bar to go directly to a new section.

I can also successfully reproduce this in the browser. The URL is identical to the one used when you click the "import latest data" button, but it seems to require form data in order to proceed, so it matters what the preceding page was.

I have tried adding the IP addresses and hostnames of the machine in question to the "allow remote imports" section, but to no avail.
Additional InformationMantis version: 1.2.4
Source/Meta plugins: pulled from [^] yesterday
TagsNo tags attached.
Attached Files

- Relationships
duplicate of 181confirmedJohn Reese mantisbt + git integration repo_import_latest&id=X got error #2800 

-  Notes
User avatar (267)
Nolan Lawson (reporter)
2011-02-24 15:01

I forgot to mention that this occurs whatever the value of "id" is - I've tried "all" as well as the actual id numbers of my repositories.
User avatar (268)
Nolan Lawson (reporter)
2011-02-25 07:30

Just an FYI: I solved my problem by checking out repo_import_latest.php from an older changeset (72641b0b2481ad674350f085527471a88473c78d) in the Source Integration git project, and this one works from the command line.

So for anyone out there who wants a workaround, do this:

git clone git:// [^]
cd source-integration
git checkout 72641b0b2481ad674350f085527471a88473c78d
cp Source/pages/repo_import_latest.php <MY_MANTIS_DIR>/plugins/Source/pages/repo_import_latest_legacy.php

and then add this to your cron file:
@hourly curl "<MY_MANTIS_SITE>/plugin.php?page=Source/repo_import_latest_legacy&id=all"
User avatar (269)
John Reese (administrator)
2011-02-27 06:30

This is a documentation issue. Use "page=Source/import" rather than "page=Source/repo_import_latest".

- Issue History
Date Modified Username Field Change
2011-02-24 14:57 Nolan Lawson New Issue
2011-02-24 15:00 Nolan Lawson File Added: mantis_2800.png
2011-02-24 15:01 Nolan Lawson Note Added: 267
2011-02-25 07:30 Nolan Lawson Note Added: 268
2011-02-27 06:30 John Reese Note Added: 269
2011-02-27 06:30 John Reese Relationship added duplicate of 181
2011-02-27 06:30 John Reese Status new => resolved
2011-02-27 06:30 John Reese Resolution open => duplicate
2011-02-27 06:30 John Reese Assigned To => John Reese

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

hosted with