config/Openbravo.properties.template
author Asier Lostalé <asier.lostale@openbravo.com>
Wed, 18 Mar 2015 10:50:25 +0100
changeset 26205 e7c1d9e51ba8
parent 19956 0c44af13571d
child 27254 50a6ae8fce11
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.
carlos@0
     1
# *************************************************************************
carlos@0
     2
# * The contents of this file are subject to the Openbravo  Public  License
priya@9085
     3
# * Version  1.1  (the  "License"),  being   the  Mozilla   Public  License
carlos@0
     4
# * Version 1.1  with a permitted attribution clause; you may not  use this
carlos@0
     5
# * file except in compliance with the License. You  may  obtain  a copy of
carlos@0
     6
# * the License at http://www.openbravo.com/legal/license.html 
carlos@0
     7
# * Software distributed under the License  is  distributed  on  an "AS IS"
carlos@0
     8
# * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
carlos@0
     9
# * License for the specific  language  governing  rights  and  limitations
carlos@0
    10
# * under the License. 
carlos@0
    11
# * The Original Code is Openbravo ERP. 
ggi@6702
    12
# * The Initial Developer of the Original Code is Openbravo SLU 
asier@16649
    13
# * All portions are Copyright (C) 2007-2012 Openbravo SLU 
carlos@0
    14
# * All Rights Reserved. 
carlos@0
    15
# * Contributor(s):  ______________________________________.
carlos@0
    16
# ************************************************************************
harpreet@5497
    17
#
juanpablo@2744
    18
# Documentation at http://wiki.openbravo.com/wiki/Openbravo.properties
juanpablo@2744
    19
juanpablo@1890
    20
####################
juanpablo@1890
    21
# Date/time format #
juanpablo@1890
    22
####################
juanpablo@1890
    23
juanpablo@481
    24
dateFormat.js=%d-%m-%Y
juanpablo@481
    25
dateFormat.sql=DD-MM-YYYY
juanpablo@481
    26
dateFormat.java=dd-MM-yyyy
juanpablo@481
    27
dateTimeFormat.java=dd-MM-yyyy HH:mm:ss
asier@5244
    28
dateTimeFormat.sql=DD-MM-YYYY HH24:MI:SS
asier@41
    29
juanpablo@1890
    30
###########
juanpablo@1890
    31
# General #
juanpablo@1890
    32
###########
juanpablo@1890
    33
juanpablo@1890
    34
# Static content URL. Use the default value to make it dynamic.
juanpablo@1890
    35
# Don't change this unless you know what you are doing
juanpablo@1890
    36
web.url=@actual_url_context@/web
juanpablo@1890
    37
asier@13271
    38
# Full URL of the context, *only* used by the Web Services installation 
asier@13271
    39
# and diagnostic task
juanpablo@1890
    40
context.url=http://localhost:8080/openbravo
juanpablo@1890
    41
juanpablo@1890
    42
# Absolute path to the attachments directory
juanpablo@1890
    43
attach.path=/opt/openbravo/attachments
juanpablo@1890
    44
juanpablo@1890
    45
# Context name, used in the final war file
juanpablo@1890
    46
context.name=openbravo
juanpablo@1890
    47
juanpablo@1891
    48
# Root sources directory, used by modularity
juanpablo@1891
    49
source.path=/opt/openbravo
juanpablo@1891
    50
ivan@4912
    51
#Deploy mode: valid values [class, war, none]
asier@1977
    52
deploy.mode=class
asier@1977
    53
juanpablo@1890
    54
############
juanpablo@1890
    55
# Database #
juanpablo@1890
    56
############
juanpablo@1890
    57
juanpablo@2208
    58
# Oracle example:
juanpablo@1890
    59
#
juanpablo@2744
    60
# bbdd.rdbms=ORACLE
juanpablo@2744
    61
# bbdd.driver=oracle.jdbc.driver.OracleDriver
juanpablo@2744
    62
