Giter VIP home page Giter VIP logo

Comments (5)

jonbartels avatar jonbartels commented on June 16, 2024

The relevant code is at:

--- Is your channel with the mapped value enabled or disabled? Is it deployed or undeployed? --- NVM I see it is started so it has to be enabled and deployed

If you call the /channel/portsInUse API do you get back your mapped port?

The API actually does a DB lookup -

<query id="getPortsInUse">
. That query should still return the raw port string though.

For comparison, I wrote a plugin that adds the listening port to the dashboard view. You can see how my code does the template substitution at https://github.com/jonbartels/mirth-connect-dashboard-count/blob/bda790c9577ccb3f8d6bd8c8c7bd3dddfdf5b58a/server/src/main/java/com/jonbartels/mirthdashboard/server/servlet/ListeningPortServlet.java#L31 . I don't see where the ports in use listing from MC 4.2.0 does a similar template replacement. Note that my plugin is sensitive to deployment state.

from connect.

jonbartels avatar jonbartels commented on June 16, 2024

The logs were helpful. The problem is on this line: https://github.com/nextgenhealthcare/connect/blob/442b0895ab988071a294b5fda68b59474a4de8b7/donkey/src/main/java/com/mirth/connect/donkey/server/data/jdbc/JdbcDao.java#L3115\

See how it converts a string from the DB to an int? It reads ${AmaronFoundaBug} and tries to convert that to an int.

NextGen needs to release 4.2.1 to fix this.

@AmaronSimonDeSmet - Great bug report. It sucks to find bugs but you wrote up the issue clearly and that helped to find the issue. Nice work and thanks for helping the community!

from connect.

jonbartels avatar jonbartels commented on June 16, 2024

Tagging @pladesma and @twest-mirthconnect .

from connect.

twest-mirthconnect avatar twest-mirthconnect commented on June 16, 2024

Thanks to both. We have the big and are in review with it.

from connect.

joaryche avatar joaryche commented on June 16, 2024

yes i have a fix for this issue. the string variables will be pulled in from the database then will be passed to the replacer module which will convert the velocity variable to its context value.

from connect.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.