InterSystems Documentation 
Caché Maintenance Kit Release Notes Archive


Welcome and thank you for using Caché.
The current maintenance kit is Caché 2008.1.5. This document is only part of the available maintenance kit documentation. The full set of documents is available in the \Docs subdirectory of your Caché installation as follows:

This document is a historical archive of changes in Caché since the original 2008.1 release, but prior to the current maintenance kit. Changes unique to the current maintenance kit are described in relnotes.htm.
Note: If you have installed Caché in the course of installing Ensemble, please also see the release notes for the Ensemble installation. These are in the \Docs directory under the subdirectory \relnotes\ensemble.
This document includes the following sections:

General Announcements
InterSystems advises all users to recompile their Application classes as part of the upgrade process so as to take advantage of all the performance improvements as well as other changes that may affect them in this release.
Anyone upgrading from a Caché release at or before 5.0 will need a new license key.

InterSystems News, Alerts, and Advisories
From time to time, InterSystems publishes items of immediate importance to users of our software. These include alerts, mission critical issues, important updates, fixes, and release announcements.

The most current list can be obtained from the InterSystems Website.

Users should check this list periodically to obtain the latest information on issues that may have an effect on the operation of their site.


Online Documentation
As a convenience to our users, InterSystems provides online access to documentation for recent product versions at the InterSystems Website. From the home page choose Support and Education, then Caché Support and then Caché Documentation. Then select the specific version and type of documentation you are interested in.

Change Reports for Previous Maintenance Kits
This document includes the change reports from:

Change Reports for 2008.1.4

Category: CSP.Gateway
Platforms: All
DevKey: CMT688
Summary: Fix a problem in the code responsible for replacing 'old with new' session IDs in previously cached pages

Description:

This change addresses a problem in the code responsible for replacing 'old with new' session IDs in previously cached pages.

When the CSP Gateway caches a page returned from Caché, it is usually the case that the page is cached with the session ID (either as a CSPSESSIONID cookie or CSPCHD form variable) of the user that first requested the page. On subsequent retrievals of this page from the cache for other users, Cach´ must replace all instances of the old session ID with the ID of the current user accessing the page.


Category: CSP.Gateway
Platforms: All
DevKey: CMT698
Summary: Resolve a race condition caused by multiple frames accessing the Gateway data block responsible for registering state-transitions (preserve mode changes) against incoming session IDs

Description:

This change resolves a race condition caused by multiple frames accessing the CSP Gateway data block responsible for registering state-transitions (preserve mode changes) against incoming sessions IDs. Previously, when multiple frames attempted to set the state, the results were unpredictable.

Category: Installation.Windows
Platforms: Windows
DevKey: ALE1617
Summary: Fix silent client upgrade in old style Windows installer

Description:

With this change, a silent upgrade of an instance which does not have the "Caché Engine" feature installed will no longer result in "dialogs out of order" error.

Category: Object.LanguageBindings.LCB
Platforms: All
DevKey: JMM280
Summary: Fix month one-off error when LCB stores timestamp in index

Description:

This change corrects a problem in which, when the Light C++ Binding (LCB) stored an index entry for an index on a property of type %Timestamp, the month was 1 less than it should be. For example, it stored 0 instead of 1 for January. Timestamp values were (and continue to be) stored correctly in the data, it was only the index entries that were stored incorrectly.

Category: Object.XML
Platforms: All
DevKey: JN713
Summary: Ensure conversion of pointer to integer value is not truncated in SAX or XSLT

Description:

Use of XDEV in CacheSAX or CacheXSLT requires a callout to return a string representation of a pointer value. This change corrects an error where the callout would truncate a pointer on a 64-bit system.

Category: SQL.ODBC
Platforms: All
DevKey: JCN984
Summary: Initialize variable in SQLError causing access violation

Description:

Prior to this change, the ODBC function, SQLError, would get an error when attempting to access an environment header (<ACCVIO>), if the connection has not be established. This has been fixed.

Category: SQL.Query Processing
Platforms: All
DevKey: AK718
Summary: Fix IDKEY value order in old OR optimization

Description:

This change corrects an error in processing the OR/AND IDKEY optimization for queries of the style normally generated by MS/Access. In this case, the conditions were stated in the query in an order other than the IDKEY field order; this previously caused incorrect code-generation. For example, with an IDKEY <p1,p2,p3>, the following condition would cause incorrect results:
    ... OR (p1=? AND p3=? AND p2=?) OR ...
Now, regardless of the order of conditions in the WHERE clause, the result is always correct.

Category: System
Platforms: All
DevKey: JO2250
Summary: Correct internal stack violation loading routines > 65311 bytes

Description:

This corrects a problem where loading a routine larger than 65311 bytes could lead to Caché overwriting other structures in memory. This, in turn, could lead to unexplained memory exceptions and process dumps. The error occurred on any system where a process loads a routine larger than 65311 bytes more than 255 times.

Category: System
Platforms: All
DevKey: SAP1148
Summary: Correct viewbuffer length

Description:

This corrects previous changes that made the length of the viewbuffer too small causing corruption the message queue pointers. The symptom was that users might see an <ACCVIO> during view operations.

Category: System.Backup/Restore
Platforms: All
DevKey: JO2248
Summary: Prevent control process from suspending system when Backup.General.ExternalThaw runs

Description:

A minor issue where the control process might have suspended the write daemon for 1 second after Backup.General.ExternalThaw() is executed has been resolved.

This situation could have occurred any time ExternalFreeze() was in force for more than 10 minutes. In this case, when ExternalThaw() is called there was a window while the write daemon was waking up where the control process does not see the extended time window set as part of ExternalFreeze() and tries to suspend the system. The write daemon starts running and the control process unfreezes the system one second later.

While this could have been seen on Windows or VMS systems, it was most likely to occur on a Unix system.


Category: System.Cluster Specific
Platforms: All
DevKey: SML1103
Summary: Fix a cluster hang

Description:

This corrects an error in a previous change that attempted to correct a security hole for $INCR(). The prior attempt did not account for a locked global buffer that had been transferred before Caché sent network request to the master. The result was a locked blobal buffer could never be released.

Category: Utilities
Platforms: All
DevKey: STC1467
Summary: Fix index corruption when using %R to compile

Description:

This corrects an error that caused Caché to conclude the routine index global was missing and to rebuild it incorrectly.

