
bugzilla-daemon at bugs
Apr 24, 2008, 11:01 AM
Post #1 of 1
(41 views)
Permalink
|
|
[Bug 1329] New: SOAP Document Update Fails
|
|
http://bugs.bricolage.cc/show_bug.cgi?id=1329 Summary: SOAP Document Update Fails Product: Bricolage Version: 1.11.0 - Developer Release Platform: All OS/Version: All Status: NEW Severity: normal Priority: P3 Component: SOAP AssignedTo: lannings[at]who.int ReportedBy: david[at]kineticode.com Updating stories and media via SOAP fails. This is because the `_deserialize_elements()` function in Bric::SOAP::Util deletes all existing elements from a document before adding all new ones from the XML, and the element occurrence rules will throw an exception here for required fields and/or elements. This need to be solved in one of these two ways: 1. Add code to prevent the rule enforcement in the call to $element->delete_elements() just for the lifetime of the SOAP call. This is the simplest solution, but is an ugly hack. 2. Modify `_deserialize_elements()` such that it does not delete existing elements, but updates them as appropriate. This is preferred, but will require more work. -- Configure bugmail: http://bugs.bricolage.cc/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching all bug changes.
|