XML Import schlägt fehl

Deutschsprachiges Forum für Diskussionen und Fragen zu MantisBT

Moderators: Developer, Contributor

Post Reply
nobswolf
Posts: 5
Joined: 11 Feb 2009, 11:32
Location: SW-Germany

XML Import schlägt fehl

Post by nobswolf »

Ich habe zwei Mantis v1.2.3 laufen und möchte Issues von einem zum anderen kopieren. Ich benutze den XML-Export in "View Issues" des ersten und "manage / import issues" des zweiten. Der Export funktionier fehlerfrei und das XML sieht "optisch" auch gut aus. Aber dann kommt nur ein Fehler. Das Projekt existiert, es ist auch ein Issue drin. Das zweite Mantis enthält auch weitere Projekte, die problemlos funktioneren.

Wie bekomme ich meine Issues importiert?

Hintergrund-Info: Debian, Apache2, PHP 5.3.3, Mysql 5.0.51

Beide Mantis sind aus älteren Versionen migriert worden (das eine aus 1.06, das andere aus 1.2a .

APPLICATION ERROR #401

Database query failed. Error received from database was #1048: Column 'profile_id' cannot be null for the query: INSERT INTO mantis_bug_table
( project_id,reporter_id, handler_id,duplicate_id,
priority,severity, reproducibility,status,
resolution,projection, category_id,date_submitted,
last_updated,eta, bug_text_id,
os, os_build,platform, version,build,
profile_id, summary, view_state, sponsorship_total, sticky, fixed_in_version,
target_version, due_date
)
VALUES
( ?,?,?,?,
?,?,?,?,
?,?,?,?,
?,?,?,?,
?,?,?,?,
?,?,?,?,
?,?,?,?).

Das XML funktioniert selbst mit nur einem Issue nicht:

<?xml version="1.0" encoding="UTF-8"?>
<mantis version="1.2.3" urlbase="http://mantis.blabla.de/migration/mantisbt-1.2.3/" issuelink="#" notelink="~" format="1">
<issue>
<id>570</id>
<project id="1">blub</project>
<reporter id="1">administrator</reporter>
<handler id="1">administrator</handler>
<priority id="30">normal</priority>
<severity id="50">minor</severity>
<reproducibility id="70">have not tried</reproducibility>
<status id="30">acknowledged</status>
<resolution id="10">open</resolution>
<projection id="10">none</projection>
<category id="6">Logistik Vertrieb</category>
<date_submitted>1239028972</date_submitted>
<last_updated>1242722601</last_updated>
<eta id="10">none</eta>
<view_state id="10">public</view_state>
<summary>EDI Kellner und Kunz ORDERS</summary>
<due_date>1</due_date>
<description>lalalala</description>
</issue></mantis>
atrol
Site Admin
Posts: 8378
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: XML Import schlägt fehl

Post by atrol »

Hört sich ziemlich genau nach diesem bekannten Fehler an
http://www.mantisbt.org/bugs/view.php?id=12112

An dieser Stelle hat ein Anwender einen Workaround vorgeschlagen, der bei ihm funktioniert hatte
http://www.mantisbt.org/bugs/view.php?id=12112#c26730
Please use Search before posting and read the Manual
nobswolf
Posts: 5
Joined: 11 Feb 2009, 11:32
Location: SW-Germany

Re: XML Import schlägt fehl

Post by nobswolf »

Ah, ok... ich hatte das nicht auf mich bezogen, weil ich ja Projekt-IDs im XML habe. Aber der eigentliche Fehler liegt wohl woanders.

Also: Der Workaround-Fix behebt dieses Problem.
Post Reply