Category: Utilities
Platforms: All
DevKey: STC1491
Summary: Fix %ER deleting errors when default of "NO" is taken

Description:

This fix corrects an error in processing the default answer in %ER. The <ENTER> representing the acceptance of the default was being incorrectly analyzed.

Change Reports for 2008.1.3

Category: CSP
Platforms: All
DevKey: MAK2375
Summary: Make sure CSP Server and CSP Gateway agree on the Preserve state of a session

Description:

There were some unusual cases where it was possible for the CSP Gateway and the Caché server to disagree on whether the Preserve setting was 0 or 1. The failure to keep these values in sync would result in either of two conditions:

This change now checks for any potential inconsistency in the Preserve state of the session and makes sure the gateway is updated with the correct state and the cookie is reset to the correct value.


Category: CSP.Gateway
Platforms: All
DevKey: CMT656
Summary: Rewrite the code responsible for responding to 'preserve' mode changes made in the Cache footer records

Description:

This change allows CSP Gateway to properly handle modifications to "Preserve" mode. Such changes can be made anywhere in the code responsible for delivering the session response. Changing a session from state-less (preserve mode 0) to state-aware (preserve mode 1) and vice versa results in changes to the data held in the session cookie/token. The Gateway needs to be made aware of these changes so that it can manage its connection pool appropriately.

Category: Languages.COS
Platforms: All
DevKey: CDS1470
Summary: Fix crash after empty ZLOAD

Description:

This change eliminates a problem where an argumentless ZLOAD with an immediate end of file left the partition empty, and a subsequent DO command could cause an access violation.

Category: Networking.ECP
Platforms: All
DevKey: GK619
Summary: Modified ECP server dmn not to use the job server.

Description:

When ECP daemon is started by the job server, ECP will now job a non job-server daemon, and abandon the original.

Category: Networking.ECP
Platforms: All
DevKey: GK586
Summary: Prevent ECP activity until signon is enabled

Description:

ECP may accept connection(s) for recovery during system startup. This change modifies the ECP server to wait for logins to be enabled before the ECP requests are processed.

Category: Networking.ECP
Platforms: All
DevKey: GK668
Summary: Modified the ECP server session shutdown to cleanup any queued background pre-fetching.

Description:

This change modifies the ECP server shutdown to cleanup any queued pending pre-fetch requests. If these are not cleared properly, in very rare conditions the ECP server may receive a message while the write daemon of that same session is shutting down. This event leaves the background pre-fetcher in an undefined state.

Category: Networking.ECP
Platforms: All
DevKey: GK669
Summary: Removed the journal file number/count dependency in the ECP server

Description:

To provide its guarantees, the ECP server depends on the durability of its activities. Durability tracking was previously dependent on the journal file number, which is not updated and tracked in parallel with the journal offset.

This change modifies the durability logic not to depend on the journal file number.


Category: Object.ActiveX
Platforms: Windows
DevKey: JCN949
Summary: Avoid Microsoft Vista bug by not calling GetUserName() inside dll init code

Description:

Caché connections were failing in random ways due to a Microsoft bug that corrupts memory when GetUserName() is called inside the initialiuzation code of a dll. The details of the bug are described at http://support.microsoft.com/kb/942234.

This change alters CacheODBC.dll so it no longer calls GetUserName() during initialization.


Category: Object.Library
Platforms: All
DevKey: MC788
Summary: Mark all methods DisplayToLogical and LogicalToDisplay as ServerOnly=0

Description:

These methods were projected by the prior CacheObject bindings. The classes modified are:


Category: Object.Soap
Platforms: All
DevKey: MXT1049
Summary: WS-Security and WS-Addressing headers always in literal format

Description:

Independent of the SoapBindingStyle for a web client or web service, the WS-Security and WS-Addressing headers should always be in literal format (that is, not SOAP encoded).

Because of the use of SOAP encoding, the WS-Security header for SoapBindingStyle=encoded web client had the wrong header element name. This change fixes that problem.

The XMLFORMAT parameter (value of literal or encoded) in a %SOAP.Header subclass determines if the header should always be in the specified format. If XMLFORMAT is "" or not specified, then the header is output in the same format as the Body which is specified by SoapBindingStyle.


Category: System
Platforms: Itanium
DevKey: JLC1180
Reset ssp register in Clsetstr/Itanium

Description:

This change fixes a rare problem on Itanium Unicode platforms that could cause a <STRINGSTACK> error if a variable was assigned a small literal string repeatedly without any other command following, for example:
For i=1:1:25000000 Set x="12345"

Category: System
Platforms: All
DevKey: JO2241
Summary: Reload pointer into block after converting to exclusive ownership

Description:

This change corrects a condition where, in certain rare conditions, database corruption could occur on an ECP Client if the write daemon is in the process of writing a bottom pointer block for the ECP Client cache to disk while a user job is deleting a node from the block because the user job found a data block which is marked as "purged from the local cache".

The symptom of this degradation is that the indication of the space in use in the bottom pointer block will be larger than the size of the block itself.


Category: System
Platforms: OpenVMS
DevKey: RFD412
Summary: Fix terminal margin handling for VMS Itanium

Description:

The 'margin' parameter of the terminal USE command (for example, USE 0:(270) ) was handling values >255 differently on OpenVMS Alpha and OpenVMS Itanium.

The documentation says, "Values from 1 to 255 set the right margin for output; any other value disables the right margin", but on OpenVMS Alpha, Caché properly handled values only up to 511. On OpenVMS Itanium, Caché internally truncated the value to one byte, essentially acting as a #256 on values between 255 and 512.


Category: System
Platforms: UNIX
DevKey: SML1082
Summary: Fix <ACCVIO> on UNIX cluster

Description:

This change corrects a situation that can result in an installation failure for DECUNIX cluster platforms.

Category: System
Platforms: All
DevKey: SML1090
Summary: Fix missing DB protect checking in reverse order

Description:

This change fixes a potential database security hole where a user who had no access to a global could still use $ORDER in the reverse directtion on its subscripts.

Category: Utilities.Routines
Platforms: All
DevKey: CDS1306
Summary: Fix possible regression in %STACK <FRAMESTACK> handling

Description:

Caché had been previously modified so it was careful to not use any more space on the frame stack than necessary if it was processing a <FRAMESTACK> error.

