-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug Fixes on start script for rest api jetty. #85
Conversation
Updates to get each sub project building and running properly, except for web-client-jetty.
opendcs-rest-api-jetty/src/main/java/org/opendcs/odcsapi/jetty/Start.java
Show resolved
Hide resolved
Reducing servlet-api back to 3.1.0, updating build.gradle to create the bin directory if it does not exist, removing unnecessary comment in Start.java.
Work performed for: #38 |
…ts for the user to run these projects once it has been built. Also, the beginnings of using slf4j alongside logback.
Added logging using slf4j in Start.java. This includes parsing user entered logging.properties file, as well as having a default file. One security issue was fixed in Start.java as well, no more printStackTrace.
opendcs-rest-api-jetty/src/main/java/org/opendcs/odcsapi/jetty/Start.java
Outdated
Show resolved
Hide resolved
opendcs-web-client-jetty/src/main/java/org/opendcs/odcswebclient/jetty/Start.java
Outdated
Show resolved
Hide resolved
opendcs-rest-api-jetty/src/main/java/org/opendcs/odcsapi/jetty/Start.java
Outdated
Show resolved
Hide resolved
opendcs-web-client-jetty/src/main/java/org/opendcs/odcswebclient/jetty/Start.java
Show resolved
Hide resolved
opendcs-rest-api-jetty/build.gradle
Outdated
""" | ||
} | ||
} | ||
|
||
task createLoggingPropertiesFile() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this one shouldn't get created in gradle, it should be a resource file that gets copied over
{ | ||
DbInterface.setDatabaseType(dbType); | ||
} | ||
catch (Exception e) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we want to continue if this throws an exception? Also if dbType is not null we are double logging
@@ -166,31 +176,42 @@ else if ("siteNameTypePreference".equalsIgnoreCase(n)) | |||
{ | |||
afr.read(); | |||
} | |||
catch(Exception ex) | |||
catch(Exception e) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The previous logic exited (by throwing an exception), but now it will continue.
move logging.properties out of resources
…functionality into Start.java.
Quality Gate failedFailed conditions 19.1% Coverage on New Code (required ≥ 80%) |
Updates to get each sub project building and running properly, except for web-client-jetty.
Problem Description
Fixes #.
Describe the problem you are trying to solve.
Solution
Describe your solution.
how you tested the change
Describe what was done to test the change. This section can be left blank
if automated tests demonstrating usage are provided in the PR.
Where the following done:
(Formerly called regression tests.)
If you aren't sure leave unchecked and we will help guide you to want needs changing where.