•  
  • last updated a few seconds ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Forgot to commit server side code.…
Forgot to commit server side code.

Issue: MIRTH-1040

Show a warning if one or more of the connectors chosen to be stopped was a destination connector with queueing disabled. Destination connectors must have queueing enabled to be stopped individually.…
Show a warning if one or more of the connectors chosen to be stopped was a destination connector with queueing disabled. Destination connectors must have queueing enabled to be stopped individually.

Issue: MIRTH-1040

Fixed poll connectors not stopping gracefully if they failed to start. The same fix also takes care of the potential null pointer exceptions in stop() and halt()…
Fixed poll connectors not stopping gracefully if they failed to start. The same fix also takes care of the potential null pointer exceptions in stop() and halt()

Issue: MIRTH-2643

MIRTH-2648: Updated the HTTP connectors so that they check for unsupported protocols on deploy and on dispatch.
MIRTH-2648: Updated the HTTP connectors so that they check for unsupported protocols on deploy and on dispatch.
MIRTH-2552

MIRTH-1700

Fixed problem in ImportConverter3_0_0.migrateJmsReceiverProperties if an error occurred while reading the old connection properties - needed to log an error and fail gracefully.

Moved the Version enum from DMC into it's own file.

Renamed Migrator to ServerMigrator.

Rewrote migration code in Migrate2_0_0 so that it does migrates global scripts and server properties manually, without referencing controller classes - fixes errors when migrating from version 1.8.x.

Modified Migrate2_0_0, Migrate3_0_0 and ServerMigrator so that they do not reference any controller classes.

Added additional utility methods to DonkeyElement.

    • -0
    • +78
    ./server/src/com/mirth/connect/server/migration/Version.java
MIRTH-2645: Fixed NullPointerException in MigratableConverter that happens when the converter is registered after NullConverter is added to the internal converter map.
MIRTH-2645: Fixed NullPointerException in MigratableConverter that happens when the converter is registered after NullConverter is added to the internal converter map.
MIRTH-1674: Updated JSch to the latest version (0.1.50).
MIRTH-1674: Updated JSch to the latest version (0.1.50).
    • binary
    ./server/lib/jsch-0.1.50.jar
Fixed problem with the channel add tag dialog showing up all black under certain circumstances in Windows.…
Fixed problem with the channel add tag dialog showing up all black under certain circumstances in Windows.

Changed the dialog so that it is created/disposed on open/close instead of using setVisible().

Issue: MIRTH-2569

MIRTH-2188: Fixed bug that caused dragging a user cell onto itself to break drag-and-drop handling. The CustomTransferHandler that ChannelPanel and DefaultAlertPanel used has been extracted to a separ…
MIRTH-2188: Fixed bug that caused dragging a user cell onto itself to break drag-and-drop handling. The CustomTransferHandler that ChannelPanel and DefaultAlertPanel used has been extracted to a separate MirthTableTransferHandler, which is used in UserPanel now as well.
If the user is importing a channel that matches the current server version, do not prompt the user to migrate it to the current version.…
If the user is importing a channel that matches the current server version, do not prompt the user to migrate it to the current version.

Issue: MIRTH-2594

MIRTH-1700

MIRTH-2499

Updated the XStream lib to 1.4.4 on Client and Donkey.

Cleaned up error/exception handling with object serialization and migration. If one or more serialized objects in the database fails to deserialize or migrate to the current version, an error will be logged and the offending object will be ignored (channels, code templates and alerts).

Renamed the previous SerializerException to XmlSerializerException since it is referenced by the XmlSerializer interface. Added a new SerializerException that is intended to be used by implementations of the Serializer interface in Donkey.

ObjectXMLSerializer now throws a SerializerException when serialization/deserialization or migration fails, instead of returning null. This is now consistent with the fact that XStream itself throws a runtime exception when it encounters an error when serializing or deserializing.

Refactored and rearranged code in DefaultMigrationController, Migrate2_0_0 and Migrate3_0_0.

    • binary
    ./donkey/lib/xstream/xstream-1.4.3.jar
    • binary
    ./donkey/lib/xstream/xstream-1.4.4.jar
    • -0
    • +5
    ./server/src/com/mirth/connect/server/migration/Migrator.java
  1. … 37 more files in changeset.
MIRTH-2495

MIRTH-2471

Reverted change to allow cascade deletes in Derby on the donkey message tables, since Derby uses a table-level lock when doing cascade deletes, which increases the risk of deadlocks.

Modified the DataPruner so that when pruning by message ids, it generates two message id lists, one for pruning content and one for pruning messages. That way it does not have to reference the d_mm.received date in the delete where clause, which allows Derby to still delete messages based on the d_mm.received_date instead of d_m.received_date.

    • -1
    • +3
    ./server/dbconf/oracle/oracle-message.xml
    • -1
    • +24
    ./server/dbconf/derby/derby-message.xml
    • -1
    • +3
    ./server/dbconf/mysql/mysql-message.xml