This change modifies that logic so it does not do this processing until after if checks that a <FRAMESTACK> error has occurred.



Change Reports for 2008.1.2

Category: CSP
Platforms: All
DevKey: MAK2346
Summary: Restore journal state after each CSP page

Description:

If a CSP page disabled journalling with a call to DISABLE^%SYS.NOJRN, then the CSP server was not resetting this; hence, the next CSP page served by this same process would be running with journalling disabled. Now, the journal state is noted and restored after each CSP page.

Category: CSP
Platforms: All
DevKey: MAK2374
Summary: Restore check inside CSP link rewriting if the link is a javascript link

Description:

When you call ..Link(url) from a CSP application, it rewrites the url to add things such as the sessionId, if it is required. The code also checks for 'javascript:' at the start of the link and skips rewriting these because they are not real links but commands to execute some javascript code. The code to avoid doing this was erroneously removed by preceding development activity and this change restores it.

Category: Installation.Windows
Platforms: Windows
DevKey: ALE1460
Summary: Read and execute cbootuser.rsa on Windows Vista and above

Description:

Windows installation on Vista and above will read and execute cbootuser.rsa the same way it does on XP. This allows for an uninterrupted installation process.

Category: Networking.ECP
Platforms: All
DevKey: GK632
Summary: Fixed gref translation when the remote DB collation is different

Description:

Implied grefs (global references) across ECP, or mapped globals across ECP, or the first reference to any global across ECP did not translate the gref to the remote collation consistently. This has been corrected.

Category: Networking.ECP
Platforms: All
DevKey: GK652
Summary: ECP hang on ECP server recovery during long string set

Description:

In very rare conditions, ECP recovery may hang if there is an ECP server or network outage during a long string (i.e. > 32K characters) SET.

Category: Networking.ECP
Platforms: All
DevKey: GK653
Summary: Fixed a cstat access violation

Description:

This corrects a rare situation where an ECP reply buffer may reference a a null pidtab entry.

Category: Networking.ECP
Platforms: All
DevKey: GK654
Summary: Adjusted the ECP client heartbeat interval

Description:

This change adjusts the ECP application server heartbeat interval to detect an idle system network outage more accurately. A large number of async packets originated by the database server may prevent it from sending heartbeats. Decreased the app-server heartbeat interval to keep the db-server pending heartbeat count more accurate.

Category: Networking.ECP
Platforms: All
DevKey: GK656
Summary: Fixed the ECP requests number to wrap consistently.

Description:

When the request number counter overflowed, the ECP client wrapped the request numbers to one but the server wrapped it to zero. Unexpected wrapping could cause a console log entry, drop the connection, and reconnect and recover immediately. It is an issue at sites where ECP recovery is disabled and has been fixed to be consistent in client and server.

Category: Networking.ECP
Platforms: All
DevKey: GK659
Summary: ECP client recovery to update remote DB sfn.

Description:

In a very rare condition during the ECP server recovery window, if the database server failed and if the remote databases were not mounted in the same order as at startup, then ECP synchronous requests (that is, $DATA, $GET, $INCREMENT) that were being formulated at the time of the database server failure might have referred to the incorrect database number. This has been corrected.

Consequences of an incorrect database number vary (in part depending on the Caché release): the ECP daemon may crash or the request may not be directed to the correct database. In the latter case, unexpected application errors may result or (in rarer cases) incorrect data may be fetched.

Category: Networking.ECP
Platforms: All
DevKey: TR995
Summary: Long string set across ECP may leave the ECP client cache out of date

Description:

Prior to this fix, if a string in excess of approximately 64KB were modified by the application server while the block which will contain the string was being sent to the same client as a consequence of an earlier request, the app server and database server would end up with different versions of that block.

Category: Object.Class Compiler
Platforms: All
DevKey: MAK2391
Summary: Fix typo in %occConvert

Description:

%occConvert could get an UNDEFINED error when upgrading a class dictionary version in a database. This has been corrected.

Category: Object.Macro Preprocessor
Platforms: All
DevKey: DPV3110
Summary: MPP: Fix infinite loop when there is expansion of recursive macros

Description:

A problem in the macro preprocessor has been corrected where the compiler would go into an infinite loop if expansion of a macro reference was a recursive loop. The following are examples of such recursion:
#define ABC $$$ABC
$$$ABC
or
#define ABC $$$DEF
#define DEF $$$ABC
set j=$$$ABC
If you attempt to compile such code, you will now get an error such as:
ERROR: MyRoutine.MAC(14) : MPP5649 : Too many (65535) macros referenced on this line.
This might indicate recursion in the macro definitions.

Category: Object.XML
Platforms: All
DevKey: JN675
Summary: Fix incorrect string length calculation in %XML.SAX.Utils.Sequencer

Description:

Fix incorrect string length calculation in %XML.SAX.Utils.Sequencer.

Category: Security
Platforms: OpenVMS
DevKey: RJW1569
Summary: Fix problem accepting Kerberos connection on OpenVMS

Description:

This changes corrects a problem that prevented Caché Unicode system from accepting a Kerberos connection on OpenVMS platforms.

Category: Security
Platforms: All
DevKey: SML1045
Summary: Fix a security hole in $Incr() for cluster nodes.

Description:

This change closes a security hole in the $INCREMENT() and $BIT() functions. When a clustered database is configured to be read-only for a user, it gets <PROTECT> error when a SET or KILL is attempted on the database. However, $INCREMENT did not trigger the error, though it should have, and the increment occurred in the database. This only happened on the cluster slave node side.

Category: Security
Platforms: All
DevKey: STC1423
Summary: $SYSTEM.Security.AddRoles() cannot be called after unhandled error

Description:

$SYSTEM.Security.AddRoles has been updated so that you can no longer Call $SYSTEM.Security.AddRoles() from the debug prompt and escalate your roles outside of the scope of the application.

It is recommended that any routine or class use error handling in the procedures which call $system.Security.AddRoles().


Category: Security
Platforms: All
DevKey: STC1430
Summary: $SYSTEM.Security.AddRoles() can be called from User defined "Z" functions

Description:

This change also allows $SYSTEM.Security.AddRoles() to be called from user defined "Z" functions. These functions are user defined extensions to the COS language which allow commands, functions, and special variables starting with "Z" to be added to the language.

Category: System
Platforms: All
DevKey: CDS1385
Summary: Fix <UNDEFINED> in DisableJournaling method

