Skip to content

Commit

Permalink
Fix bug in jwt correction and molecular data service
Browse files Browse the repository at this point in the history
  • Loading branch information
JREastonMarks committed Dec 14, 2023
1 parent 97b5677 commit ec2c1ad
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ public Iterable<GeneMolecularAlteration> getMolecularAlterations(String molecula
throws MolecularProfileNotFoundException {

validateMolecularProfile(molecularProfileId);
if ((entrezGeneIds == null || entrezGeneIds.isEmpty()) && projection == "SUMMARY") {
if ((entrezGeneIds == null || entrezGeneIds.isEmpty()) && projection.equals("SUMMARY")) {
return molecularDataRepository.getGeneMolecularAlterationsIterableFast(molecularProfileId);
}
return molecularDataRepository.getGeneMolecularAlterationsIterable(molecularProfileId, entrezGeneIds, projection);
Expand Down
12 changes: 3 additions & 9 deletions src/main/java/org/cbioportal/service/util/JwtUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -144,17 +144,11 @@ public static String createNewSecretKey() {
}

public static void main(String[] args) {
if (args.length < 1 || args.length > 1) {
usage();
}
if (args[0].equals("--make-key")) {
if (args.length == 1 && args[0].equals("--make-key")) {
System.out.println("Creating new secret key for JWTS token signing:");
System.out.println(createNewSecretKey());
} else {
System.out.println("usage: JwtUtils --make-key");
}
}

public static void usage() {
System.out.println("usage: JwtUtils --make-key");
}

}

0 comments on commit ec2c1ad

Please sign in to comment.