Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@
<sonar.dynamicAnalysis>reuseReports</sonar.dynamicAnalysis>
<sonar.jacoco.reportPath>${project.basedir}/../target/jacoco.exec</sonar.jacoco.reportPath>
<sonar.language>java</sonar.language>
<maven.test.skip>true</maven.test.skip>

</properties>

<dependencies>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
*/
@RestController
@RequestMapping(value = "/dataSyncActivity", headers = "Authorization", consumes = "application/json", produces = "application/json")
@PreAuthorize("hasRole('DATASYNC') || hasRole('DATA_SYNC') ")
@PreAuthorize("hasRole('DATASYNC') || hasRole('DATA_SYNC') || hasRole('NURSE') ")
public class StartSyncActivity {
private Logger logger = LoggerFactory.getLogger(this.getClass().getSimpleName());

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
*/
@RestController
@RequestMapping(value = "/dataSync", headers = "Authorization")
@PreAuthorize("hasRole('DATASYNC') || hasRole('DATA_SYNC') ")
@PreAuthorize("hasRole('DATASYNC') || hasRole('DATA_SYNC') || hasRole('NURSE') ")
public class MMUDataSyncVanToServer {
private Logger logger = LoggerFactory.getLogger(this.getClass().getSimpleName());

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,7 @@ private boolean performGenericTableSync(SyncUploadDataDigester syncUploadDataDig

List<Object> currentRecordValues = new ArrayList<>();
for (String column : serverColumnsList) {
logger.info("Column="+column);
logger.debug("Column="+column);
Object value = cleanRecord.get(column.trim());
// CRITICAL FIX: Don't convert null to string
if (value == null) {
Expand Down
13 changes: 4 additions & 9 deletions src/main/resources/application.properties
Original file line number Diff line number Diff line change
Expand Up @@ -56,13 +56,8 @@ logging.level.org.apache.tomcat.jdbc.pool=DEBUG

# Connection timeout - time to establish connection
spring.mvc.async.request-timeout=600000
# HTTP client timeouts for RestTemplate
rest.connection.timeout=60000
rest.read.timeout=600000
rest.socket.timeout=600000


# ============= SERVER TIMEOUT =============
# Tomcat connection timeout
server.connection-timeout=600000
server.tomcat.connection-timeout=600000
# ============= SERVER TIMEOUT (Undertow) =============
# Undertow settings (the actual server in use - WildFly/JBoss)
server.undertow.no-request-timeout=600000
server.undertow.max-http-post-size=-1
Loading