|Anonymous | Login | Signup for a new account||2012-09-13 19:33 PDT|
|Main | Blog | My View | View Issues | Change Log | Roadmap | IRC Chat | Repositories | Scrum Board|
|View Issue Details|
|ID||Project||Category||View Status||Date Submitted||Last Update|
|196||Source Integration||Gitweb||public||2011-02-24 14:57||2011-02-27 06:30|
|Assigned To||John Reese|
|Target Version||Fixed in Version|
|Summary||196: "repo_import_latest&id=all" does not work (redux)|
|Description||This is a duplicate of a closed bug: http://leetcode.net/mantis/view.php?id=120. [^] 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 Information||Mantis version: 1.2.4|
Source/Meta plugins: pulled from http://git.mantisforge.org/w/source-integration.git [^] yesterday
|Tags||No tags attached.|
Nolan Lawson (reporter)
|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.|
Nolan Lawson (reporter)
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://git.mantisforge.org/source-integration.git [^]
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"
John Reese (administrator)
|This is a documentation issue. Use "page=Source/import" rather than "page=Source/repo_import_latest".|
|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