Description:

Trying to run the DisableJournaling method of the SYS.Database class would result in an <UNDEFINED> error. This has been corrected.

Category: System
Platforms: All
DevKey: CDS1395
Summary: Long strings were not correctly returned from $SYSTEM functions

Description:

This change corrects an issue where a function such as $SYSTEM.Encryption.Base64Decode, when it returned a long string, could cause a memory access violation.

Category: System
Platforms: All
DevKey: CDS1396
Summary: Prevent buffer overrun with encryption functions

Description:

When the output of Base64Decode was longer than 32K characters, the length of an internal buffer was sometimes erroneously calculated leading to a potential buffer overrun.

Category: System
Platforms: All
DevKey: CDS1408
Summary: Fix access violation after <STORE> error

Description:

In some situations when running an error trap after a <STORE> error, the trap routine was not loaded correctly, resulting in a memory access violation. This has been corrected.

Category: System
Platforms: All
DevKey: CDS1409
Summary: Fix loop or access violation after exclusive NEW when partition is full

Description:

When there is a small amount of memory available in the partition, and an exclusive NEW command is issued, there is a possibility for the memory queue to become corrupt. This resulted in a cpu loop or an access violation at some later point. This vulnerability has been corrected.

Category: System
Platforms: All
DevKey: JO2231
Summary: Corrections in x64 AL code to retrieve top argstack entry after COM2

Description:

This change corrects a source of occasional crashes by Caché by fixing deviations from the stack discipline.

Category: System
Platforms: Windows
DevKey: JO2233
Summary: Disable LTCG for 64-bit Windows x86 builds

Description:

A problem has been resolved on 64-bit Windows machines where loading a large number of XML files sometimes caused an exception resulting in the closure of the terminal window.

Category: System
Platforms: All
DevKey: JO2234
Summary: Correct access violation due to calling object Destruct methods as part of popping the execution stack

Description:

In certain situations QUIT, ZQUIT and HALT commands could get exceptions triggered when Caché attempted to clean up objects which go out of scope as part of "popping" the internal execution stack. This is now fixed.

Category: System
Platforms: OpenVMS
DevKey: SML1036
Summary: On OpenVMS, fix a loop condition when a job is terminated abnormally while writing to principal device

Description:

On OpenVMS, this change fixes a looping conditionthat could occur when a job was terminated abnormally while writing to principal device.

Category: System.Licensing
Platforms: All
DevKey: RJW1576
Summary: License server can enter infinite loop and write enormous license report file

Description:

Under some rare circumstances, license server could create a circular linked list of licenses. When this happened, the license server would loop attempting to process the list, or it would attempt to write an infinitely large license report file.

This change mitigates these problems from occurring by counting the elements processed and causing the license server to exit if the number exceeds the maximum possible number of structures. The license server will be restarted automatically if this should occur. User login and logout proceed without interruption during this period.

The license server restart will rebuild the list properly.


Category: System.NWDS
Platforms: All
DevKey: SML1037
Summary: Fix configuration re-activation took a long time in NWDS master

Description:

When NWDS is configured, the configuration re-activation could take a long time at master node and caused the SMP to timed out. This has been addressed.

Category: Utilities
Platforms: All
DevKey: STC1301
Summary: Improve performance of ZN command

Description:

Previously, the ZN command executed an excessive number of ObjectScript lines while switching namespaces. This could cause a severe performance penalty to applications which used the ZN command to switch namespaces within the application. This has been fixed.

Category: Utilities
Platforms: All
DevKey: STC1377
Summary: Fix password validate error on user import, Delete users faster

Description:

If there was an attempt to import a user into a new instance of Caché from another using ^SECURITY, and the user existed on both instances, and had a different password on each instance, then the password on the new instance would fail validation. Now, the user is deleted from the new system before the record is imported. This has the added effect of removing all the SQL table privileges for the new user (previously the user on the new instance inherited the table privileges from the user on the other instance).

There have also been performance enhancements.

Category: Utilities
Platforms: All
DevKey: STC1407
Summary: ZN command now works if in implied namespace with no mappings

Description:

Previously, if a process executed a $ZU(5,namespace) command to an implied namespace, the routine to test for the protect error was unavailable, so ZN could not be used to get back — though $ZU(5,namespace) could be used. The fix is to explicitly call the check routine with a namespace reference so it can be executed.

Change Reports for 2008.1.1


Category: CSP.Gateway
Platforms: All
DevKey: CMT528
Summary: Fix an occasional memory leak in the Apache modules: CSPa[n][Sys].so/dll

Description:

This build fixes an occasional memory leak in the Apache modules: CSPa[n][Sys].so/dll. The leak would occur in cases where the Gateway modules chose to forward a request on to the next module in the list (for example, requests for static files).

Category: CSP.Gateway
Platforms: All
DevKey: CMT626
Summary: Correct a situation that could lead to CGI environment variables not being removed from the cache when no longer defined

Description:

This build corrects a fault that could lead to CGI environment variables not being removed from the cache when no longer defined. The fault corrected with this change could occasionally result in environment variables left over from previous requests.

Category: CSP.Gateway
Platforms: All
DevKey: CMT633
Summary: Correct an issue in the backwards-compatibility code designed to serve Caché v4.1 (and earlier) systems

Description:

This change corrects a situation in the backwards-compatibility code designed to serve Caché v4.1 (and earlier) systems that could result in the premature termination of form request data exceeding 8K in size (as is often the case with forms containing TEXTAREA elements).

Category: Installation.Ensemble
Platforms: All
DevKey: JN654
Summary: Restore old implementation of ParseString() to %XML.SAX.Parser

Description:

The original implementation of ParseString() has been restored to %XML.SAX.Parser to unforseen problems on the OpenVMS platform.

Category: Installation.Windows
Platforms: All
DevKey: ALE1472
Summary: Detect Windows cluster environment on Windows 2008 server

Description:

Windows installation will detect when it is running on a Windows 2008 or above cluster and install and register cluster resources.

Category: Languages.COS
Platforms: All
DevKey: CDS1358
Summary: Fix debug map when multi-line comments

Description:

When stepping through a routine with multi-line comments, the debugger would display the wrong line as the current line.

Category: Languages.COS
Platforms: All
DevKey: JO2203
Summary: Report errors involving operating-system directory JOB command argument

Description:

