RE: Scarab XML import

"Chang, Jay" <[email protected]> Mon, 30 Aug 2010 15:16:06 -0600
Newsgroups gmane.comp.java.scarab.user
Message-ID <6276EFE82EC5D24ABE2159508D737EF60D504EA4@lmv08-mx01.corp.intrado.pri>
Hi Mick and Nathan,

Thanks for your helps.  I made some progress on importing issues.

(1) Importing COMMENT: With Nathan's suggestion, I added <id> elements for =
all <activity-set> and <activity> elements.  At first, they seemed worked r=
andomly for some but failed on others.  I then found that <description> ele=
ments must contain 250 characters or less in order to work properly; althou=
gh UI history tab shows <description> (Action) element can be much longer t=
han 250 characters.

(2) Importing ATTACHMENT: I used an admin account which has Domain__Admin a=
nd Domain__Edit permissions but it didn't work without changing ImportIssue=
s.java [from public ImportIssues(){this(false);} to public ImportIssues(){t=
his(true);}].  However, I'm still having problem on Windows XP platform.  I=
 get errors such as:=20
=09** Could not find file attachment "C:\temp\s940ftp.txt" **
While the OS file does exist.  Tested on Linux with "/tmp/s940ftp.txt" work=
ed fine.  Any idea why it is failing on Windows?

(2) Importing dependency: I have yet to test how it works.  Since all issue=
s must be exist in the DB before dependency records can be imported.  I am =
thinking to import all issues without dependency first, and then import jus=
t dependency with import-type "update-same-db" the second round.  Will this=
 work?  How did you accomplish this task in the past?

Thanks again,
Jay

PS. I'm using Scarab version 0.21



-----Original Message-----
From: Michael Semb Wever [mailto:[email protected]]=20
Sent: Saturday, August 28, 2010 5:47 AM
To: [email protected]
Subject: RE: Scarab XML import

> There is a build attribute that you must turn on for local attachment
> importing to work. Since I can't find it just now on my instance,
> perhaps someone else can chime in.=20

This is correct Nathan. (see ImportIssues.allowFileAttachments).

Via the web import it reads as it is enabled if the user has
DOMAIN__ADMIN permissions. (see XMLImportIssuesResults.java).


> Bear in mind the source attachments have to be listed with local paths
> to the instance, not necessarily to the location you run the import
> script from.=20

Yes. The paths to attachments must be relative to WEB-INF/attachments/
The import process does not upload attachmets afaik. They must first be
put into place and then the xml import run.

Unless in the xml ReconcilePath is true which "then assumes that the
fileName is an absolute path to a file and copies it to the right
directory structure under Scarab's path". (see ScarabIssues.java)

~mck

--=20
--=20
"Wars of nations are fought to change maps. But wars of poverty are
fought to map change." Muhammad Ali=20
| http://semb.wever.org | http://sesat.no | http://finn.no |

------------------------------------------------------
http://scarab.tigris.org/ds/viewMessage.do?dsForumId=3D456&dsMessageId=3D26=
52382

To unsubscribe from this discussion, e-mail: [[email protected]=
is.org].

------------------------------------------------------
http://scarab.tigris.org/ds/viewMessage.do?dsForumId=3D456&dsMessageId=3D26=
53208

To unsubscribe from this discussion, e-mail: [[email protected]=
is.org].