Project

General

Profile

Bug #1212

inline data file couldn't be deleted if uploading xml document failed

Added by Jing Tao about 16 years ago. Updated over 15 years ago.

Status:
Resolved
Priority:
Immediate
Assignee:
Category:
metacat
Target version:
Start date:
11/18/2003
Due date:
% Done:

0%

Estimated time:
Bugzilla-Id:
1212

Description

For handling inline data in eml2 document, Metacat pulls the inline data out and
store it into file system rather than database.
When uploading eml2 document with inline data, if the uploading failed, the stuff
stored in db will be deleted but the inlinedata file couldn't be deleted.
The worse thing is inline data file is written by appending approach, so first
time failed and next time you use same doc id to upload the eml document, the
inline data file will be duplicated.

History

#1 Updated by Jing Tao over 15 years ago

This bug is fixed. In EmlSAXHandler class, a vector named inlineFileIDList was
added to keep track which inline files were written to file system. If something
faild in parsing procedure, then the files in the vector will be deleted too.
So inline data couldn't be duplicated.

#2 Updated by Redmine Admin over 6 years ago

Original Bugzilla ID was 1212

Also available in: Atom PDF