Ticket #407 (closed Defect: fixed)

Opened 12 years ago

Last modified 12 years ago

Geomaps: a missing Address child topic causes an exception while update

Reported by: jri Owned by: jri
Priority: Major Milestone: Release 4.1
Component: DeepaMehta Standard Distribution Version: 4.0.13
Keywords: Cc: dgf, Malte
Complexity: 2 Area:
Module: deepamehta-geomaps

Description

If e.g. a Person's Postal Code (instance) topic has been deleted (or does not exist anyway) the Person is not editable (anymore). A server-side exception is thrown while updating:

java.lang.RuntimeException: Invalid access to CompositeValue entry "dm4.contacts.postal_code": no such entry in {
  dm4.contacts.street=topic (id=3071, uri="", typeUri="dm4.contacts.street", value="", composite={}), ...,
  dm4.contacts.country=topic (id=3098, uri="", typeUri="dm4.contacts.country", value="", composite={}), ...,
  dm4.contacts.city=topic (id=2630, uri="", typeUri="dm4.contacts.city", value="Heidelberg", composite={}), ...
}

Change History

comment:1 Changed 12 years ago by jri

  • Status changed from new to accepted

comment:2 Changed 12 years ago by Jörg Richter

  • Status changed from accepted to closed
  • Resolution set to fixed

Geomaps fix: tolerate missing Addr childs (#407).

E.g. a Person topic can be updated event if Address child instances (Street, Postal Code, City, Country) are missing.

Close ticket 407.

Note: See TracTickets for help on using tickets.