Skip to content

Commit d033929

Browse files
jdar8jdarKevinDouganmichaelabuckleyTipzCM
authored
Mergeback 1 rel 8 6 (#7360)
* increase memory to elastic search container (#7326) Co-authored-by: jdar <[email protected]> * 7282 - Added the ability for an Interceptor to alter the HTTP Response Code when an Exception is thrown (#7303) * 7282 - Added the ability for an Interceptor to alter the HTTP Response Code when an Exception is thrown. * Enhanced the solution based on code review feedback. * Removed a class that was being used to store the Http response Code and used the existing HttpStatus class instead. * Enhanced the Unit Test. * Enhanced the Javadoc for the Pointcut.SERVER_OUTGOING_FAILURE_OPERATIONOUTCOME enum. * Changed the Interceptor Hook implementation based on Code Review feedback. * Removed an unused variable declaration. * Removed an unused variable declaration. * Ran mvn spotless:apply to apply proper formatting. * More code review feedback. * Use ResponseDetails for exception outcome modification. * Remove bit about "valid status" -- we allow anything * changelog * Replace the response object --------- Co-authored-by: Michael Buckley <[email protected]> * batch2 jobs that are cancelled will not be returned when requesting a… (#7321) (#7327) * Improve URL processing for JpaPersistedResourceValidationSupport (#7330) * Improve URL processing for JpaPersistedResourceValidationSupport * Add changelog * allow fetching subsequent pages when registering an allowed spec of r… (#7329) * allow fetching subsequent pages when registering an allowed spec of resourcetype search * 7833: add missing relationship between TermConcept and TermConceptProperty (#7346) * 7316 do not expand chain refparams (#7350) * Make sure refparams with chains are not expanded via MDM * 7316: code review feedback * [7269] bulk export history fails with client-assigned string IDs (#7300) * fixed 7269 bulk export history failure with client-assigned string IDs * fixed 7269 bulk export history failure with client-assigned string IDs * Update hapi-fhir-docs/src/main/resources/ca/uhn/hapi/fhir/changelog/8_6_0/7296-bulk-export-fails-with-string-resource-ids.yaml Co-authored-by: jdar8 <[email protected]> * changed string ids to IResourcePersistentId * changed string ids to IResourcePersistentId * batch2 jobs that are cancelled will not be returned when requesting a… (#7321) * Bump to 8 7 (#7322) * bump to 8.7, add version enums * changelog folder for 8.8 * increase memory to elastic search container --------- Co-authored-by: jdar <[email protected]> * Update hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/dao/index/IdHelperService.java Co-authored-by: Michael Buckley <[email protected]> * fixed with spotless * Revert "Bump to 8 7 (#7322)" This reverts commit 40f1128. * Revert "changed string ids to IResourcePersistentId" This reverts commit 06af86a. * Revert "batch2 jobs that are cancelled will not be returned when requesting a… (#7321)" This reverts commit be08680. * changed string ids to IResourcePersistentId * fixed with spotless * Bumped version number * adding missing change to fix build --------- Co-authored-by: Rob Caruso <[email protected]> Co-authored-by: jdar8 <[email protected]> Co-authored-by: TipzCM <[email protected]> Co-authored-by: jdar <[email protected]> Co-authored-by: Michael Buckley <[email protected]> * [7332] fix mdm-query-links (#7356) * 7324 unable to access collection bundles when performing search requests (#7325) * Add failing tests * Fix * Changelog * Fix comment * Fix test * Try fixing CodeQL autobuild error * Implement revision suggestions * Add missed test case parameter * PatientIdPartitionIntercepto should allow Encounter.subject parameter (#7348) * Work on megascale enhancements part 6 * Add changelog * Test fix * Update hapi-fhir-docs/src/main/resources/ca/uhn/hapi/fhir/changelog/8_6_0/7348-allow-patientidcompartmentmode-search-encounter-subject.yaml Co-authored-by: Nathan Doef <[email protected]> * Test fixes --------- Co-authored-by: Nathan Doef <[email protected]> * Bump to spring62 (#7351) * Bump spring framework version * Replace Base64Utils with Base64.getEncoder() * Bump spring boot test deps to match spring version 6.2 * Bump junit for spring tests --------- Co-authored-by: Gary <[email protected]> * 7217 with rel 8 6 (#7337) * Automated Migration Testing (HAPI-FHIR) - updated test migration scripts for 8_6_0 (#7357) * Remove dead autowire (#7365) * Don't reuse TransactionDetails for partitioned TX execution (#7363) * Fix tags on megascale * Add test * Test fix * Version bump --------- Co-authored-by: jdar <[email protected]> Co-authored-by: Kevin Dougan <[email protected]> Co-authored-by: Michael Buckley <[email protected]> Co-authored-by: TipzCM <[email protected]> Co-authored-by: James Agnew <[email protected]> Co-authored-by: another-luis <[email protected]> Co-authored-by: Rob Caruso <[email protected]> Co-authored-by: Rob Caruso <[email protected]> Co-authored-by: Yaling Pei <[email protected]> Co-authored-by: jmarchionatto <[email protected]> Co-authored-by: Nathan Doef <[email protected]> Co-authored-by: tadgh <[email protected]> Co-authored-by: Gary <[email protected]> Co-authored-by: volodymyr-korzh <[email protected]> Co-authored-by: Gary Graham <[email protected]>
1 parent c8002da commit d033929

File tree

75 files changed

+1495
-491
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

75 files changed

+1495
-491
lines changed

.github/workflows/codeql-analysis.yml

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -39,19 +39,16 @@ jobs:
3939

4040
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
4141
# If this step fails, then you should remove it and run the build manually (see below)
42-
- name: Autobuild
43-
uses: github/codeql-action/autobuild@v2
42+
# - name: Autobuild
43+
# uses: github/codeql-action/autobuild@v2
4444

4545
# ℹ️ Command-line programs to run using the OS shell.
4646
# 📚 https://git.io/JvXDl
4747

48-
# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
49-
# and modify them (or add more) to build your code if your project
50-
# uses a compiled language
51-
52-
#- run: |
53-
# make bootstrap
54-
# make release
48+
# ✏️ Manual build to avoid Maven wrapper issues with CodeQL autobuild
49+
- name: Build with Maven
50+
run: |
51+
mvn clean install -DskipTests -Dmaven.javadoc.skip=true -Dcheckstyle.skip=true -Dpmd.skip=true -Dspotbugs.skip=true -Denforcer.skip=true -Dlicense.skip=true -Drat.skip=true -Dspotless.check.skip=true
5552
5653
- name: Perform CodeQL Analysis
5754
uses: github/codeql-action/analyze@v2

hapi-fhir-base/src/main/java/ca/uhn/fhir/interceptor/api/Pointcut.java

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -608,8 +608,14 @@ public enum Pointcut implements IPointcut {
608608
* only be populated when operating in a RestfulServer implementation. It is provided as a convenience.
609609
* </li>
610610
* <li>
611-
* org.hl7.fhir.instance.model.api.IBaseOperationOutcome - The OperationOutcome resource that will be
612-
* returned.
611+
* org.hl7.fhir.instance.model.api.IBaseOperationOutcome - The OperationOutcome resource that will be returned.
612+
* </ul>
613+
* <li>
614+
* <code>ca.uhn.fhir.rest.api.server.ResponseDetails</code> - A wrapper around the Http Status Code
615+
* and resource that will be used in the response to the caller. The Pointcut may decide to change this value from the default
616+
* value of <b>500</b> representing an <b>Internal Server Error</b>.
617+
* The OperationOutcome is passed for modification directly, and as part of the ResponseDetails parameter. To replace the response
618+
* resource entirely, use ResponseDetails.setResponseResource().
613619
* </ul>
614620
* <p>
615621
* Hook methods must return <code>void</code>
@@ -619,7 +625,8 @@ public enum Pointcut implements IPointcut {
619625
void.class,
620626
"ca.uhn.fhir.rest.api.server.RequestDetails",
621627
"ca.uhn.fhir.rest.server.servlet.ServletRequestDetails",
622-
"org.hl7.fhir.instance.model.api.IBaseOperationOutcome"),
628+
"org.hl7.fhir.instance.model.api.IBaseOperationOutcome",
629+
"ca.uhn.fhir.rest.api.server.ResponseDetails"),
623630

624631
/**
625632
* <b>Server Hook:</b>

hapi-fhir-cli/hapi-fhir-cli-api/src/main/java/ca/uhn/fhir/cli/BaseCommand.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@
5555
import org.hl7.fhir.instance.model.api.IBaseBundle;
5656
import org.slf4j.Logger;
5757
import org.slf4j.LoggerFactory;
58-
import org.springframework.util.Base64Utils;
5958

6059
import java.io.BufferedReader;
6160
import java.io.Console;
@@ -68,6 +67,7 @@
6867
import java.io.InputStreamReader;
6968
import java.io.Reader;
7069
import java.util.Arrays;
70+
import java.util.Base64;
7171
import java.util.Collection;
7272
import java.util.Collections;
7373
import java.util.Date;
@@ -363,7 +363,7 @@ protected String getAndParseOptionBasicAuthHeader(CommandLine theCommandLine, St
363363
}
364364

365365
byte[] basicAuth = optionValue.getBytes();
366-
String base64EncodedBasicAuth = Base64Utils.encodeToString(basicAuth);
366+
String base64EncodedBasicAuth = Base64.getEncoder().encodeToString(basicAuth);
367367
basicAuthHeaderValue = Constants.HEADER_AUTHORIZATION_VALPREFIX_BASIC + base64EncodedBasicAuth;
368368
}
369369
return basicAuthHeaderValue;
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
type: fix
3+
issue: 7217
4+
title: "Previously, searches for non-partitionable resources (e.g. a Library) could be executed against a partition that
5+
is not the default partition. This has been corrected."
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
type: add
3+
issue: 7282
4+
title: "Added a new capability to the SERVER_OUTGOING_FAILURE_OPERATIONOUTCOME Pointcut so that an Interceptor can provide
5+
an HTTP Response Code and modify the OperationOutcome during Exception handling.
6+
Use the ResponseDetails parameter to change the status code instead of the current default of 500."
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
type: fix
3+
issue: 7296
4+
title: "Fixed an issue in bulk export with _includeHistory=true where history records failed to export for resources with client-assigned string IDs. History
5+
is now gathered using PIDs rather than forced IDs."
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
type: fix
3+
issue: 7324
4+
title: "Previously, the AuthorizationInterceptor did not properly authorize searches and reads
5+
for COLLECTION type Bundles when users had appropriate permissions. This has been fixed by
6+
adding BundleTypeEnum.COLLECTION to the set of standalone bundle resource types that are
7+
treated similarly to DOCUMENT and MESSAGE bundles for authorization purposes."
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
type: fix
3+
issue: 7328
4+
jira: SMILE-11137
5+
title: "Specifying an allowed spec of resourcetype:search would allow
6+
fetching the first page, but subsequent pages would fail.
7+
This has now been fixed.
8+
"
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
type: fix
3+
issue: 7330
4+
title: "When performing validation against a JPA server, Questionnaire URLs with versions were not handled correctly and
5+
couldn't be found by the validator. This has been corrected."
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
---
2+
type: fix
3+
issue: 7348
4+
title: "Previously, the `PatientIdPartitionInterceptor` allowed searching for Encounters by patient but not by subject. This has been corrected."

0 commit comments

Comments
 (0)