cqf-tooling icon indicating copy to clipboard operation
cqf-tooling copied to clipboard

HTTP redirect issue from QdmToQiCore.java

Open gregory-akins opened this issue 2 years ago • 0 comments

Describe the bug Running -QdmToQiCore target results in an error because the URL for http://wiki.hl7.org/index.php redirects to https://wiki.hl7.org/index.php.

To Reproduce Steps to reproduce the behavior:

  • Checkout the master branch
  1. Run 'mvn clean package exec:java -Dexec.args="-QdmToQiCore /Documents"
  2. Looks as result '
java.lang.ArrayIndexOutOfBoundsException: Index 1 out of bounds for length 1
    at org.opencds.cqf.tooling.qdm.QdmToQiCore.getCleanContent (QdmToQiCore.java:182)
    at org.opencds.cqf.tooling.qdm.QdmToQiCore.execute (QdmToQiCore.java:55)
    at org.opencds.cqf.tooling.Main.main (Main.java:220)
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
    at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke (Method.java:566)
    at org.codehaus.mojo.exec.ExecJavaMojo$1.run (ExecJavaMojo.java:282)
    at java.lang.Thread.run (Thread.java:829)
  1. No files created in /Documents

Expected behavior Expectation is that *.html files are created AdverseEvent.html Communication.html FamilyHistory.html Medication.html Symptom.html AllergyIntolerance.html ConditionDiagnosisProblem.html Immunization.html Participation.html Assessment.html Device.html IndividualCharacteristic.html PhysicalExam.html CareExperience.html DiagnosticStudy.html Intervention.html Procedure.html CareGoal.html Encounter.html LaboratoryTest.html Substance.html

Desktop (please complete the following information): Mac OSX 11.6.2

  • OS: [e.g. Windows, Linux]
  • Java Version [e.g. 8, 11] ~/Projects/cqf-tooling cqf-tooling.git(master)% mvn --version Apache Maven 3.8.4 (9b656c72d54e5bacbed989b64718c159fe39b537) Maven home: /usr/local/Cellar/maven/3.8.4/libexec Java version: 11.0.14, vendor: Eclipse Adoptium, runtime: /Users/gregory.akins/.sdkman/candidates/java/11.0.14-tem Default locale: en_US, platform encoding: UTF-8 OS name: "mac os x", version: "11.6.2", arch: "x86_64", family: "mac"

Additional context The HTTP: URL in org.opencds.cqf.tooling.qdm.QdmToQiCore is redirecting to https:// is not being followed, so the expected content isn't present and causes the error.

gregory-akins avatar Mar 01 '22 15:03 gregory-akins