cqframework / cqframework/cqf-tooling
HTTP redirect issue from QdmToQiCore.java
@c-schuler is already working on this.
Since Sep 26, 2023.
- Dominant language
- Java
- Stars
- 22
- Forks
- 26
- PR merge metrics
- No merged PRs in 30d
Description
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
- Run 'mvn clean package exec:java -Dexec.args="-QdmToQiCore /Documents"
- 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)
- 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 <textarea/> content isn't present and causes the error.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.