Which version of JCIFS is exposed to rhino scripts? #6260
-
If I look at the tests in this very repo I see the modern JCIFS API being used, with the two parameter version of the smbFile method. This is the API I want to use, yet in my channels (mirth connect 4.2) I am not able to. The only thing that works is the one-place version of the smbFile method, that takes one of these funny looking urls in the shape of smb//domain;user:password@host... How to use the more modern API in channels? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
Is that so? Then I don't seem able to use BaseConfiguration, imported as as
and used as
as it throws: "BaseConfiguration is an object, not a function". Am I missing something? |
Beta Was this translation helpful? Give feedback.
In mirth 4.5 I get
I tried this instead:
Which gave me
And that led me to believe that it was finding the class now, but it does not have a zero-argument constructor.
https://github.com/AgNO3/jcifs-ng/blob/2d5b46907f6614b4d600e96128e0060982e03760/src/main/java/jcifs/config/BaseConfiguration.java#L145-L164
The zero-argument constructor does exist, but it's protected, so you can't call it. It cal…