The general.xml configuration file #3442681/HEAD / v490 |
Tags:
not added yet
From codeBeamer-9.3 or higher, general.xml is not available, instead of, the configuration data is stored into the database. How to configure the values please refer to Application Configuration.
Table of Contents
This wiki page is about documenting the various settings of general.xml which is the main configuration file for codeBeamer. The general.xml contains various sections (top level tags), typically each section configures one feature/area of codeBeamer. The sections can contain sub-elements, and each can have several attributes too. This wiki page documents them. If the attribute has some default value that will be listed here too, like: setup="false" means that the setup attribute has false as default value. See also: Post-installation Configuration "installation" sectionConfigures installation location and the most important installation attributes. A typical example<installation cbhome="/home/zluspai/cbhome/cb/" remoteURL="http://localhost:8080/cb/remote-api" setup="false" ></installation> Attributes
Internal Attributes
"interactive" sectionConfigures interactive parts; allow personalization of texts. Personalize the logo and welcome texts appearing on Codebeamer pages. A typical example<interactive recentHistoryItems="5" itemsPerPage="25" verboseErrorPage="true" exportTypes="excel"> <registration-text format="W"></registration-text> <slogan-text format="H"></slogan-text> <welcome-text format="W"></welcome-text> <login-text format="W"></login-text> <!-- <logo width="0" height="0" ></logo> --> <warnLowDiskSpace enabled="true" minFreeDisk="10240" minPercentage="5"/> </interactive> Attributes
"interactive" sub-elementsInteractive section contains few sub-elements which can be used to customize Company logo, login page as described here: Branding: Company Logo, Colors and Texts The sub elements are look like this, each element can contain a wiki text (if the format="W") which configures the appropriate text appears on codeBeamer pages. <interactive ...> <registration-text format="W"></registration-text> <slogan-text format="H"></slogan-text> <welcome-text format="W"></welcome-text> <login-text format="W"></login-text> <!-- <logo width="0" height="0" /> --> <interactive> warnLowDiskSpaceUser can configure if/when codeBeamer should send email about low disk space to System administrators. For details see: Monitoring, Logging & Profiling "projectsDir" sectionConfigures project directory, work directory where projects are built and SCM repositories are stored. That is: ${cbhome}/repository/src directory as default A typical example<projectsDir>/home/codebeamer/CB/repository/src directory</projectsDir> AttributesNone "officeedit" sectionOffice-edit can be configured in this section, see: Office Edit for configuration options see: Office Launcher Installation A typical example<officeedit enabled="true"/> Attributes
"breadcrumbs" sectionBreadcrumbs configuration: configures how the breadcrumbs of CB look like: how the labels in the breadcrumb shortened see: You must login to see this link. Register now, if you have no user account yet. A typical example<breadcrumbs replacementString="~" middle="true"></breadcrumbs> Attributes
"pagingconfig" sectionPaging subconfig: configures how the paging works on few UI elements: the comment and history tabs of items A typical example<pagingconfig commentPageSize="20" historyPageSize="20" /> Attributes
"sysadmin" sectionConfiguration for the default system admin user , see: You must login to see this link. Register now, if you have no user account yet. A typical example<sysadmin userName="bond"/> Attributes
"serviceDesk" sectionThis contains the Service Desk configuration: Service Desk A typical example<serviceDesk title="myTitle" trackerOrder="1,2,3"/> Attributes
"ie-strict-mode" sectionConfigures of Internet Explorer can access CB in compatibility mode. See: You must login to see this link. Register now, if you have no user account yet. A typical example<ie-strict-mode enabled="false"/> Attributes
"monitor" sectionConfigures built in monitoring for CB, see You must login to see this link. Register now, if you have no user account yet. A typical example<monitoring enabled="false" Attributes
"database" sectionThis part configures database connection. See: Post-installation Configuration A typical example<database JDBC_Driver="com.mysql.jdbc.Driver" JDBC_ConnectionURL="jdbc:mysql://localhost:3306/codebeamer?autoReconnect=true&zeroDateTimeBehavior=convertToNull&emulateLocators=true&characterEncoding=UTF-8" JDBC_Username="cbroot" JDBC_Password="..." /> Attributes
"database" section sub-elementsOptionally can contain sub-elements JDBC connection properties like: <props> <prop key="defaultRowPrefetch">50</prop> </props> Optionally can contain sub-elements for properties for the database provider. Can be used to configure Derby database, see here: You must login to see this link. Register now, if you have no user account yet. <databaseprovider> <props> <prop key="jvmArgs">-Xss2048k -Xmx512M</prop> <prop key="startupArgs">...something...</prop> </props> </databaseprovider> "background" sectionConfigure scheduling of background processes like document indexing (for search). A typical example<background hour="1" minute="5" period="86400" inboxPolling="900" /> Attributes
"login" sectionConfigures login/authentication handling. A typical exampleSee general.xml shipped with CB to see a complete example. <login permission="" logoffURL="/login.spr" registration="" showDenyCause="true" showPresence="true" accountLink="" newAccountRole="user" anonymous="" gravatars="false" cookiesAllowed="true" forgetCookies="true" displayLastActivityDate="true" sendLostPasswordPerMail="true" phoneMandatory="false" companyMandatory="false" postalAddressMandatory="false" passwordPolicy="" log-expiration="30" captchaEnabled="false" showRecovery="false" allowToEditEmail="true" inviteByEmailTimeoutInDays="1" passwordResetEmailTimeout="PT5M"> <single-signon user-id-header="x-user-global-id"> ...more... </login> Attributes
"login/single-signon" sub-elementThe login section can optionally contain a "single-signon" sub-element which can configure Single Signon feature. An example of this: <single-signon user-id-header="x-user-global-id"> <map> <header>x-mail</header> <property>email</property> </map> </single-signon> Attributes of "single-signon"
"login/extraNotification" sub-elementConfigure extra notification when a user data changes. If the regexp specified in the phone, country or email attributes matches with the changed user's data the target "notificationAddress" will receive an extra email. Attributes of "extraNotification"
"login/project" sub-elementDefines defaults projects and roles per project which the registered user will be assigned to. Attributes of "login/project"
"login/social-provider" sub-elementDefines social provider integration, like Facebook for login/signon Attributes of "login/social-provider"
"pdfHandler" sectionConfigure the maximum main memory for pdf handler in bytes. Typical example<pdfHandler max-memory="104857600" /> "audit" sectionWe can set which events are stored in audit log. An example: <audit> <removerjob days="180" /> <loginlog login="true" logout="true" systemlogout="true" /> <workitemlog create="true" update="true" remove="true" restore="true" delete="true" /> <artifactlog create="true" update="true" remove="true" restore="true" delete="true" /> <permissionlog create="true" update="true" delete="true" /> </audit> Attributes of "removerjob" entry:
Attributes of "loginlog" entry:
Attributes of "workitemlog" entry:
Attributes of "artifactlog" entry:
Attributes of "permissionlog" entry:
"hierarchy" sectionRules how field values should be aggregated up/distributed down the issue/item hierarchy Defines a rule how to aggregate a field value up the a item/issue hierarchy, or how to distribute a field value down the item/issue hierarchy A typical exampleSee general.xml for an example. Attributes
"listeners" sectionDefines Listeners for various events in the event system. An example: <listeners> <listener id="my" class="com.acme.myListener" > <init-param param-name="x" param-value="y" /> </listener> </listeners> Attributes of "listener" entries:The init-param section defines the initialization parameters
"scc" sectionConfigures source code control modules. A typical exampleSee general.xml shipped with CB for a complete example. <scc text-encoding="Cp1252" htaccess="true" scm-change-set-text-editable="true"> ...more.. </scc> Attributes
"scc/synergy" sub-elementConfiguration options for Synergy. An example, which configures Synergy start options <synergy> <start option="-nogui -m -q" ></start> </synergy> "scc/svn" sub-elementConfigures managed SubVersion repositories.
"scc/svn/svnserve" sub-elementConfigures managed svnserve service started by Codebeamer. An example configuration: <svn export_passwords="true" password_chmod="0600" add_bugtraq="false"> <!-- If "start" is "true" "svnserve" will be started during CodeBeamer startup. If "start" and "stop" are "true" "svnserve" will be stopped during CodeBeamer shutdown. --> <svnserve start="true" stop="true" port="3690"> <!-- <env key="LANG" value="en_US" /> --> </svnserve> </svn>
An env sub-element can be used to configure environment variables for svnserve process. See above. "scc/cvs" sub-elementConfigures CVS access Attibutes:
"scc/hg" sub-elementConfigures managed Mercurial. Attibutes:
The hgserve sub-section may contain parameter to start Mercurial service "hgserve": An example: <scc>... <hg mr-pull-url="" mr-push-url="" webconf=""> <hgserve start="false" stop="true" port="8000" ></hgserve> </hg> </scc> "hgserve" attributes
"scc/git" sub-elementConfigures managed GIT repositories
The git/daemon sub-element configures how the Git daemon is started. An example: <scc> <git mr-pull-url="" mr-push-url=""> <daemon start="false" stop="true" port="9418" /> </git> </scc> "git/daemon"'s Attributes:
"date" sectionConfigures date formats. This is the default date and time formatting. Every user can configure his own format, thus you should NOT modify this value here. A typical example<date datetime="MMM dd HH:mm yyyy" date="MMM dd yyyy" /> Attributes
"mail" sectionConfigures email: outgoing SMTP server and related attributes. A typical example<mail host="#" localname="" serverPort="8080" usePersonal="true" onlyToProjectMembers="false" showProjectNameInSubjects="false"> <props> <prop key="mail.smtp.connectiontimeout">3000</prop> <prop key="mail.smtp.timeout">5000</prop> <!-- The setting below might help if you have problems with Microsoft Exchange: http://www.oracle.com/technetwork/java/faq-135477.html <prop key="mail.pop3.disabletop">true</prop> <prop key="mail.pop3.forgettopheaders">true</prop> --> </props> </mail> Attributes
Optionally use a props sub-element to define additional sub properties like this: <mail ...> <props> <prop key="mail.smtp.connectiontimeout">3000</prop> <prop key="mail.smtp.timeout">5000</prop> </props> </mail> "document" sectionConfigures document handling/Document Management A typical example<document display-plain-text-as-html="false" storage-path="" access-log="true" log-expiration="0" auto_restore_from_trash="30s"/> Attributes
"search" sectionConfigures searching and indexing A typical exampleSee general.xml for an example: <search delay="90" period="60" incremental-indexing="true" max-indexing-size="standard" pattern-sufix="*" /> Attributes
"search/mime-mapping" sub-elementConfigures the handler class for the indexer and the character encoding per mime-type An example: <search> <mime-mapping class="handler..." mime-type="text/html" character-encoding="UTF-8"/> <mime-mapping>...more...</mime-mapping> </search> "wiki" sectionConfigures how the wiki and wysiwyg editor behaves in the system. A typical exampleSee general.xml for an example Attributes
"wiki/styles" and "wiki/interwiki" sub-elementsThe wiki element contains some sub-elements allows configuring how some Wiki elements are rendered. See: You must login to see this link. Register now, if you have no user account yet. "licenses" sectionDefines multiple licenses for (clustered) CodeBeamer servers using the same/shared installation. This may contain several license entries inside: CB tries to load the appropriate one matching with the current host's ID. Note: typically users should not edit this section, but just copy-paste licenses provided by Intland ! A typical example<licenses> <license hostid="WIN-29-26-ED-D4" code="34932A47089C0922" expire="Dec-31-2008" /> <license hostid="WIN-1D-48-29-CE" code="2D412757B4846E21" expire="Dec-31-2008" /> </licenses> AttributesThe license sub-element has these attributes:
"cryptography" sectionConfigure globally used cryptography key A typical example<cryptography key="...."/> Attributes
"LDAP" sectionConfiguration for LDAP authentication. Typically configured using the UI, see here: Post-installation Configuration A typical exampleSee general.xml for an exmaple AttributesThe <server> section defines the connection to the LDAP server. - You must provide a valid server hostname/ip-address and port in the "url" attribute, e.g.: <server url="ldaps://ldap.intland.com:389" ... ></server> - To specify multiple (alternative) servers, use the "urls" attribute and separate servers with commas, e.g.: <server urls="ldaps://ldap.intland.com:389, ldaps://ldap.javaforge.com:389" ... ></server> - If anonymous access is allowed, you must set attribute "anonymousReadOnly" to "true" and can ommit the attributes "userDn" and "password". E.g.: <server url="..." anonymousReadOnly="true" ... ></server> - If anonymous access is not possible, you must provide the full distinguished name of an LDAP user to login (userDn) plus the password. E.g.: <server url="..." userDn="cn=Manager,dc=intland,dc=com" password="topsecret" ... ></server> - You can define custom timeouts (in milliseconds) for establishing connections to the LDAP server (default 10s) and waiting for responses (default 30s), e.g. <server url="..." connectTimeout="10000" readTimeout="30000" ... ></server> - If codebeamer users are all stored in a single sub-domain of the directory, you can specify the base domain also, e.g.: <server url="..." base="dc=intland,dc=com" ... ></server> - For an Active-Directory server, you must also set: referral="follow" <server url="..." referral="follow" ></server> The <mapping> section defines the mapping from LDAP user attributes to codeBeamer account properties: - For Active-Directory, the user/account name will be typically stored in attribute "sAMAccountName", e.g.: <mapping name="sAMAccountName" ... ></mapping> - For other LDAP servers, the user/account name could be stored in "uid", e.g.: <mapping name="uid" ... ></mapping> Please map the other attributes accordingly. If an attribute is not available, map it to empty, e.g.: title="". - The mailSuffix is special, because this is a constant, that will be appended to the fetched email value, e.g.: <mapping name="uid" ... mailSuffix="@intland.com" ... ></mapping> The <realm> section configures user authentication against the LDAP server. - To enable user authentication against the LDAP server, you must enable the LDAP realm: <realm enabled="true" ... ></realm> - To enable mixed authentication, first against the LDAP server, next (if necessary) against the CodeBeamer database, enable the "fallback" option: <realm enabled="true" fallback="true" ... ></realm> Fallback mode also allows to authenticate internal accounts not known to the LDAP server at all. - After each successful authentication against the LDAP server, LDAP account information will be synchronized with CodeBeamer account information, according to the defined <mapping>. Via the optional "storePassword" attribute, you can define, whether the LDAP password should also be stored in CodeBeamer, or not: <realm enabled="true" ... storePassword="false" ... ></realm> - To authenticate an LDAP user, you must either specify the user's unique Distinguished Name (DN) pattern, where {0} will be replaced by the login name of the user, e.g.: <realm ... userPattern="uid={0},ou=people,dc=intland,dc=com" ... ></realm> or you have to specify search criteria to find a single user in a specific directory branch, e.g. to search for a user with 'sAMAccountName={0}' in the branch 'ou=people,dc=intland,dc=com' of an Active Directory recursivley, use: <realm ... userSearch="sAMAccountName={0}" userBase="ou=people" userSubtree="true" ... ></realm> Note: the <realm userBase=...> is relative to <server base=...> (if any) If the <realm> section is not present, or <realm enabled="false" ...> all user authentication will be done against the codeBeamer database. The optional <cache> section configures LDAP authentication caching: - To enable the authentication cache: <cache enabled="true" ... ></cache> - You can also specify, how long CodeBeamer remembers successful and failed authentications (in milliseconds): <cache enabled="true" successTTL="300000" failureTTL="60000"></cache> If the <cache> section is not present, or <cache enabled="false" ...> no authentication caching will occur. "jvm" sectionConfigure who and how often gets a notification email if Codebeamer's memory grows too high A typical example<jvm recipients="admins@intland.com" /> Attributes
"CTI" sectionConfigures Computer Telephone Integration (CTI) A typical example<CTI enabled="false" defaultTrackerId="0" country="DE"/> Attributes
"reports" sectionConfigures limits for Vintage Reports, e.g. the max. number of rows that can be exported A typical example<reports export="5000"></reports> Attributes
"traceability" sectionTraceability Browser default configuration, see: Traceability Browser A typical example<traceability maxFirstLevelElements="25000" maxAdditionalLevelElements="25000" maxFirstLevelElementsPerItem="500" maxAdditionalLevelElementsPerItem="200" pageSize="50" ignoreRedundantsInBrowser="true" ignoreRedundantsInTab="true"/> Attributes
"review" sectionConfiguration for Reviews Attributes
"IPFilters" sectionConfigures IP filters, see: You must login to see this link. Register now, if you have no user account yet. A typical example<IPFilters> <IPFilter name="global">Allow from 10.1.2.3</IPFilter> <IPFilter name="source_view">Allow from 10.1.2.3</IPFilter> </IPFilters> AttributesIPFilters attributes:
To add filter (global and/or source view) use the simple Allow/Deny rules as described in Apache's mod_authz_host configuration. An example configuration: # name="global" IP addresses filtered out in the global filter will not be able to see any codeBeamer pages. # name="source_view" IP addresses filtered out here will not be able to see full-length of the source-code files, only partial diffs. <IPFilters> <IPFilter name="global">Allow from 10.1.2.3</IPFilter> <IPFilter name="source_view">Allow from 10.1.2.3</IPFilter> </IPFilters> "testManagement" sectionConfigures TestManagement A typical examplesee general.xml for an example Attributes
"graphviz" sectionGraphviz configuration: configures fonts. An example: <graphviz graphvizBoldFont="Sans Bold" graphvizFont="Sans" /> "slack" sectionChatOps / Slack integration configuration, see: codebeamer Integration with Slack Attributes
"GeoIP" sectionConfigure GeoIP service: how the IP address of a new registered user is translated to country/geo-location A typical example<geoIP requestUrl="http://geoip1.maxmind.com/f?l=...."/> Attributes
"projectImport" sectionProject-import configuration A typical example<projectImport showConfirmDialogFileSizeLimit="5" /> Attributes
"uploads" sectionConfigures which kind of files can be uploaded to codeBeamer. For details see: Configuring Which Files Can be Uploaded to Codebeamer A typical example<uploads> <filter orderAllowDeny="false"> <!-- deny SVG and HTML files --> <!-- you could use denyMimeRegexp too --> <denyMime>image/svg+xml</denyMime> <denyMime>text/html</denyMime> <allowMimeRegexp>.*</allowMimeRegexp> </filter> </uploads> AttributesSee documentation link above "metadatas" sectionSee: Entity Metadata Document/Directory custom attribute definitions in display order. A typical example<metadatas> <metadata object="1" key="sapDocNo" displayName="SAP Document Number" type="text" /> <metadata object="1" key="sapDocRev" displayName="SAP Document Version" type="int" /> </metadatas> Attributes
"trash" sectionConfigures project trash behaviour. In earlier versions it was not allowed to delete work items permanently from trash. Staring from version 9.1.0, it is configurable (not allowed by default). If you delete items from the trash then it may have effect on baselines. A typical example<trash possibleToDeleteOnlyItems="true"></trash> Attributes
"cbSystemProperties" sectionUse <props> sub-element to set JVM system properties. A typical example<cbSystemProperties> <props> <prop key="svnkit.http.methods">Basic,Digest,Negotiate,NTLM</prop> </props> </cbSystemProperties> Properties
"websocket" sectionWebsocket configuration (enable/disable). A typical example<websocket enabled="true"></websocket> Properties
Application configuration (JSON)Print users' nameYou can configure user name printing in "login" section with "accountLink" attribute. "login": { "accountLink" : "${property1} ${property2}...", ... } Common example "login": { "accountLink" : "${firstName} ${lastName}", ... } The property inside ${} will be replaced with the value of the property and the formatting will be kept. i.e: "login": { "accountLink" : "${firstName} ${lastName}", ... } prints Soma Györe "login": { "accountLink" : "${firstName}, ${lastName}", ... } prints Soma, Györe
Available properties
Rendering the tracker item key and idYou can configure tracker item key and id label rendering in "interactive" section with "itemKeyAndIdTemplate" attribute. "interactive" : { "itemKeyAndIdTemplate" : "${property1} ${property2}...", ... } Common example "interactive" : { "itemKeyAndIdTemplate" : "${masterKey}:${masterId}", ... } It will print the key and id in the following format: [BUG:123456]
Example with branching "interactive" : { "itemKeyAndIdTemplate" : "{branchId}--${masterKey}:${masterId}", ... } It will print the key and id in the following format: [5566341--TASK:2085478]
Search indexing configurationYou can configure search indexing in "search" section. Common example "search" : { "delay" : 9000, "fuzzy-similarity-factor" : 0.6, "incremental-indexing" : true, "length" : 2, "lucene-cfs-ratio" : 0.1, "matches" : 1000, "max-clause-count" : 26000, "max-fuzzy-terms" : 10, "max-indexing-size" : "standard", "operator" : "and", "pattern-sufix" : "*", "period" : 6000, "short-word-length" : 3 } Available properties
|
Fast Links
codebeamer Overview codebeamer Knowledge Base Services by Intland Software |
This website stores cookies on your computer. These cookies are used to improve your browsing experience, constantly optimize the functionality and content of our website, furthermore helps us to understand your interests and provide more personalized services to you, both on this website and through other media. With your permission we and our partners may use precise geolocation data and identification through device scanning. You may click accept to consent to our and our partners’ processing as described above. Please be aware that some processing of your personal data may not require your consent, but you have a right to object to such processing. By using our website, you acknowledge this notice of our cookie practices. By accepting and continuing to browse this site, you agree to this use. For more information about the cookies we use, please visit our Privacy Policy.Your preferences will apply to this website only.