Don't disable the pruner block size option when the pruner is disabled, since the user can now manually run the pruner.…
Don't disable the pruner block size option when the pruner is disabled, since the user can now manually run the pruner.

Issue: MIRTH-2539

Updated error message when the VmDispatcher's response timeout is reached with a suggestion to increase the response timeout if the channel is not in fact writing to itself.…
Updated error message when the VmDispatcher's response timeout is reached with a suggestion to increase the response timeout if the channel is not in fact writing to itself.

Issue: MIRTH-2479

MIRTH-2471

MIRTH-1699

Changed Derby's donkey schema to allow cascade deletion on foreign keys.

Updated Derby's pruner statements to work with the cascade deletion and support pruning based on d_mm.received_date instead of d_m.received_date.

Refactored DataPruner so that it can delete messages based on a list of message ids even when not archiving. If a pruning strategy has been explicitly defined or if the current database has the "pruneMessagesByIds" query defined, it will automatically prune based on a message id list, rather than a date threshold. This improves performance dramatically in Derby.

Cleaned up code in DataPruner and made it easier to read.

Removed the MessageExportResult class since it is no longer needed.

Cleaned up and fixed problems with the DataPrunerTest unit tests.

    • -7
    • +25
    ./server/dbconf/oracle/oracle-message.xml
    • -7
    • +21
    ./server/dbconf/mysql/mysql-message.xml
    • -99
    • +61
    ./server/dbconf/derby/derby-message.xml
MIRTH-2639: Fixed the File Reader "Sort Files By Name" option so that it ignores case with lexicographic sorting.
MIRTH-2639: Fixed the File Reader "Sort Files By Name" option so that it ignores case with lexicographic sorting.
MIRTH-1441: Added support to the File Reader for recursive subdirectory traversal. If recursion is on, FileReceiver keeps track of a set of visited directories so that the same directory would never b…
MIRTH-1441: Added support to the File Reader for recursive subdirectory traversal. If recursion is on, FileReceiver keeps track of a set of visited directories so that the same directory would never be read twice (due to symlinks, etc.). The traversal is done in a pre-order, depth-first manner. A dialog has been added to the UI when recursion is enabled to warn users of the implications. In order to facilitate the set of visited directories, a getCanonicalPath method has been added to FileInfo, so that FileSystemConnection implementations have a way to retrieve an absolute and unique path string for the file.
Changed the forceQueue boolean into an AtomicBoolean…
Changed the forceQueue boolean into an AtomicBoolean

Don't set forceQueue to false when starting the connector until after onStart(). This ensures the connector does not try to send anything until after it has finished starting.

Issue: MIRTH-1040

Individual connectors can now be stopped from the Dashboard.…
Individual connectors can now be stopped from the Dashboard.

Stopping/starting a source connector performs the same action as pausing/resuming the channel.

Destination connectors can only be stopped individually if queueing is enabled. When a destination connector is stopped, its filter and transformer are still executed, but the message is always queued (even if attempt first is enabled). The queue thread is stopped and does not attempt to send.

When a destination connector is stopped, the channel still shows up as Started, but the icon is colored orange instead of green.

Added new task items for startConnector and stopConnector.

Updated popup menu logic to handle stopping individual connectors.

Removed some legacy code in MessageObjectServlet pertaining to temp tables.

Issue: MIRTH-1040

Fix query for deleting channels on MySQL.…
Fix query for deleting channels on MySQL.

Issue: MIRTH-2552

    • -1
    • +1
    ./server/dbconf/mysql/mysql-channel.xml
Brought back the AlertSender class and reference list item.…
Brought back the AlertSender class and reference list item.

AlertSender now dispatches events instead of calling the alert controller directly.

AlertSender is now constructed with either channelId or a connector message. The connector message allows it to dispatch error events for a specific connector.

Events dispatched from the AlertSender that do not have a metaDataId associated will trigger if any of the connectors for that channel are enabled.

Events dispatched from the AlertSender will only trigger if the User Defined Transformer event type is checked.

User javascript code for sending alerts should remain identical to how it was in 2.x

Cleaned up the error message builder to only append new lines when needed.

Issue: MIRTH-2621

Fixed ChannelId and global response map not being accessible in response transformer.…
Fixed ChannelId and global response map not being accessible in response transformer.

Cleaned up response scope methods to be consistent with the other scope methods.

Issue: MIRTH-2637

MIRTH-2209: Updated jTDS to the latest Java 6 compatible version (1.2.8).
MIRTH-2209: Updated jTDS to the latest Java 6 compatible version (1.2.8).
    • binary
    ./server/lib/database/jtds-1.2.8.jar
    • binary
    ./donkey/lib/database/jtds-1.2.7.jar
    • binary
    ./donkey/lib/database/jtds-1.2.8.jar
    • binary
    ./server/lib/database/jtds-1.2.7.jar
Implemented command line interface methods for importing/exporting alerts.…
Implemented command line interface methods for importing/exporting alerts.

They now work similarly to how channels are import/exported.

The command token is now importalert/exportalert (instead of importalerts/exportalerts).

