modules/org.openbravo.utility.cleanup.log/referencedata/standard/Log_Clean_Up_Default_Configuration.xml
author Asier Lostalé <asier.lostale@openbravo.com>
Wed, 18 Mar 2015 10:50:25 +0100
changeset 26205 e7c1d9e51ba8
parent 26023 622864dbe629
child 29617 0b8997369760
child 29919 1a292c2195e6
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.
asier@25994
     1
<?xml version="1.0" encoding="UTF-8"?><ob:Openbravo xmlns:ob="http://www.openbravo.com" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" defaultValues="true">
asier@25994
     2
  <OBULOG_Config id="60D34CD578FA4F6FA2123B5A7215D7B9" identifier="AD_PInstance">
asier@25994
     3
    <id>60D34CD578FA4F6FA2123B5A7215D7B9</id>
asier@25994
     4
    <active>true</active>
asier@25994
     5
    <table id="282" entity-name="ADTable" identifier="AD_PInstance"/>
asier@25994
     6
    <olderThan>15</olderThan>
asier@25994
     7
    <column xsi:nil="true"/>
asier@25994
     8
    <hQLWhereClause xsi:nil="true"/>
asier@26005
     9
    <truncateTable>false</truncateTable>
asier@25994
    10
  </OBULOG_Config>
asier@25994
    11
  <OBULOG_Config id="6E8DE0FE6C3241679F30F71D0EB9A783" identifier="AD_Process_Run">
asier@25994
    12
    <id>6E8DE0FE6C3241679F30F71D0EB9A783</id>
asier@25994
    13
    <active>true</active>
asier@25994
    14
    <table id="6567DD0C6715472CAE04255A4BEC4654" entity-name="ADTable" identifier="AD_Process_Run"/>
asier@25994
    15
    <olderThan>30</olderThan>
asier@25994
    16
    <column xsi:nil="true"/>
asier@25994
    17
    <hQLWhereClause>status != 'SUC'</hQLWhereClause>
asier@26005
    18
    <truncateTable>false</truncateTable>
asier@26005
    19
  </OBULOG_Config>
asier@26005
    20
  <OBULOG_Config id="CB60EDA17F3F46DE9C5EFE5F1EC46D2E" identifier="AD_Process_Request">
asier@26005
    21
    <id>CB60EDA17F3F46DE9C5EFE5F1EC46D2E</id>
asier@26005
    22
    <active>true</active>
asier@26005
    23
    <table id="82D4EDCF39AE44FB9B24E95A1B18B21C" entity-name="ADTable" identifier="AD_Process_Request"/>
asier@26023
    24
    <olderThan>15</olderThan>
asier@26005
    25
    <column xsi:nil="true"/>
asier@26010
    26
    <hQLWhereClause>status = 'COM'</hQLWhereClause>
asier@26005
    27
    <truncateTable>false</truncateTable>
asier@25994
    28
  </OBULOG_Config>
asier@25994
    29
  <OBULOG_Config id="D4ABF737F2DC4B4193EE72F53218C8EC" identifier="AD_Session">
asier@25994
    30
    <id>D4ABF737F2DC4B4193EE72F53218C8EC</id>
asier@25994
    31
    <active>true</active>
asier@25994
    32
    <table id="566" entity-name="ADTable" identifier="AD_Session"/>
asier@25994
    33
    <olderThan>40</olderThan>
asier@25994
    34
    <column xsi:nil="true"/>
asier@25994
    35
    <hQLWhereClause xsi:nil="true"/>
asier@26005
    36
    <truncateTable>false</truncateTable>
asier@25994
    37
  </OBULOG_Config>
asier@25994
    38
  <OBULOG_Config id="E0BDF5E5F6E2475D8F8CE77B65EFAFC6" identifier="AD_Process_Run">
asier@25994
    39
    <id>E0BDF5E5F6E2475D8F8CE77B65EFAFC6</id>
asier@25994
    40
    <active>true</active>
asier@25994
    41
    <table id="6567DD0C6715472CAE04255A4BEC4654" entity-name="ADTable" identifier="AD_Process_Run"/>
asier@25994
    42
    <olderThan>15</olderThan>
asier@25994
    43
    <column xsi:nil="true"/>
