Project

General

Profile

Actions

Bug #1212

closed

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

Added by Jing Tao over 20 years ago. Updated about 20 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.

Actions #1

Updated by Jing Tao about 20 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.

Actions #2

Updated by Redmine Admin about 11 years ago

Original Bugzilla ID was 1212

Actions

Also available in: Atom PDF