Skip to content
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

Merged
merged 14 commits into from
Jan 17, 2024

Conversation

wjonassen
Copy link
Collaborator

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:

  • Tests. Check all that apply:
    • Unit tests created or modified that run during ant test.
    • Integration tests created or modified that run during integration testing
      (Formerly called regression tests.)
    • Test procedure descriptions for manual testing
  • Was relevant documentation updated?
  • Were relevant config element (e.g. XML data) updated as appropriate

If you aren't sure leave unchecked and we will help guide you to want needs changing where.

Updates to get each sub project building and running properly, except for web-client-jetty.
gradle/libs.versions.toml Outdated Show resolved Hide resolved
opendcs-rest-api-jetty/build.gradle Outdated 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.
@rma-psmorris
Copy link
Collaborator

rma-psmorris commented Jan 8, 2024

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.
@wjonassen wjonassen marked this pull request as ready for review January 16, 2024 07:53
"""
}
}

task createLoggingPropertiesFile() {
Copy link
Contributor

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)
Copy link
Contributor

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)
Copy link
Contributor

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.

Copy link

Quality Gate Failed Quality Gate failed

Failed conditions

19.1% Coverage on New Code (required ≥ 80%)

See analysis details on SonarCloud

@adamkorynta adamkorynta linked an issue Jan 17, 2024 that may be closed by this pull request
@wjonassen wjonassen merged commit 687d018 into opendcs:main Jan 17, 2024
5 of 6 checks passed
@wjonassen wjonassen deleted the bugfix-lib-updates branch January 17, 2024 05:20
This was linked to issues Jan 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

Integration Testing Investigation Code Changes Repository Configuration: Dependency Management
4 participants