Dashboard

Tagging 3.4.2
Merge from trunk.

MIRTH-3960:Fixed issue with validating complex/large js scripts. Went through all the places we do validation. They all use the context returned from JavaScriptContextUtil where the optimization level is set. This is more of a workaround a rhino bug that is still present in the latest release.

Issue: MIRTH-3960

  1. … 10 more files in changeset.
Fixed issue with validating complex/large js scripts. Went through all the places we do validation. They all use the context returned from JavaScriptContextUtil where the optimization level is set. This is more of a workaround a rhino bug that is still present in the latest release.

Issue: MIRTH-MIRTH-3960

  1. … 4 more files in changeset.
MIRTH-4051: Fixed issue where closing the response after the client has been closed causes an additional IllegalStateException.

Merged from trunk.

MIRTH-4051: Fixed issue where closing the response after the client has been closed causes an additional IllegalStateException.
MIRTH-4051: Fixed issue that caused HTTP Sender destinations to become unusable after a fatal IllegalStateException or other Error occurs. This realistically only happens when the server runs out of memory for some reason, and even then there's only a small chance the client will get into such a state. If it did, restarting the connector fixed it. However now the dispatcher will gracefully recover from such errors, closing the client and allowing the next dispatch attempt to recreate it.

Similar changes were made to ServerConnection to allow it to restart itself (close and recreate the client) when a fatal error occurs. The cookie store is created and set separately so that users don't have to login again when this happens.

Merged from trunk.

MIRTH-4051: Fixed issue that caused HTTP Sender destinations to become unusable after a fatal IllegalStateException or other Error occurs. This realistically only happens when the server runs out of memory for some reason, and even then there's only a small chance the client will get into such a state. If it did, restarting the connector fixed it. However now the dispatcher will gracefully recover from such errors, closing the client and allowing the next dispatch attempt to recreate it.

Similar changes were made to ServerConnection to allow it to restart itself (close and recreate the client) when a fatal error occurs. The cookie store is created and set separately so that users don't have to login again when this happens.

MIRTH-4050: Fixed bug that caused native JavaScript strings / numbers to not always correctly remove destinations from a DestinationSet.

Merged from trunk.

MIRTH-4050: Fixed bug that caused native JavaScript strings / numbers to not always correctly remove destinations from a DestinationSet.
MIRTH-4049: Fixed bug in DatabaseConnectionFactory that prevented using more than one driver in the same script with custom libraries. Instead of a single boolean/driver, there is now a map (lazily created) that contains info for each driver string. That way each new driver is treated separately, and multiple custom drivers can be created in the same context.

Merged from trunk.

MIRTH-4049: Fixed bug in DatabaseConnectionFactory that prevented using more than one driver in the same script with custom libraries. Instead of a single boolean/driver, there is now a map (lazily created) that contains info for each driver string. That way each new driver is treated separately, and multiple custom drivers can be created in the same context.
MIRTH-4044: Fixed issue causing Select/Deselect All links to not work properly in the libraries tab.

Merged from trunk.

MIRTH-4044: Fixed issue causing Select/Deselect All links to not work properly in the libraries tab.
MIRTH-4045: Fixed race condition between stats updater thread and deleting channels. Now there's a new ChannelDoesNotExistException that gets thrown when the local channel ID cannot be found. The updater thread will catch that and remove stats for those channels IDs as necessary, and then re-attempt the commit on the next iteration.

Merged from trunk.

MIRTH-4045: Fixed race condition between stats updater thread and deleting channels. Now there's a new ChannelDoesNotExistException that gets thrown when the local channel ID cannot be found. The updater thread will catch that and remove stats for those channels IDs as necessary, and then re-attempt the commit on the next iteration.
Merged from trunk

Fixed NPE in JsonTokenMarker when running into quote when no states are left in the stack.

Issue: MIRTH-4040

Fixed NPE in JsonTokenMarker when running into quote when no states are left in the stack.

Issue: MIRTH-4040

Merge from trunk

Added some safety to calls that can depend on token marking. Some panels were failing to initialize correctly because of uncaught exceptions.

Issue: MIRTH-4034

Added some safety to calls that can depend on token marking. Some panels were failing to initialize correctly because of uncaught exceptions.

Issue: MIRTH-4034

MIRTH-4039: Made the code template servlet methods more consistent.
MIRTH-4033: Fixed issue that caused older versions (3.2.1 and earlier) to fail to load the Channels view when a 3.4 or greater instance of the Administrator was launched and the sort order preference was stored. Now the preference keys have a "tree" in front of them so that they won't conflict with earlier keys.

Merged from trunk.

MIRTH-4033: Fixed issue that caused older versions (3.2.1 and earlier) to fail to load the Channels view when a 3.4 or greater instance of the Administrator was launched and the sort order preference was stored. Now the preference keys have a "tree" in front of them so that they won't conflict with earlier keys.
MIRTH-4032: There is now the concept of "channel metadata" that is stored separately in the configuration table. The channel enabled flag, last modified, tags, and pruning settings are all stored in this object, instead of in the channel table. The channel model contains an optional ChannelExportData field, which can contain the metadata as well as other data (like code template libraries and dependencies) which can be included when the channel is exported.
  1. … 22 more files in changeset.
MIRTH-4031: Added 3.4.2 to Version and ServerMigrator in trunk.
MIRTH-4031: Added 3.4.2 to Version and ServerMigrator. Updated SQL creation scripts, mirth-build.properties, installer files and all extension metadata XML files.
  1. … 42 more files in changeset.
MIRTH-4030: Reverted filter check for importing channels since it doesn't necessarily cause group changes.

Merged from trunk.

MIRTH-4030: Reverted filter check for importing channels since it doesn't necessarily cause group changes.
MIRTH-4030: Fixed issue where the wrong tasks were being shown in the Channels view. The import and export all groups tasks were switched.

Merged from trunk.

MIRTH-4030: Fixed issue where the wrong tasks were being shown in the Channels view. The import and export all groups tasks were switched.
MIRTH-4028: Fixed issue where query params containing "{" or "}" caused API calls to fail.

Merged from trunk.