web stats
Found bug in saving code templates/libraries - Mirth Community

Go Back   Mirth Community > Mirth Connect > Development

Reply
 
Thread Tools Display Modes
  #1  
Old 04-23-2017, 11:23 PM
jahlb jahlb is offline
What's HL7?
 
Join Date: Apr 2017
Posts: 1
jahlb is on a distinguished road
Default Found bug in saving code templates/libraries

Hi everyone. I work at a company dealing that LIS for blood transfusions. We utilize mirth for our integrations between our main system and different technical solutions. The version used is 3.4.2.8129.
Working in mirth we found a possible bug trying to save code templates while multiple people were working in different templates or libraries. When working on a code template it could suddenly give the message:

"One or more code templates or libraries have been modified since you last refreshed. Do you want to overwrite the change?"

The thing is that this happen for code templates that only one person was working on, specific to one project. After further investigation, we managed to create the error again in a repetitive manner.

Here is the syntax on how:
  1. Create Library (L1 and L2)
  2. Create 2 code templates in L1 (L1-ct-1 and L1-ct-2)
  3. Create 2 code templates in L2 (L2-ct-1 and L2-ct-2)
  4. Create a channel with dependency on L1 and L2
  5. Open two sessions with two different users (A and B)
  6. In A:
    Channels->Edit Code Templates
    Click and select, without modification, in order:
    L1-ct-1
    L1-ct-2
    L2-ct-1
    L2-ct-2
  7. In B:
    Remove channel dependency on L1
  8. In A:
    Modify the selected L2-ct-2 and save
    Now we get the message
    "One or more code templates or libraries have been modified since you last refreshed. Do you want to overwrite the change?"
    The channel modification in point 7 touch L1. Only L2 has been modified in point 8.

This becomes a problem when several people are developing simultaneously. We also found instances where code has gone missing but we are not sure it its connected.
Does anyone know a solution for this or is it something that we do wrong?

Best regards
Johan
Reply With Quote
  #2  
Old 06-14-2017, 05:11 AM
siddharth siddharth is offline
Mirth Guru
 
Join Date: Feb 2013
Posts: 832
siddharth is on a distinguished road
Default

Yeah, that normally happens. Sometimes if I have instances open and I make changes in one window, the message comes in another one.
I personally don't think that is a bug, maybe it is there to prevent simultaneous changes to the code templates because there is no active source control baked in Mirth.
If you have a team of Developers working on the same library, maybe you want to define a process so that they don't step on each others foot.
Reply With Quote
  #3  
Old 06-14-2017, 07:21 AM
kirbykn2's Avatar
kirbykn2 kirbykn2 is offline
Mirth Guru
 
Join Date: Sep 2014
Location: Michigan
Posts: 570
kirbykn2 is on a distinguished road
Default

we had the same issue. After we figured out what was happening, we would just send an email to the development team when we were working on code templates.

I know a lot of work has been done on the libraries the last few releases. Perhaps this has been addressed in the newer versions?
__________________
Kirby

Mirth Certified|Epic Bridges Certified|Cloverleaf Level 2 Certified

Appliance Version 3.11.2
Mirth Connect Version 3.6.1
Java Version 1.6.0_45-b06
Java (64 bit) Version 1.6.0_45-b06
Java 7 (64 bit) Version 1.7.0_151-b15
Java 8 (64 bit) Version 1.8.0_121-b13
PostgreSQL Version 9.6.3
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 02:50 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2019, vBulletin Solutions, Inc.
Mirth Corporation