asier@25994
    44
    <hQLWhereClause>status = 'SUC'</hQLWhereClause>
asier@26005
    45
    <truncateTable>false</truncateTable>
asier@25994
    46
  </OBULOG_Config>
asier@25994
    47
  <ProcessRequest id="8E020D1888EA44B9941D7A8639E822D5" identifier="Log Clean Up Process - ">
asier@25994
    48
    <id>8E020D1888EA44B9941D7A8639E822D5</id>
asier@25994
    49
    <active>true</active>
asier@25994
    50
    <process id="7A3E2A2BF61C47F8AD9FD4F898F2870B" entity-name="ADProcess" identifier="Log Clean Up Process"/>
asier@25994
    51
    <description xsi:nil="true"/>
asier@25994
    52
    <userContact id="100" entity-name="ADUser" identifier="Openbravo"/>
asier@25994
    53
    <securityBasedOnRole>false</securityBasedOnRole>
asier@25994
    54
    <openbravoContext>{"org.openbravo.scheduling.ProcessContext":{"user":100,"role":0,"language":"en_US","theme":"ltr\/org.openbravo.userinterface.skin.250to300Comp\/250to300Comp","client":0,"organization":0,"warehouse":"","command":"DEFAULT","userClient":"","userOrganization":"","dbSessionID":"","javaDateFormat":"","jsDateFormat":"","sqlDateFormat":"","accessLevel":"","roleSecurity":false}}</openbravoContext>
asier@25994
    55
    <status>SCH</status>
asier@25994
    56
    <nextExecution xsi:nil="true"/>
asier@25994
    57
    <previousExecution xsi:nil="true"/>
asier@25994
    58
    <finish xsi:nil="true"/>
asier@25994
    59
    <channel>Process Scheduler</channel>
asier@25994
    60
    <timing>S</timing>
asier@25994
    61
    <startTime>2015-02-06T00:00:00.0Z</startTime>
asier@25994
    62
    <startDate>2015-02-05T00:00:00.0Z</startDate>
asier@25994
    63
    <frequency>5</frequency>
asier@25994
    64
    <intervalInSeconds xsi:nil="true"/>
asier@25994
    65
    <intervalInMinutes xsi:nil="true"/>
asier@25994
    66
    <hourlyInterval xsi:nil="true"/>
asier@25994
    67
    <dailyInterval>1</dailyInterval>
asier@25994
    68
    <repetitions xsi:nil="true"/>
asier@25994
    69
    <numRepetitions xsi:nil="true"/>
asier@25994
    70
    <numberOfRepetitions xsi:nil="true"/>
asier@25994
    71
    <monday>false</monday>
asier@25994
    72
    <tuesday>false</tuesday>
asier@25994
    73
    <wednesday>false</wednesday>
asier@25994
    74
    <thursday>false</thursday>
asier@25994
    75
    <friday>false</friday>
asier@25994
    76
    <saturday>false</saturday>
asier@25994
    77
    <sunday>true</sunday>
asier@25994
    78
    <monthlyOption>S</monthlyOption>
asier@25994
    79
    <dayInMonth xsi:nil="true"/>
asier@25994
    80
    <dayOfTheWeek xsi:nil="true"/>
asier@25994
    81
    <finishes>false</finishes>
asier@25994
    82
    <finishTime xsi:nil="true"/>
asier@25994
    83
    <finishDate xsi:nil="true"/>
asier@25994
    84
    <dailyOption>N</dailyOption>
asier@25994
    85
    <cronExpression xsi:nil="true"/>
asier@25994
    86
    <processSet xsi:nil="true"/>
asier@25994
    87
    <scheduleProcess>false</scheduleProcess>
asier@25994
    88
    <rescheduleProcess>false</rescheduleProcess>
asier@25994
    89
    <unscheduleProcess>false</unscheduleProcess>
asier@25994
    90
    <params xsi:nil="true"/>
asier@25994
    91
    <processGroup xsi:nil="true"/>
asier@25994
    92
    <isgroup>false</isgroup>
asier@25994
    93
    <triggeredByGroup xsi:nil="true"/>
asier@25994
    94
  </ProcessRequest>
asier@25994
    95
</ob:Openbravo>