The arguments in the job command include the specification of an operating system directory to which a child job should switch as part of its startup. However, this is not necessarily the directory the child job will use; it may be overridden by the default directory associated with the namespace for the child job.

Furthermore, errors switching to the directory in the child job were not treated consistently across platforms. On Windows and OpenVMS, errors were ignored. On UNIX systems, the behavior varied depending on the platform and Caché version.

With this change, all platforms have now been changed to return a <DIRECTORY> error to the original job command if the child fails to switch to the specified directory.


Category: Languages.SyntaxColoring
Platforms: Windows
DevKey: AGC1004
Summary: Studio COS Parser - Don't color any unknown $SYSTEM "classes" as error

Description:

This change assumes that references to $SYSTEM classes are correct and do not need to be syntactically checked. All $SYSTEM calls (except for ones of the form $SYSTEM.XXX(...)) are colored as OK.

Studio Assist for $SYSTEM calls works as before.


Category: MgtPortal
Platforms: All
DevKey: YSD1924
Summary: Fix sub-package mapping problem with uppercase package names in 2008.1 & 2008.2

Description:

This change corrects a problem where the mapping of sub-packages used uppercase for the names rather than preserving the case of the actual name.

Category: Networking.ECP
Platforms: All
DevKey: GK621
Summary: Modified ECP server initialization to avoid unexpected failures

Description:

Under rare circumstances, ECP server initialization can fail while partway through leaving a state that may prevent later ECP recovery or clean up. When this happens, a Caché restart is required to recover.

This change prevents the initialization failure from occurring.


Category: Networking.ECP
Platforms: All
DevKey: GK622
Summary: ECP recovery hangs

Description:

In very rare conditions, when the ECP Server fails unexpectedly, and an ECP client connects after dead job cleanup, a race condition can cause confusion about the job identifiers and prevent successful recovery. This correction eliminates that race condition.

Category: Networking.ECP
Platforms: All
DevKey: GK644
Summary: ECP server to detect and cleanup dead process and write daemon consistently

Description:

When an ECP application server is shutting down, the ECP read daemon may not detect and cleanup the dead process daemon, and may end up waiting for it go away forever. This is now fixed.

Category: Networking.ECP
Platforms: All
DevKey: SML1026
Summary: Fix $D(g,v) over ECP with unicode data returned bad data

Description:

This change fixes an error when using the expression $DATA(global, target) over ECP, and the data in the global has Unicode characters in it. Without this fix, the value of <target> could be set to an invalid string.

Category: Object
Platforms: All
DevKey: JN648
Summary: Workaround for Xerces issue 1308

Description:

This change provides a workaround for an issue in the Xerces XML parser that incorrectly reports namespace prefixes. Details of the issue can be found at the Apache website.

In practice, this is most visible in the %XML.TextReader class where the end element node types have the wrong name. This workaround addresses the issue by internally fixing up the name when the node is accessed.


Category: Object
Platforms: All
DevKey: TAP547
Summary: Fix bugs in %IO stream classes, especially FileStream.Clear()

Description:

This change


Category: Object
Platforms: All
DevKey: TAP548
Summary: Add CharEncoding aliases to %IO.I.TranslationDevice for 'binary' and 'default'

Description:

This change adds the aliases 'binary' and 'bin' in addition to 'rawbytes' for the RAW translation table.

