TRUNK-5870 Soundex and UUID extensions for PostgreSQL
dkayiwa <kayiwadaniel@gmail.com>
0b7c00d5eced4b3483ebdf0bbd69088093293b27
Fix: org.postgresql.util.PSQLException: ERROR: column "voided" is of type boolean but expression is of type integer
Himabindu T <tbindu@thoughtworks.com>
9f6847ed5525e83b4abf97f4315b54bbabe5461e
BAH-1947: Sort patient identifier in Lucene results (#4145)
Jonathan Leitschuh <jonathan.leitschuh@gmail.com>
8e435b3355733f767c89b8ce3409e17ab400f811
vuln-fix: Zip Slip Vulnerability (#4144)
This fixes a Zip-Slip vulnerability.
This change does one of two things. This change either
1. Inserts a guard to protect against Zip Slip.
OR
2. Replaces `dir.getCanonicalPath().startsWith(parent.getCanonicalPath())`, which is vulnerable to partial path traversal attacks, with the more secure `dir.getCanonicalFile().toPath().startsWith(parent.getCanonicalFile().toPath())`.
For number 2, consider `"/usr/outnot".startsWith("/usr/out")`.
The check is bypassed although `/outnot` is not under the `/out` directory.
It's important to understand that the terminating slash may be removed when using various `String` representations of the `File` object.
For example, on Linux, `println(new File("/var"))` will print `/var`, but `println(new File("/var", "/")` will print `/var/`;
however, `println(new File("/var", "/").getCanonicalPath())` will print `/var`.