web stats
Mirth Community - View Single Post - Found bug in saving code templates/libraries
View Single Post
  #1  
Old 04-24-2017, 12:23 AM
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