| Commit message (Collapse) | Author | Age |
| |
|
|
|
| |
Also add a test checking for superfluous brackets.
Fixes task-26032.
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
|
|
|
| |
Also use LocalDate for date parsing; turn tests into parametrized tests
and add tests for checking validity of parameters.
|
| | |
|
| |
|
|
| |
Replacing timestamp calculations and string comparison.
|
| |
|
|
| |
Implements #24580.
|
| |
|
|
| |
This should be a temporary measure to investigate task-24534.
|
| | |
|
| |
|
|
|
|
|
|
|
|
| |
A while ago, in 92cbc07, we took out ORDER BY statements, because we
didn't need them anymore in order to produce correct output. However,
this also made the technical details part less readable with entries
appearing in random order. Let's fix this by sorting results first by
timestamp and then by fingerprint.
Fixes #24327.
|
| |
|
|
| |
Implements #24292.
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
|
|
|
| |
The system properties to set are 'exonerator.db.user' and 'exonerator.db.pw',
e.g., '-Dexonerator.db.user=dummyuser -Dexonerator.db.pw=dummypassword'.
|
| | |
|
| |
|
|
|
|
|
| |
This is useful for local testing or different server setups.
The host URL and port can be set by system property 'exonerator.url', e.g.,
'-Dexonerator.url=http://127.0.0.1:8080'. This applies to both the full and
the dummy war.
|
| |
|
|
|
|
|
|
|
|
| |
The default port is 8080 and can be changed by setting system property
'exonerator.jetty.port', e.g. `-Dexonerator.jetty.port=8888`.
Also added ant task 'smoke-test-war' for creating a dummy war. This dummy
war file can be used for smoke-tests not depending on the database resource.
Implements task-24174.
|
| |
|
|
|
|
|
|
|
|
|
|
| |
The task 'war' creates a war-file for deployment in tomcat (as before),
the 'run' task is gone, and 'jar' creates an executable jar with main
class ExoneraTorDatabaseImporter as well as the source and javadoc jars.
Removed obsolete shell script.
Coverage is really low, but increasing it wasn't part of this task.
Implements task-21145.
|
| | |
|
| |
|
|
| |
Discovered after fixing #23844.
|
| | |
|
| | |
|
| |
|
|
|
|
|
|
|
| |
Turns out we shouldn't attempt to write a permanent link containing an
invalid parameter. In this case we wouldn't even write this permanent
link, because we'd have closed the output stream before. But we still
ran into the exception while trying.
Reported by ln5, analyzed by iwakeh. Resolves #23488.
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
|
|
|
| |
slf4j and logback were already used in ExoneraTor. This commit makes all
classes use slf4j and replaced j.u.l and System.{err,out} logging.
|
| |
|
|
| |
Also added test sources to checkstyle target.
|
| |
|
|
|
| |
This includes making utils methods static and also moving all
Gson/JSON related code into QueryResponse for better encapsulation.
|
| | |
|
| |
|
|
|
|
| |
We don't expect results to be in order, and taking out ORDER BY
statements means we don't need to worry about replacing numbers with
names for better readability.
|
| | |
|
| | |
|
| |
|
|
| |
Implements #16596.
|
| |
|
|
|
|
|
|
| |
This prepares splitting up ExoneraTor into front-end and back-end.
Note that some code duplication between ExoneraTorServlet and
QueryServlet was deemed acceptable, because ExoneraTorServlet will be
moved to metrics-web in the medium term anyway.
|
| |
|
|
|
|
| |
This is another prerequisite for changing queries towards making a
single query per request (#16596) and towards splitting up ExoneraTor
into front-end and back-end.
|
| |
|
|
|
|
|
|
|
| |
1: Parse the request.
2: Query the database.
3: Write the response.
This doesn't just clean up code, it's also a prerequisite for changing
queries towards making a single query per request (#16596).
|
| |
|
|
| |
Implements #22811.
|
| | |
|
| |
|
|
| |
Implements #22682.
|
| | |
|
| | |
|
| | |
|