Project

General

Profile

Actions

Bug #3197

closed

Data upload incorrectly succeeds on existing docid and revision

Added by Chris Jones over 16 years ago. Updated over 16 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
metacat
Target version:
Start date:
04/02/2008
Due date:
% Done:

0%

Estimated time:
Bugzilla-Id:
3197

Description

When uploading a data file to metacat in the case where the data document identifier already exists, the expected result is for metacat to 'update' the existing docid and revision, so long as the revision number of the new upload is greater than the existing revision number.

If the revision number is not incremented, but rather is identical to the existing revision number for the document, the upload incorrectly succeeds, but returns a upload size of zero bytes. Here's an example:

upload of testdata.1.1:


<success>
<docid>testdata.1.1</docid>
<size>515263</size>
</success>

re-upload a new revision of the data file as testdata.1.2:


<success>
<docid>testdata.1.2</docid>
<size>515263</size>
</success>

Now, mistakenly upload the next revision without incrementing to testdata.1.3:


<success>
<docid>testdata.1.2</docid>
<size>0</size>
</success>

The last upload should not succeed and should return an <error>.

Actions #1

Updated by Jing Tao over 16 years ago

When chris found this bug, he was testing metacat which had a 1.7.0 + plus version. Both chris and I tested current cvs head (and I tested 1.8.0 version) but we couldn't duplicate this bug. It seems the bug was fixed in 1.8.0 release. So I close this bug. Also, in junit test system, i added a test case for this scenario, so we can monitor this bug.

Actions #2

Updated by Redmine Admin over 11 years ago

Original Bugzilla ID was 3197

Actions

Also available in: Atom PDF