Project

General

Profile

Bug #1465

using references in dpw causes duplicate reference ids

Added by Chad Berkley about 18 years ago. Updated about 18 years ago.

Status:
Resolved
Priority:
Immediate
Assignee:
Category:
morpho - general
Target version:
Start date:
04/08/2004
Due date:
% Done:

0%

Estimated time:
Bugzilla-Id:
1465

Description

I created a new package with the dpw, and added several
contacts/owners/assocParties from other packages as well as adding some
manually. When i tried to validate the document, it failed because at least two
of the elements had been given the same id. Here is the xml produced:

<creator id="1081179008226">
<individualName>
<salutation>mr</salutation>
<givenName>chad</givenName>
<surName>berkley</surName>
</individualName>
<organizationName>NCEAS</organizationName>
<positionName>Programmer</positionName>
<address>
<deliveryPoint>735 State St. #300</deliveryPoint>
<city>Santa Barbara</city>
<administrativeArea>CA</administrativeArea>
<postalCode>93121</postalCode>
<country>US</country>
</address>
<phone phonetype="voice">8054039515</phone>
</creator>
<associatedParty id="1081179008226">
<individualName>
<salutation>mr</salutation>
<givenName>chad</givenName>
<surName>berkley</surName>
...

History

#1 Updated by Chad Berkley about 18 years ago

this bug only seems to happen when you try to use references to include more
than one contact/owner/assocParty. If I just use one, this doesn't happen.

#2 Updated by Dan Higgins about 18 years ago

I can reproduce this bug by 'copying' a reference. Apparently the id is simply
copied also! (Still need to find the actual code.)

#3 Updated by Dan Higgins about 18 years ago

A new ID was not being created when a party reference was edited and copied (as
opposed to editing of the reference itself). The fix was to set the
'referenceIdString' in the PartyPage class to null when the choice to copy the
info is made. This causes the getRefID method to reset the ID in the copy.

#4 Updated by Redmine Admin over 9 years ago

Original Bugzilla ID was 1465

Also available in: Atom PDF