# bbdd.url=jdbc:oracle:thin:@localhost:1521:xe
juanpablo@2208
    63
# bbdd.sid=xe
juanpablo@2208
    64
# bbdd.systemUser=SYSTEM
juanpablo@2208
    65
# bbdd.systemPassword=SYSTEM
juanpablo@2208
    66
# bbdd.user=TAD
juanpablo@2208
    67
# bbdd.password=TAD
juanpablo@2208
    68
# bbdd.sessionConfig=ALTER SESSION SET NLS_DATE_FORMAT='DD-MM-YYYY' NLS_NUMERIC_CHARACTERS='.,'
juanpablo@1890
    69
antonio@7592
    70
# Oracle instances in linux, can delay on getting DB connection (issue #12683). 
antonio@7592
    71
# In these cases this property can be set to solve the problem
antonio@7592
    72
# java.security.egd=file:///dev/urandom
antonio@7592
    73
juanpablo@2744
    74
bbdd.rdbms=POSTGRE
juanpablo@2744
    75
bbdd.driver=org.postgresql.Driver
juanpablo@2744
    76
bbdd.url=jdbc:postgresql://localhost:5432
juanpablo@2208
    77
bbdd.sid=openbravo
juanpablo@2209
    78
bbdd.systemUser=postgres
juanpablo@2208
    79
bbdd.systemPassword=syspass
juanpablo@2208
    80
bbdd.user=tad
juanpablo@2208
    81
bbdd.password=tad
juanpablo@2208
    82
bbdd.sessionConfig=select update_dateFormat('DD-MM-YYYY')
asier@41
    83
juanpablo@2744
    84
##################
juanpablo@2744
    85
# Tomcat manager #
juanpablo@2744
    86
##################
asier@13271
    87
asier@13271
    88
# From Tomcat 7 manager url is host/manager/text. In previous versions it is
asier@13271
    89
# host/manager
juanpablo@2744
    90
tomcat.manager.url=http://localhost:8080/manager
asier@13271
    91
asier@13271
    92
# From Tomcat 7 this user must have manager-script role access. In previous
asier@13271
    93
# versions. In previous versions it must have manager role access.
juanpablo@2744
    94
tomcat.manager.username=admin
juanpablo@2744
    95
tomcat.manager.password=admin
juanpablo@2744
    96
juanpablo@1890
    97
##########################
juanpablo@1890
    98
# Development parameters #
juanpablo@1890
    99
##########################
juanpablo@481
   100
juanpablo@578
   101
bbdd.outputscript=databasescript.sql
juanpablo@481
   102
bbdd.verbosity=INFO
gorkaion@1048
   103
stefan@2143
   104
# use js/css minimization (in local-context and war-file)
stefan@2143
   105
minimizeJSandCSS=yes
stefan@2143
   106
stefan@5227
   107
# How sqlc should execute the queries embedded in xsql file at compilation time
stefan@5227
   108
# traditional: only uses the base query ignoring all optional parameters
stefan@5227
   109
# optimized: includes most optional parameter to achieve better performance
stefan@5227
   110
# If optimized fails for some xsql files, downgrade level to traditional
stefan@5227
   111
sqlc.queryExecutionStrategy=optimized
stefan@5227
   112
juanpablo@1890
   113
##################
juanpablo@1890
   114
# Authentication #
juanpablo@1890
   115
##################
juanpablo@1890
   116
stefan@8827
   117
# Leave this empty to use the default login handler.
stefan@11875
   118
# Examples:
stefan@11875
   119
# - org.openbravo.authentication.basic.AutologonAuthenticationManager (included)
stefan@11875
   120
# - org.openbravo.authentication.lam.LamAuthenticationManager (in external 'LAM Authentication Manager' module)
gorkaion@1048
   121
authentication.class=
juanpablo@1890
   122
juanpablo@1890
   123
###########
juanpablo@1890
   124
# Add-ons #
juanpablo@1890
   125
###########
juanpablo@1890
   126
