Skip to content

Commit a10856e

Browse files
tadghdotasekTynerGjssteve-corbett-smilecdrfil512
authored
GM1 Mergeback (#5203)
* version bump * Bump to core release 6.0.22 (#5028) * Bump to core release 6.0.16 * Bump to core version 6.0.20 * Fix errors thrown as a result of VersionSpecificWorkerContextWrapper * Bump to core 6.0.22 * Resolve 5126 hfj res ver prov might cause migration error on db that automatically indexes the primary key (#5127) * dropped old index FK_RESVERPROV_RES_PID on RES_PID column before adding IDX_RESVERPROV_RES_PID * added changelog * changed to valid version number * changed to valid version number, need to be ordered by version number... * 5123 - Use DEFAULT partition for server-based requests if none specified (#5124) 5123 - Use DEFAULT partition for server-based requests if none specified * consent remove all suppresses next link in bundle (#5119) * added FIXME with source of issue * added FIXME with root cause * added FIXME with root cause * Providing solution to the issue and removing fixmes. * Providing changelog * auto-formatting. * Adding new test. * Adding a new test for standard paging * let's try this and see if it works...? * fix tests * cleanup to trigger a new run * fixing tests --------- Co-authored-by: Ken Stevens <[email protected]> Co-authored-by: peartree <[email protected]> * 5117 MDM Score for No Match Fields Should Not Be Included in Total Score (#5118) * fix, test, changelog * fix, test, changelog --------- Co-authored-by: justindar <[email protected]> * Rename file to force IT mode * _source search parameter needs to support modifiers (#5095) _source search parameter needs to support modifiers - added support form :contains, :missing, :above modifiers * Fix HFQL docs (#5151) * Expunge operation on codesystem may throw 500 internal error with precondition fail message. (#5156) * Initial failing test. * Solution with changelog. * fixing format. * Addressing comment from code review. * fixing failing test. --------- Co-authored-by: peartree <[email protected]> * documentation update (#5154) Co-authored-by: leif stawnyczy <[email protected]> * Fix hsql jdbc driver deps (#5168) Avoid non-included classes in jdbc driver dependencies. * $delete-expunge over 10k resources will now delete all resources (#5144) * First commit with very rough fix and unit test. * Refinements to ResourceIdListStep and Batch2DaoSvcImpl. Make LoadIdsStepTest pass. Enhance Batch2DaoSvcImplTest. * Spotless * Fix checkstyle errors. * Fix test failures. * Minor refactoring. New unit test. Finalize changelist. * Spotless fix. * Delete now useless code from unit test. * Delete more useless code. * Test pre-commit hook * More spotless fixes. * Address most code review feedback. * Remove use of pageSize parameter and see if this breaks the pipeline. * Remove use of pageSize parameter and see if this breaks the pipeline. * Fix the noUrl case by passing an unlimited Pegeable instead. Effectively stop using page size for most databases. * Deprecate the old method and have it call the new one by default. * updating documentation (#5170) Co-authored-by: leif stawnyczy <[email protected]> * _source search parameter modifiers for Subscription matching (#5159) * _source search parameter modifiers for Subscription matching - test, implementation and changelog * Removal of meta tags during updates do not trigger subscription (#5181) * Initial failing test. * adding solution; fixing documentation; * spotless apply * adding changelog * modifying current test --------- Co-authored-by: peartree <[email protected]> * Issue 5173 get gateway everything doesnt return all patients (#5174) * Failing test * Also set offset and count in base DAO override * Changelog * Fix for specific case where count has been set in parameters * spotless * Improve checks --------- Co-authored-by: juan.marchionatto <[email protected]> * Do not 500 and continue IG ingestion when different IGs try to save different ValueSets with colliding FHIR IDs (#5175) * First commit with failing unit test and small tweaks. * Swallow resource version exceptions from colliding ValueSet OIDs and log a descriptive error instead. Add more detailed unit testing. * Tweaks to logic and update the changelog. Reverse all changes to TermReadSvcImpl. * Revert PackageResourceParsingSvc to release branch baseline. * Accept code reviewer suggestion to change changelog description. Co-authored-by: michaelabuckley <[email protected]> --------- Co-authored-by: michaelabuckley <[email protected]> * Fix link * Remove target slf4j version * dont use new API for a bit (#5191) * Return DropIdGeneratorTask from the Builder to permit clients to mutate the (#5193) DropIdGeneratorTask. * Dqm performance bug update and provider loader fix (#5180) * update tests, move properties, update operation loader * update wip * remove test * fixing tests, adding config * update config and provider loader * fix bundles * fix cache settings on tests * version bump and change log * version bump * fix formatting * CVE-2022-45868 * wip cve change * cve h2 add back in --------- Co-authored-by: justin.mckelvy <[email protected]> * bulkExportReuse with POST and GET (#5161) * string manipulation * Code to ensure bulkExportReuse works with POST and GET requests * Added formatting changes * Fixed tests that were not working * Formatting * Code clean up * fixing test failures * fixing test failures * Removed arrOfParams to now utilize ObjectMapper * Removing stack trace and adding an exception * Fixed test issue * formatting * formatting * Resolving code review comments * Reduce size of subscription max results (#5194) * Reduce MAX_SUBSCRIPTION_RESULTS to 10000 * Add changelog * 5037 goldenresource remains when target resource deleted (#5038) * draft test and fix * remove unused fields * remove unused fields * remove unused fields * draft test + solution for possible match case * combine sql statement + more error checking * add test case for possible duplicate * add config for autodeleting grs * refactoring, adding support for mongo, docs * refactoring + fixing mongo queries * add changelogs * fix both way link removal * clean up test comments * rename method * remove unnecessary bean * merge master/resolve conflicts * mvn spotless * address comment * changes to avoid version bumping * spotless * change error code --------- Co-authored-by: justindar <[email protected]> * dont use new API for a bit (#5190) * licenses * wip * Fix API usage * wip * Version bump --------- Co-authored-by: dotasek <[email protected]> Co-authored-by: TynerGjs <[email protected]> Co-authored-by: Steve Corbett <[email protected]> Co-authored-by: Ken Stevens <[email protected]> Co-authored-by: Ken Stevens <[email protected]> Co-authored-by: peartree <[email protected]> Co-authored-by: jdar8 <[email protected]> Co-authored-by: justindar <[email protected]> Co-authored-by: volodymyr-korzh <[email protected]> Co-authored-by: Nathan Doef <[email protected]> Co-authored-by: Etienne Poirier <[email protected]> Co-authored-by: TipzCM <[email protected]> Co-authored-by: leif stawnyczy <[email protected]> Co-authored-by: michaelabuckley <[email protected]> Co-authored-by: Luke deGruchy <[email protected]> Co-authored-by: jmarchionatto <[email protected]> Co-authored-by: juan.marchionatto <[email protected]> Co-authored-by: Justin McKelvy <[email protected]> Co-authored-by: justin.mckelvy <[email protected]> Co-authored-by: LalithE <[email protected]>
1 parent f2087d2 commit a10856e

File tree

203 files changed

+3880
-2279
lines changed

Some content is hidden

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

203 files changed

+3880
-2279
lines changed

hapi-deployable-pom/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<parent>
66
<groupId>ca.uhn.hapi.fhir</groupId>
77
<artifactId>hapi-fhir</artifactId>
8-
<version>6.9.2-SNAPSHOT</version>
8+
<version>6.9.3-SNAPSHOT</version>
99

1010
<relativePath>../pom.xml</relativePath>
1111
</parent>

hapi-fhir-android/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<parent>
66
<groupId>ca.uhn.hapi.fhir</groupId>
77
<artifactId>hapi-deployable-pom</artifactId>
8-
<version>6.9.2-SNAPSHOT</version>
8+
<version>6.9.3-SNAPSHOT</version>
99

1010
<relativePath>../hapi-deployable-pom/pom.xml</relativePath>
1111
</parent>

hapi-fhir-base/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<parent>
66
<groupId>ca.uhn.hapi.fhir</groupId>
77
<artifactId>hapi-deployable-pom</artifactId>
8-
<version>6.9.2-SNAPSHOT</version>
8+
<version>6.9.3-SNAPSHOT</version>
99

1010
<relativePath>../hapi-deployable-pom/pom.xml</relativePath>
1111
</parent>

hapi-fhir-base/src/main/java/ca/uhn/fhir/rest/param/UriParamQualifierEnum.java

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,16 @@ public enum UriParamQualifierEnum {
4848
* Value <code>:below</code>
4949
* </p>
5050
*/
51-
BELOW(":below");
51+
BELOW(":below"),
52+
53+
/**
54+
* The contains modifier allows clients to indicate that a supplied URI input should be matched
55+
* as a case-insensitive and combining-character insensitive match anywhere in the target URI.
56+
* <p>
57+
* Value <code>:contains</code>
58+
* </p>
59+
*/
60+
CONTAINS(":contains");
5261

5362
private static final Map<String, UriParamQualifierEnum> KEY_TO_VALUE;
5463

hapi-fhir-base/src/main/java/ca/uhn/fhir/util/UrlUtil.java

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@
4040
import java.net.URISyntaxException;
4141
import java.net.URL;
4242
import java.net.URLDecoder;
43+
import java.nio.file.Path;
44+
import java.nio.file.Paths;
4345
import java.util.ArrayList;
4446
import java.util.Collection;
4547
import java.util.HashMap;
@@ -602,6 +604,39 @@ public static List<NameValuePair> translateMatchUrl(String theMatchUrl) {
602604
return parameters;
603605
}
604606

607+
/**
608+
* Creates list of sub URIs candidates for search with :above modifier
609+
* Example input: http://[host]/[pathPart1]/[pathPart2]
610+
* Example output: http://[host], http://[host]/[pathPart1], http://[host]/[pathPart1]/[pathPart2]
611+
*
612+
* @param theUri String URI parameter
613+
* @return List of URI candidates
614+
*/
615+
public static List<String> getAboveUriCandidates(String theUri) {
616+
try {
617+
URI uri = new URI(theUri);
618+
if (uri.getScheme() == null || uri.getHost() == null) {
619+
throwInvalidRequestExceptionForNotValidUri(theUri, null);
620+
}
621+
} catch (URISyntaxException theCause) {
622+
throwInvalidRequestExceptionForNotValidUri(theUri, theCause);
623+
}
624+
625+
List<String> candidates = new ArrayList<>();
626+
Path path = Paths.get(theUri);
627+
candidates.add(path.toString().replace(":/", "://"));
628+
while (path.getParent() != null && path.getParent().toString().contains("/")) {
629+
candidates.add(path.getParent().toString().replace(":/", "://"));
630+
path = path.getParent();
631+
}
632+
return candidates;
633+
}
634+
635+
private static void throwInvalidRequestExceptionForNotValidUri(String theUri, Exception theCause) {
636+
throw new InvalidRequestException(
637+
Msg.code(2419) + String.format("Provided URI is not valid: %s", theUri), theCause);
638+
}
639+
605640
public static class UrlParts {
606641
private String myParams;
607642
private String myResourceId;

hapi-fhir-bom/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@
44
<modelVersion>4.0.0</modelVersion>
55
<groupId>ca.uhn.hapi.fhir</groupId>
66
<artifactId>hapi-fhir-bom</artifactId>
7-
<version>6.9.2-SNAPSHOT</version>
7+
<version>6.9.3-SNAPSHOT</version>
88

99
<packaging>pom</packaging>
1010
<name>HAPI FHIR BOM</name>
1111

1212
<parent>
1313
<groupId>ca.uhn.hapi.fhir</groupId>
1414
<artifactId>hapi-deployable-pom</artifactId>
15-
<version>6.9.2-SNAPSHOT</version>
15+
<version>6.9.3-SNAPSHOT</version>
1616

1717
<relativePath>../hapi-deployable-pom/pom.xml</relativePath>
1818
</parent>

hapi-fhir-checkstyle/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<parent>
66
<groupId>ca.uhn.hapi.fhir</groupId>
77
<artifactId>hapi-fhir</artifactId>
8-
<version>6.9.2-SNAPSHOT</version>
8+
<version>6.9.3-SNAPSHOT</version>
99

1010
<relativePath>../pom.xml</relativePath>
1111
</parent>

hapi-fhir-cli/hapi-fhir-cli-api/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<parent>
55
<groupId>ca.uhn.hapi.fhir</groupId>
66
<artifactId>hapi-deployable-pom</artifactId>
7-
<version>6.9.2-SNAPSHOT</version>
7+
<version>6.9.3-SNAPSHOT</version>
88

99
<relativePath>../../hapi-deployable-pom/pom.xml</relativePath>
1010
</parent>

hapi-fhir-cli/hapi-fhir-cli-app/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<parent>
77
<groupId>ca.uhn.hapi.fhir</groupId>
88
<artifactId>hapi-fhir-cli</artifactId>
9-
<version>6.9.2-SNAPSHOT</version>
9+
<version>6.9.3-SNAPSHOT</version>
1010

1111
<relativePath>../pom.xml</relativePath>
1212
</parent>

hapi-fhir-cli/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<parent>
66
<groupId>ca.uhn.hapi.fhir</groupId>
77
<artifactId>hapi-fhir</artifactId>
8-
<version>6.9.2-SNAPSHOT</version>
8+
<version>6.9.3-SNAPSHOT</version>
99

1010
<relativePath>../pom.xml</relativePath>
1111
</parent>

0 commit comments

Comments
 (0)