Index: openacs-4/packages/xowiki/tcl/xowiki-www-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/xowiki/tcl/xowiki-www-procs.tcl,v diff -u -r1.368.2.87 -r1.368.2.88 --- openacs-4/packages/xowiki/tcl/xowiki-www-procs.tcl 5 Apr 2021 21:24:36 -0000 1.368.2.87 +++ openacs-4/packages/xowiki/tcl/xowiki-www-procs.tcl 26 Apr 2021 13:59:00 -0000 1.368.2.88 @@ -1701,6 +1701,7 @@ #ns_log notice "SAVE new ia <${:instance_attributes}>" set s [:find_slot instance_attributes] :update_attribute_from_slot $s ${:instance_attributes} + ns_return 200 text/plain ok } elseif {$prefix eq "" && $key in $field_names} { # @@ -1715,13 +1716,16 @@ dict set :instance_attributes $key $value :update_attribute_from_slot $s ${:instance_attributes} } + ns_return 200 text/plain ok + } else { - error "unexpected condition key <$key> value <$value>" + ns_return 404 text/plain "not ok" + ns_log error "autosave attribute: unexpected field name <$key>" \ + "(prefix '$prefix'), not contained in <$field_names> " \ + "value [llength $value] bytes" } - ns_return 200 text/plain ok - } else { - ns_log warning "LAST expecting a single form parameter with a prefix keys <$keys>" + ns_log warning "autosave attribute: expecting a single form parameter with a prefix keys <$keys>" ns_return 404 text/plain "not ok" } ns_log notice "SAVE-att DONE"