It also adds 'default' in addition to 'native' as an alias for the natively active NLS translation table for the current device (as determined currently by

GetLocaleDefaultTable() = $$DefIO^%NLS(5).

Category: Object.Java
Platforms: All
DevKey: JSL2424
Summary: Fix concurrency issue in Java Metadata binding

Description:

This fix corrects a concurrency error caused by multiple Java threads attempting to validate the cached data for a class while fetching the class definition metadata.

Category: Object.Java
Platforms: All
DevKey: JSL2425
Summary: Make uptodate class checking in Java Metadata, Java projection and EJB conform

Description:

This change implements uptodate class checking in Java Metadata. Java projection and EJB operations now conform to how the class compiler interprets uptodate.

Category: Object.LanguageBindings.LCB
Platforms: All
DevKey: JMM250
Summary: Light C++ Binding correctly stores null for %Double, %Float, and %Currency properties

Description:

This corrects a problem where the Light C++ Binding incorrectly stored 0 rather than null for null properties of types %Double, %Float, and %Currency.

Category: Object.Library
Platforms: All
DevKey: TAP558
Summary: Initialize %IO.DeviceStream LineTerminators using new system function

Description:

This change allows a %IO.DeviceStream to properly initialize its LineTerminators shadow variable using $System.Device.GetReadTerminators() rather than just using defaults as it formerly did.

Category: Object.Soap
Platforms: All
DevKey: MXT1029
Summary: Add %SOAP pre- & post- Process() callbacks to %Soap.WebService

Description:

Add OnPreSOAP and OnPostSOAP callbacks to %SOAP.WebService for use by Ensemble. These callbacks are internal and thus do not need to have customer documentation.

More detail may be found in the class documentation.


Category: Object.Soap
Platforms: All
DevKey: MXT1034
Summary: Handle $c(0) values when outputting %SOAP.Fault

Description:

Change %SOAP.WebService to output %SOAP.Fault properties whose value is $c(0) as an empty string.

Category: Object.Soap
Platforms: All
DevKey: MXT1038
Summary: Discard any output written to the current device by a web service method

Description:

Any output written by a web service WebMethod will currently end up between the HTTP headers and the SOAP envelope resulting in a badly formed SOAP message. This change corrects the problem by redirecting any output from the WebMethod to the null device.

Category: Object.Storage.Default
Platforms: All
DevKey: DLP2027
Summary: Check fkey properties for change before acquiring update lock

Description:

A defect has been fixed that caused locks on existing rows to be taken out when enforcing foreign key constraints when the constraint properties have not been modified. Locks are now only taken out if any of the constraint properties is modified.

Category: Object.XML
Platforms: All
DevKey: MXT1022
Summary: Cleanup XMLNew and make it no longer internal

Description:

With this change, after cleanup XMLNew is now supported for customer override.

A %XML.Node instance for navigating the DOM may be obtained by calling the new method of %XML.Document
   set node=document.GetNode(nodeId)

For further information, see documentation included in the method definition in %XML.Adaptor.


Category: Security
Platforms: All
DevKey: STC1343
Summary: During an upgrade, convert Services properties correctly

Description:

During an upgrade, Caché erroneously enabled some services which would have been disabled during the initial install. This has been fixed. Caché only updates the capability properties of these services (That is, types of authentications allowed for the service.)

Category: Security
Platforms: All
DevKey: RJW1552
Summary: Console terminal user cannot write to cconsole.log on Windows 2008 server

Description:

A permission issue prevented a Caché Terminal console login from writing messages to cconsole.log on Windows Server 2008. The problem was caused by a change in the default ACL on the \intersystems\cachesys\mgr\cconsole.log file on Windows Server 2008. This is now fixed.

Category: Security
Platforms: All
DevKey: STC1361
Summary: Do not allow CacheDirect login with a null username and password and unauthenticated access not enabled

Description:

This change prevents a user from entering a "" (null) username and password when logging into a Visual Basic Cache Direct application, thereby authenticating as the UnknownUser when Unauthenticated access is not enabled for Cache Direct applications.

Category: Security
Platforms: OpenVMS
DevKey: WDS282
Summary: Fix tcppeek() on VMS

Description:

This change corrects a defect that incorrectly converted the socket number for a TCP connection when interacting with the OpenVMS socket library. The incorrect conversion resulted adding a delay of 4 seconds to each connection attempt. Attempts to use SSL for the connection would fail.

Category: SQL
Platforms: All
DevKey: DPV3098
Summary: FKey referential locks only acquired when FKey field(s) are updated

Description:

A change has been made to the SQL filer to help reduce the number of locks acquired for large updates on a table with foreign key constraints.

When a table is updated, a lock is acquired on the referenced table row for every foreign key. In the event the update is rolled back this insures old referenced rows are still valid. This logic used to lock all the rows referenced by foreign keys kicked in even if the foreign key field values did not change.

Now the system will only lock referenced rows where the fkey field(s) have actually changed. This will reduce the number of locks required for this situation in large transactions involving updates where not all fields are updated with new values.


Category: SQL
Platforms: All
DevKey: JLF196
Summary: Clean up mts(m,str) when a left outer join is removed

Description:

When an outer join is removed, a parse-time structure that refers to it was not cleaned up. This caused an <UNDEFINED> reference when an outer join was removed. It has been corrected.

Category: SQL
Platforms: All
DevKey: JLF197, JLF208
Summary: Add uppercase accented characters to $TRANSLATE list for Portuguese

Description:

Uppercase accented characters of the Portuguese language were added to the character set of the %Text.Portuguese class, enabling Portuguese text containing uppercase accented characters to match with unaccented variations of the same word. The characters are: "ÀÁÂÃÇÉÊÍÓÕÔÚÜ".

Category: SQL
Platforms: All
DevKey: JLF201
Summary: Re-initialize local arrays in analyzeSubqueries

Description:

During the processing of an outer join, new query blocks may be created. While most internal structures are maintained, a few that are initialized earlier by the DISTINCT optimization were not maintained. A code reorganization caused an internal structure to be uninitialized, resulting in an <UNDEFINED> error.

This is now fixed.


Category: SQL
Platforms: All
DevKey: JLF207
Summary: Added joinedToDistinctColumn function

Description:

A query optimization that flattens a correlated SQL subquery into the containing query block produced incorrect results when the body of the subquery had unique rows, and when the correlated join condition was on a non-unique column.

This is now fixed.


Category: SQL.Gateway
Platforms: All
DevKey: MIT795
Summary: Handle multiple update counts properly in JDBC linked procedures

Description:

This change corrects a defect where a query sent through the SQL Gateway might not return to the Caché application all the results sets selected by the query.

Category: SQL.ODBC
Platforms: All
DevKey: JCN890
Summary: Prevent accessing ODBCINI when not specifying a DSN via SQLDriverConnect

Description:

This corrects a problem where a Macintosh ODBC application that called SQLDriverConnect without using a DSN experienced random core dumps when connecting.

The problem was caused by accessing the ODBC.INI file via SQLGetPrivateProfileString which does not need to be used when not using a DSN to connect to the database.


Category: SQL.ODBC
Platforms: All
DevKey: JCN899
Summary: Preserve settings via SQLDriverConnect when not specifying a DSN

Description:

When calling SQLDriverConnect without specifying a DSN, users were unable to set UNICODE SQLTYPES, STATIC CURSORS, or QUERY TIMEOUT values using the connection string key/value pairs. These values could still be specified via a DSN and its settings.

This is now fixed.


Category: SQL.ODBC
Platforms: All
DevKey: JCN900
Summary: Fix UTF8 conversion for character streams when dealing with multibyte data

Description:

This change corrects an issue with multibyte character streams when characters containing more than one byte occur exactly at the end of an internal buffer byte location that splits the character. This caused a conversion error on character sets like those used in Japan, China, Korea.

Category: Studio
Platforms: All
DevKey: RAW728
Summary: Studio editor: repaint loop in Japanese output window

Description:

In Japanese version (only), when a class is compiled, the output window goes into a recursive loop resizing slightly, which causes continuous repaints. This has been corrected.

Category: System
Platforms: All
DevKey: CDS1276
Summary: Fix private variable crash when closing multiple objects

Description:

When closing multiple objects (for example, via $SYSTEM.OBJ.CloseObjects), under some circumstances the system could get an access violation error.

This has been fixed.


Category: Studio
Platforms: All
DevKey: RAW737
Summary: Studio editor: stop crash editing DTL

Description:

This change corrects a situation where Studio failed while editing DTL (Data Transformation Language) documents.

Category: System
Platforms: All
DevKey: CDS1295, CDS1397
Summary: Fix local variable $DATA issue after MERGE then KILL

Description:

This change corrects a problem where a MERGE of array nodes into a local variable, V, followed by KILL of all the array nodes, would result in $DATA(V) having a value of 10 or 11 when it should have been 0 or 1.

Category: System
Platforms: All
DevKey: CDS1326
Summary: Fix memory leak with breakpoints

Description:

If a routine is running with breakpoints set, available process memory was gradually lost until unrecoverable <STORE> errors occurred. This change corrects the memory leak.

Category: System
Platforms: All
DevKey: GK646
Summary: Modified namespace change to release the invalidated process cached unused routines

Description:

When changing namespaces, the routine target cache is cleaned up, since it is namespace-specific. This modifies the order of the target cleanup to avoid process routines encountering cache corruption and/or access violations.

Category: System
Platforms: All
DevKey: GK647
Summary: Cached routines should use the invoking namespace for the routine source for $Text, errors, and so on

Description:

If a routine switches its namespace and invokes some other routine(s) and a later invocation finds the original routine in the cache, the references to the routine source may fail (i.e. errors, debugger, or $text). This change preserves the invoking namespace when the routine is invoked from the routine cache.
Caution: This does not address environments that use $ZU(20) or $ZU(39) to overwrite the routine search path.

Category: System
Platforms: Solaris
DevKey: JLC1168
Summary: Fix Solaris core counting algorithm

Description:

This change corrects a problem in the algorithm that counts the number of CPUs and cores on Solaris. In particular, when running on some Sun Fire T1000 and T2000 configurations, counting an incorrect number of cores could result in license restrictions.

Category: System
Platforms: All
DevKey: JLC1178
Summary: Detect end of dst buffer earlier in translate functions

Description:

This change fixes a problem in the UnicodeLittle and UnicodeBig NLS translations that, when used with fixed length READs in TCP devices, could lead to some bytes being dropped in the connection if the translation type were changed on the fly between records.

Category: System
Platforms: All
DevKey: JO2221
Summary: Fix <TOO MANY LONG STRINGS> on kills inside a transaction

Description:

A problem has been resolved where killing a global inside a transaction could result in a <TOO MANY LONG STRINGS> error even on systems which do not have long strings enabled.

The problem occurs on Unicode installations where the global tree being killed has more than 512 big string data values that consume more than 32767 bytes when stored in the database. Generally in order to consume more than 32767 bytes a data value needs to be fairly long to start with and it needs to contain a mix of characters from different 16-bit character sets. Users can check whether strings take up this much space by examining the # of data blocks used to store the big string values as reported by ^REPAIR. If ^REPAIR reports a length larger than 32767, then this would count as one of the 512 strings that would cause a problem.

Note: the kill must be within a transaction to trigger the error.

Category: System
Platforms: UNIX
DevKey: JO2222
Summary: Fix Write Daemon hang after CACHETEMP filefull+filesystem expansion (on UNIX)

Description:

A problem was resolved on UNIX systems where CACHETEMP fills the disk and subsequently space is made available so that the delayed writes can complete.

If Caché became idle for 5 minute the control process might incorrectly decide that the write daemon was stuck because the internal counts of how many blocks needed to be written had gotten out of sync with the number of blocks which actually needed to be written.


Category: System
Platforms: Alpha OpenVMS and Tru64
DevKey: JO2228
Summary: Fix Clnotcnd bug on AlphaVMS and Tru64

Description:

A longstanding defect affecting AlphaVMS and Alpha/Tru64 platforms has been resolved. It bug involved an internal stack discipline problem which rarely caused problems.

The symptoms of this defect that have been see range from spurious <STRINGSTACK> errors in extrinsic function calls to seemingly-random access violations. The issue was that a post conditional expression which was evaluated as a boolean not would leave an extra argument on the operand stack in the case where it executed the "skip" case.


Category: System
Platforms: All
DevKey: RFD331
Summary: Add definitions for latest SNMP traps to WMI

Description:

The WMI server code in Caché was not recognizing SNMP Trap IDs for LicenseExceeded or DCP errors, which could possibly cause events to get stuck in the system queue.

This has been corrected.


Category: System
Platforms: All
DevKey: RJF056
Summary: cstat self-diagnosis for hung systems

Description:

cstat has been enhanced to allow it to perform self-diagnostics for many types of system hangs.

When the -S option is selected, cstat first attempts to determine if the system is hung in a way that can be self-diagnosed. If it is hung in that way, then it examines the system state in effort to identify the cause of the hang.

Informational messages are output reporting the progress of the self-diagnosis and any relevant recommendations to the user. Finally, a list of processes is reported which are suspected of causing the hang at that Caché system level. Each process reported may be in one of several possible states. The states reported and their meanings are as follows:

As an example a hang with IJULOCK set and an updater waiting for a global buffer would produce self diagnostic output like this:

Beginning hang self-diagnosis
Updates are blocked because ijulock is set
System is waiting for the WD (job 2)
  WD (job 2) has set ijulock and is waiting for updaters to finish
    Updater job 27:
     Job 27 is waiting for bdb #9411
     bdb #9411 is in use by job 13
     Job 13 is suspect
     Job 27 is exonerated
     Job 2 is exonerated

Summary of Job States: {state: [job#:pid[|tid] [...]]}
SUSPECT: 13:5353
EXONERATED: 2:5298 27:5357
DEAD:
LOSTWAKE:
Note that not all types of hangs necessarily result in having any processes requiring further investigation.

In a Caché cluster, the cstat self-diagnostics should be run on all cluster members. It is possible that one cluster member may appear to be hung before the others. Typically, within 10 minutes, the other members become hung because the write daemons time out while trying to synchronize with the other nodes. For this reason, the self-diagnosis may not detect the hang on one or more nodes of the cluster until this timeout has expired.

Additionally, this change adds a new bit 2048 to the cstat -p option. When the 2048 bit is on, the file number and block number of each process's retained buffer is displayed.

There are two general types of tools native to the operating system that can be used to investigate the suspect processes: user-mode process dumping tools and user-mode debuggers. To gather comprehensive information about a suspect process, use a user-mode process dumping tool. The resulting dump file can be very large, but contains the entire state of the suspect process. Other debugging tools can gather key information without needing to produce a large output file. Often using multiple tools in conjunction is desired.

WARNING: Many of the following tools are invasive and should only be used when the system is hung. The expectation should be that you will need to force down and restart Caché in order to recover the system.
User-mode process dumps by platform:



Category: System
Platforms: OpenVMS
DevKey: SML1002
Summary: Fix a loop when a job is terminated abnormally for OpenVMS

Description:

When a job is terminated abnormally, there is a chance that the job could get into a CPU loop. This change prevents that possibility.

Category: System
Platforms: All
DevKey: SML1006
Summary: Fix error when a job failed to allocate memory for subscript cache

Description:

This change corrects an error that occurred when a job exhausts its heap memory space while trying to set up its cache of recently-used global subscripts.

Category: System
Platforms: All
DevKey: SML1011
Summary: Fix an <ACCVIO> on merge command with two local array

Description:

This change fixes an access violation that can occur on Caché when using a MERGE command with two local arrays.

Category: System
Platforms: All
DevKey: SML990
Summary: Fix <STRINGSTACK> error when exporting an object with a large array

Description:

This change fixes a possible <STRINGSTACK> error when exporting an object that contains large arrays.

Category: System.Cluster Specific
Platforms: All
DevKey: OpenVMS, Tru64 UNIX
Summary: Fixed cluster slave recovery/restart hang

Description:

If a cluster slave crashes or is forced down when the master has one or more active ECP connection, cluster recovery may leave the cluster in a partially recovered state and prevent the slaves from restarting and joining the cluster. Slave restart may assume the master is middle of ECP recovery, and wait forever for the master to finish the recovery.

This change corrects the issue.


Category: System.Cluster Specific
Platforms: OpenVMS, Tru64 UNIX
DevKey: JO2207
Summary: Fix database expansion error

Description:

This affects systems which support clusters (for example, all OpenVMS versions and the Tru64 version with cluster support) regardless of whether the Caché instance is part of a Caché cluster or not.

An error has been fixed where, in very rare circumstances, an attempt to expand the database could get an access violation or could enter an infinite loop syslogging errors during the expansion of a non-cluster mounted database. The error code syslogged is 8484 (0x2124) in module #16.


Category: System.Journaling
Platforms: All
DevKey: HYY1358
Summary: Properly test for JournalHalt flag when journaling fails to start at startup

Description:

When system is set to freeze on journal error and journaling fails to start at startup, startup aborts rather than continues on.

The problem present in 5.1 and later releases; it is corrected by this change.


Category: System.Journaling
Platforms: All
DevKey: HYY1369
Summary: Fix journal synchronization looping

Description:

This corrects a situation where a process (synchronous TCOMMIT, ECP daemon, write daemon, etc.) waiting for the journal daemon to commit the journal up to a certain offset could get stuck indefinitely (depending on the journal activity volume on the system).

This occurred in rare circumstance that involved a journal switch before the wait. The problem affected only Caché systems that saw very little journal activity and used small-sized journal files (as a result of either journal file max size being set to very small or journal files being switched frequently by the user).


Category: System.Journaling
Platforms: All
DevKey: HYY1370
Summary: Fix a case of rollback failure for long strings

Description:

This change addressed an issue that could cause rollback of a SET whose new and old values are strings of significant lengths (that is, close to 32KB), to fail.

Category: System.Journaling
Platforms: All
DevKey: HYY1373
Summary: Suspend checking TCP disconnect during rollback and halt

Description:

This change corrects the following limitations regarding the affect of TROLLBACK on TCP devices:


Category: System.Journaling
Platforms: All
DevKey: HYY1388
Summary: JRNSTART ignoring JournalFilePrefix change in cpf

Description:

This correction addresses an issue where a change to JournalFilePrefix property made in the configuration parameter file (.cpf) did not take effect even after Caché restart and might get overwritten by subsequent journal switch.

This only involves changes made to the file; changes made via ^JRNOPTS or MgtPortal took affect as expected.

The defect was present in releases 5.2.4 and later.


Category: System.Licensing
Platforms: All
DevKey: RJW1546
Summary: Correct handling of maximum number of database allowed by license

Description:

This corrects a problem that prevented creating the permitted number of databases with an Entree license.

Category: System.Licensing
Platforms: All
DevKey: RJW1553
Summary: Ensemble infrastructure databases should not count toward licensed database limit

Description:

This correction changes the license accounting algorithm so the built-in databases of an Ensemble installation are no longer counted as part of the database limit for E2 (Entree) and E4 (Elite) license keys.

Category: System.Lock
Platforms: All
DevKey: SML993
Summary: Fix ECP client lock in shared mode hang

Description:

This change fixes a network lock problem where a ECP/DCP client job could hang when it has a node locked and another job locked the parent node of the one it had locked.

Category: System.Shadowing
Platforms: All
DevKey: HYY1330
Summary: Load-balanced prefetching for shadowing

Description:

This change reworks the prefetching algorithm to improve performance of shadow dejournaling.

Category: System.Trans. Proc.
Platforms: All
DevKey: SML996
Summary: Fix TSTART on multiple remote systems caused ECP server transaction out of synch

Description:

This change fixes a transaction error that can occur when a pending transaction does SET or KILL over multiple remote ECP systems. Under these circumstances, the ECP daemon on a remote ECP remote system may fail, or cause the transactions to be out of synch on the ECP server.

This problem only occurred when set/kill is done on two different ECP remote system.


Category: Utilities
Platforms: All
DevKey: STC1404
Summary: $SYSTEM.Security.AddRoles() cannot be called from programmer mode or debugger

Description:

The function, $SYSTEM.Security.AddRoles() can no longer be called from the command line, or from within the debugger. Doing so could allow a user to inadvertently leave their process with elevated roles when the call returns. Calling the method in this way will fail to elevate the roles, and the error
ERROR #940: Insufficient privilege for operation
will be returned as the value of the function.

Category: Utilities.Globals
Platforms: All
DevKey: RFD313
Summary: Make current directory the default for cstat

Description:

This change makes the MGR directory the assumed default directory in cstat. It is no longer necessary to add "-s." on the command line.

Category: Weblink
Platforms: All
DevKey: CMT636
Summary: Ensure that WebLink always reads multipart MIME content (i.e. uploaded files) in "RAW" mode

Description:

This change modifies the NLS setting in WebLink so that it will always read multipart MIME content (such as uploaded files) in "RAW" mode.

This change was made because it was found that binary data would not upload correctly if the WebLink base NLS setting (as set in the 'NLS_Translation' parameter) was set to a multi-byte character set (e.g. SJIS).

The visible symptom of this was fault was file uploads stalling and timing-out.


Category: Zen
Platforms: All
DevKey: JMD428
Summary: ZEN Page RESOURCE parameter will accept csv-list of resource names

Description:

The Zen Page class defines a parameter, RESOURCE. This is the name of a resource on which the user must hold USE privilege in order to use the page.

With this change, the RESOURCE parameter can contain a comma-delimited list of resource names. The user must hold USE on at least one of the given resources to use the page.



Caché Maintenance Kit Release Notes Archive for Caché 2008.1.5
© 2009, InterSystems Corporation.