-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Bump duracloud versions * Dependency updates * Spring Framework to 5 * Spring Data to 2.7 * Spring Security to 5 * Apache Tiles to 3 * Hibernate Validator to 5.4 * Various managed dependencies for resolving conflicts * Spring data api updates * Spring security api updates * Remove static init so the default strategy is used * When getting SecurityContext, use the strategy holder * Quality of life changes * Remove dead code * Fix missing arguments in logging statements * Unwrap object arrays in logging statements * Other minor api changes * Spring java config updates * Hibernate validator api updates * Tiles updates * Replaces xml config with java for easier migrations * Updates to Tiles API * Spring xml updates * Remove version where possible * Update security password encoder bean * Web xml updates * xmlns cleanup * add init param in order to remove servlet xml * Update spring framework and security versions * Bump aws sdk version; switch to aws sdk bom * Move exclusion for commons-logging * Update jsoup * Bump xstream * Bump spring versions to latest point release
- Loading branch information
1 parent
e7510d2
commit 70ccedc
Showing
46 changed files
with
376 additions
and
322 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,7 +15,7 @@ | |
|
||
import org.apache.commons.lang.StringUtils; | ||
import org.duracloud.account.util.EmailAddressesParser; | ||
import org.hibernate.validator.constraints.impl.EmailValidator; | ||
import org.hibernate.validator.internal.constraintvalidators.hv.EmailValidator; | ||
|
||
/** | ||
* @author "Daniel Bernstein ([email protected])" | ||
|
@@ -24,7 +24,7 @@ | |
public class EmailAddressesValidator | ||
implements ConstraintValidator<EmailAddressesConstraint, String> { | ||
private EmailAddressesConstraint constraintAnnotation; | ||
private static EmailValidator EMAIL_VALIDATOR = new EmailValidator(); | ||
private static final EmailValidator EMAIL_VALIDATOR = new EmailValidator(); | ||
|
||
/* | ||
* (non-Javadoc) | ||
|
@@ -39,7 +39,7 @@ public boolean isValid(String value, ConstraintValidatorContext context) { | |
for (String ea : emailAddresses) { | ||
if (!EMAIL_VALIDATOR.isValid(ea, null)) { | ||
if (badAddresses == null) { | ||
badAddresses = new LinkedList<String>(); | ||
badAddresses = new LinkedList<>(); | ||
} | ||
|
||
badAddresses.add(ea); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
53 changes: 53 additions & 0 deletions
53
account-management-app/src/main/java/org/duracloud/account/config/ViewConfig.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
/* | ||
* The contents of this file are subject to the license and copyright | ||
* detailed in the LICENSE and NOTICE files at the root of the source | ||
* tree and available online at | ||
* | ||
* http://duracloud.org/license/ | ||
*/ | ||
package org.duracloud.account.config; | ||
|
||
import org.springframework.context.annotation.Bean; | ||
import org.springframework.context.annotation.Configuration; | ||
import org.springframework.web.servlet.ViewResolver; | ||
import org.springframework.web.servlet.view.InternalResourceViewResolver; | ||
import org.springframework.web.servlet.view.JstlView; | ||
import org.springframework.web.servlet.view.UrlBasedViewResolver; | ||
import org.springframework.web.servlet.view.tiles3.SpringBeanPreparerFactory; | ||
import org.springframework.web.servlet.view.tiles3.TilesConfigurer; | ||
import org.springframework.web.servlet.view.tiles3.TilesView; | ||
|
||
/** | ||
* Configuration for Apache Tiles views | ||
* | ||
* @author mikejritter | ||
*/ | ||
@Configuration | ||
public class ViewConfig { | ||
|
||
@Bean | ||
public ViewResolver viewResolver() { | ||
final var resolver = new UrlBasedViewResolver(); | ||
resolver.setViewClass(TilesView.class); | ||
resolver.setOrder(1); | ||
return resolver; | ||
} | ||
|
||
@Bean | ||
public TilesConfigurer tilesConfigurer() { | ||
final var configurer = new TilesConfigurer(); | ||
configurer.setDefinitions("/WEB-INF/defs/general.xml", "/WEB-INF/defs/root.xml", "/WEB-INF/**/views.xml"); | ||
configurer.setPreparerFactoryClass(SpringBeanPreparerFactory.class); | ||
return configurer; | ||
} | ||
|
||
@Bean | ||
public InternalResourceViewResolver jspViewResolver() { | ||
final var resolver = new InternalResourceViewResolver(); | ||
resolver.setViewClass(JstlView.class); | ||
resolver.setPrefix("/WEB-INF/jspx/"); | ||
resolver.setSuffix(".jspx"); | ||
return resolver; | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 0 additions & 7 deletions
7
account-management-app/src/main/webapp/WEB-INF/ama-servlet.xml
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.