Issue: MIRTH-2633

    • -2
    • +2
    ./command/src/com/mirth/connect/cli/Token.java
Implemented migration for alerts.…
Implemented migration for alerts.

Fixed varchar size in diffs

Alert table records that cannot be deserialized will now be hidden from the alert dashboard.

Alerts no longer require at least one action, because this was not required in version 2

Fixed remove action button behavior.

Issue: MIRTH-2617

    • -1
    • +1
    ./server/dbconf/deltas/derby-9-3.0.0.sql
    • -2
    • +4
    ./server/dbconf/oracle/oracle-alert.xml
    • -1
    • +1
    ./server/dbconf/deltas/oracle-9-3.0.0.sql
    • -1
    • +1
    ./server/dbconf/deltas/mysql-9-3.0.0.sql
Removed the CHANNEL_TAGS create table statement from the 3.0.0 delta scripts since the table is no longer used.…
Removed the CHANNEL_TAGS create table statement from the 3.0.0 delta scripts since the table is no longer used.

Issue: MIRTH-2548

    • -6
    • +0
    ./server/dbconf/deltas/derby-9-3.0.0.sql
    • -6
    • +0
    ./server/dbconf/deltas/oracle-9-3.0.0.sql
    • -6
    • +0
    ./server/dbconf/deltas/mysql-9-3.0.0.sql
Fixed error when migrating serialized objects.…
Fixed error when migrating serialized objects.

Issue: MIRTH-2499

MIRTH-2552: Modified channel migration so that new Channel Writer destination connectors are automatically created for any destination that used the "Send Response To" option. The new destination is a…
MIRTH-2552: Modified channel migration so that new Channel Writer destination connectors are automatically created for any destination that used the "Send Response To" option. The new destination is always placed in the same destination chain, and uses the response data from the previous destination for the template (e.g. ${d1.message}). The same inbound protocol as the previous destination connector is used, but the outbound protocol is always set to the same as the inbound (even if the previous destination transformed from one data type to another). The data type properties for the new Channel Writer are set to the defaults to prevent active transformation where possible. In addition, if the previous destination had a filter, a filter is also added to the new destination, so that an empty message won't be dispatched to the downstream channel.

The nextMetaDataId element has been removed from Migrate3_0_0. This isn't needed here because it's added in ImportConverter3_0_0.

MIRTH-2552

MIRTH-2499

Fixed MigratableConverter.unmarshal() so that it reads the object's version number from the top-level document element, rather than each migratable element since it is now only on the document element.

Also fixed MigratableConverter.unmarshal() so that it reads the current object's class type from the unmarshalling context, rather than trying to determine it from the element's name (this would not work on child elements since the child element names are field names and not class names).

Moved elementToXml() and elementFromXml() out of XmlUtil and into a new MigrationUtil class, since XmlUtil is exposed to the User through the TemplateValueReplacer, these methods didn't really need to be there.

Removed hardcoded "3.0.0" version number and made the Server and Client each initialize ObjectXMLSerializer with the current server version on startup.

Moved compareVersions() and normalizeVersion() from MigratableConverter into MigrationUtil.

Restored previous behavior when importing channels in the message browser so that it prompts the user when importing a channel from a previous version of Mirth Connect.

    • -0
    • +1
    ./server/src/com/mirth/connect/server/Mirth.java
    • -15
    • +0
    ./server/src/com/mirth/connect/util/XmlUtil.java
MIRTH-2552, MIRTH-2596: Updated the code template table to store only the ID and serialized XML, rather than each field individually. The MigrationController interface has been modified; instead of "m…
MIRTH-2552, MIRTH-2596: Updated the code template table to store only the ID and serialized XML, rather than each field individually. The MigrationController interface has been modified; instead of "migrateChannels" there is now a more general "migrateSerializedData" method, which automatically handles the "select XML, run migration, insert back into database" logic for certain Migratable objects.

CodeSnippetTypeHandler has been removed. It was only being used to facilitate selecting/inserting the CODE_TYPE column for code templates, and that column is no longer being stored directly.

Migrate3_0_0 has been updated to select old code template data, manually build the 2.x model document and insert it into the new code template table.

The migrateChannelTable portion of Migrate3_0_0 has been updated to include the nextMetaDataId element in the channel document, which was neglected beforehand.

    • -5
    • +1
    ./server/dbconf/oracle/oracle-database.sql
    • -19
    • +26
    ./server/dbconf/derby/derby-codeTemplate.xml
    • -10
    • +14
    ./server/src/com/mirth/connect/server/Mirth.java
    • -0
    • +7
    ./server/dbconf/deltas/mysql-9-3.0.0.sql
    • -5
    • +1
    ./server/dbconf/derby/derby-database.sql
    • -18
    • +26
    ./server/dbconf/mysql/mysql-codeTemplate.xml
    • -18
    • +26
    ./server/dbconf/sqlserver/sqlserver-codeTemplate.xml
    • -1
    • +8
    ./server/dbconf/deltas/derby-9-3.0.0.sql
  1. … 7 more files in changeset.