modules/org.openbravo.service.json/src-db/database/sourcedata/AD_MODEL_OBJECT_MAPPING.xml
author Asier Lostalé <asier.lostale@openbravo.com>
Wed, 18 Mar 2015 10:50:25 +0100
changeset 26205 e7c1d9e51ba8
parent 9091 c4f1a5c7d7c2
permissions -rw-r--r--
fixed bug 29329: can't download attachments for 2 rows with same name & no ext

When trying to download at once attachemnts for different records that have the
same name and it does not have extension, it fails.

The problem is in case of duplicated names to be included within the zipped file,
a number is appended to the file name before the extension. Extesion is present
is assumed, failing if not.

Fix: don't assume file name has extension.
<?xml version='1.0' encoding='UTF-8'?>
<data>
<!--752D68FBAE8F40F8A981672BEB5695B8--><AD_MODEL_OBJECT_MAPPING>
<!--752D68FBAE8F40F8A981672BEB5695B8-->  <AD_MODEL_OBJECT_MAPPING_ID><![CDATA[752D68FBAE8F40F8A981672BEB5695B8]]></AD_MODEL_OBJECT_MAPPING_ID>
<!--752D68FBAE8F40F8A981672BEB5695B8-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
<!--752D68FBAE8F40F8A981672BEB5695B8-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
<!--752D68FBAE8F40F8A981672BEB5695B8-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
<!--752D68FBAE8F40F8A981672BEB5695B8-->  <AD_MODEL_OBJECT_ID><![CDATA[E84320A852114BB99050FC4D0A6A006E]]></AD_MODEL_OBJECT_ID>
<!--752D68FBAE8F40F8A981672BEB5695B8-->  <MAPPINGNAME><![CDATA[/org.openbravo.service.json.jsonrest/*]]></MAPPINGNAME>
<!--752D68FBAE8F40F8A981672BEB5695B8-->  <ISDEFAULT><![CDATA[N]]></ISDEFAULT>
<!--752D68FBAE8F40F8A981672BEB5695B8--></AD_MODEL_OBJECT_MAPPING>

</data>