juanpablo@1890
   127
# External Pentaho Services
juanpablo@1890
   128
pentahoServer=
antonio@3077
   129
antonio@3077
   130
##############
antonio@3077
   131
# Validation #
antonio@3077
   132
##############
antonio@3077
   133
asier@3839
   134
validate.model=true
asier@3839
   135
isMinorVersion=false
antonio@5604
   136
antonio@5604
   137
##############
antonio@5604
   138
# Safe mode  #
antonio@5604
   139
##############
antonio@5604
   140
antonio@5609
   141
# This property is used to activate/deactivate the safe mode of Openbravo ERP
antonio@5609
   142
# When this property is activated, if the last build wasn't succesful, or Tomcat
antonio@5609
   143
# wasn't restarted, users will only be able to login in the application 
antonio@5609
   144
# with role System Administrator
antonio@5609
   145
antonio@6497
   146
safe.mode=true
martin@6008
   147
antonio@7751
   148
################################
antonio@7751
   149
# Strict Template Application  #
antonio@7751
   150
################################
antonio@7751
   151
antonio@7751
   152
# This property is used to set the configuration script application mode.
antonio@7751
   153
# If the template application mode is strict, then inconsistencies in the template
antonio@7751
   154
# (such as the value to be changed being different from the value in a column
antonio@7751
   155
# data change of a configuration script) will make the process fail.
antonio@7751
   156
# If it's not strict the process will show a warning, but otherwise continue
antonio@7751
   157
antonio@7751
   158
# For production environments, this property should be false.
antonio@7751
   159
# For development environments, specially those working with
antonio@7751
   160
# Industry templates and configuration scripts, it is advisable to set this property to true
antonio@7751
   161
antonio@7751
   162
strict.template.application=false
antonio@7751
   163
martin@6008
   164
##############
martin@6008
   165
# Hibernate #
martin@6008
   166
##############
martin@6008
   167
martin@6008
   168
# if this property is set then the mapping will be written to the file
martin@6008
   169
# defined by this property, note the value should be the complete path 
martin@6008
   170
# including the file name and extension.
martin@6008
   171
# hibernate.hbm.file=/tmp/hibernate.hbm.xml
asier@6774
   172
asier@6774
   173
asier@6776
   174
###################
asier@6776
   175
# Log in security #
asier@6776
   176
###################
asier@6774
   177
stefan@8827
   178
# If these properties are set, after a failed login the response time 
stefan@8827
   179
# will be delayed, and the user account can be blocked.
asier@6790
   180
login.trial.delay.increment=0
asier@6790
   181
login.trial.delay.max=0
asier@6774
   182
login.trial.user.lock=0
juanpablo@7976
   183
asier@16644
   184
# Prevents concurrent sessions for same user.
asier@16644
   185
login.limit.user.session=false
asier@16644
   186
juanpablo@7976
   187
##########
juanpablo@7976
   188
# Others #
juanpablo@7976
   189
##########
juanpablo@7976
   190
juanpablo@7976
   191
# You are not allowed to run ant commands with the root user.
juanpablo@7976
   192
# Set allow.root to true to override this.
juanpablo@7976
   193
allow.root=false
martin@12294
   194
martin@12294
   195
# Specifies if the current instance is used for automated tests.
martin@12294
   196
# Setting this to true will enable extra (hidden) functionality used 
martin@12294
   197
# automated test scripts.
asier@16644
   198
test.environment=false
asier@18214
   199
asier@18214
   200
# allows to compile classic 2.50 windows for all available tab
asier@18214
   201
# By default those all not generated anymore for tabs for which they are not needed
asier@18214
   202
#wad.generateAllClassic250Windows=true
asier@18214
   203
asier@19241
   204
# background.policy property defines whether background processes should be
asier@19241
   205
# executed in this context or not. To prevent process execution this property must
asier@19241
   206
# be set to no-execute
asier@19241
   207
background.policy=default
asier@19241
   208
asier@19241
   209