Risto Lahtela
463b2edb02
Split more queries from DatabaseTest:
...
- WebUserQueriesTest for WebUser related queries
- More Session related queries
- Reduced checkstyle file length 1750 -> 1000
- Reduced checkstyle class fanout complexity 87 -> 60
- Reduced checkstyle cyclomatic complexity 18 -> 17
2020-03-14 12:40:27 +02:00
Risto Lahtela
fd6877dcad
Split Session related queries to own test class:
...
- Added a lot of new utility methods to RandomData
- Fixed a bug where duplicate PlayerKills were queried
This bug was discovered by accident when PlayerKill saving was randomized
for the tests.
- Testing constant REGISTER_TIME extracted
- String truncation constant extracted for KillsTable
This was causing some Session equals issues due to truncated weapon names
- Session now sorts PlayerKill list as this was assumed in some places.
2020-03-14 12:40:27 +02:00
Risto Lahtela
b49baa1275
Split Geolocation related queries to own test
2020-03-14 12:40:26 +02:00
Rsl1122
952cac1fbf
Split ActivityIndexQueries to own Test class
2020-03-14 12:40:25 +02:00
Risto Lahtela
ea209aceb3
Split database tests to 2 classes
2020-03-14 12:40:25 +02:00
Risto Lahtela
b339800650
Removed JUnit 4
2020-03-14 12:40:23 +02:00
Risto Lahtela
aca9d22e1f
Applied theme to pages properly
...
New utility UnaryChain:
- Allows writing nested modifications as a chain
2020-03-14 12:40:23 +02:00
Risto Lahtela
77d33c991a
Moved NotFoundException to API
2020-03-14 12:40:22 +02:00
Risto Lahtela
68be3117b1
Moved BadRequestException to API
...
Changed Bad Request response to JSON:
{
"status": 400,
"error": "message",
"target": "/requested/target"
}
2020-03-14 12:40:21 +02:00
Risto Lahtela
0a8b0e273c
Fixed checkstyle on newer JDKs
...
See https://github.com/gradle/gradle/issues/8286 for more information
2020-03-14 12:40:21 +02:00
Risto Lahtela
c204ce9b1b
Fixed some code smells & bugs
2020-03-14 12:40:19 +02:00
Rsl1122
f869de01b8
Applied Locale to Pages
2020-03-14 12:40:00 +02:00
Rsl1122
420e098d41
Moved ServerPage colors to the JSON responses
2020-03-14 12:39:57 +02:00
Rsl1122
a8126f6669
Rename VersionCheckSystem -> VersionChecker
2020-03-14 12:39:56 +02:00
Rsl1122
b5d07de18b
Removed unused code
2020-03-14 12:39:55 +02:00
Rsl1122
1ab5f3473d
Refactored JSONResolvers to use the new API
2020-03-14 12:39:53 +02:00
Rsl1122
2b1b459a37
Refactored static resource resolution
2020-03-14 12:39:32 +02:00
Rsl1122
77dbc74cc5
Refactored Root page redirect
...
- Fixed issue where response code was not set
- Fixed ResponseSender not setting values for response headers
- Changed ResponseResolver to mostly use Response instead of _old
2020-03-14 12:39:31 +02:00
Rsl1122
6ed6dd1f9f
Refactored Resolver to use new Request class
...
URIPath and URIQuery were not enough info on the Request
In addition the Request supports
- WebUser
- Request Headers
- Request method (GET, POST etc)
2020-03-14 12:39:30 +02:00
Rsl1122
4a1234f9b4
Refactored /server page to use ResolverService
2020-03-14 12:39:28 +02:00
Rsl1122
e997289a20
Refactored /players page to use ResolverService
...
- Changed all css, js and png requests on player page to use relative address.
- Changed the export accordingly
Deprecated a lot of the old response factory methods
2020-03-14 12:38:32 +02:00
Rsl1122
2914966650
Refactored /players page to use ResolverService
...
Deprecated a lot of the old response factory methods
2020-03-14 12:37:25 +02:00
Rsl1122
2736ba042a
Refactored /debug page to use ResolverService
...
Some issues that were identified:
- Going to /debug/ makes the style requests return the debug page content
because the /debug resolver is used
- In the future when / is to be resolved it might override a bunch of requests.
- Use of RequestTarget as incompatible with URIPath for some reason which lead to infinite
redirect, so the attempted change was reverted before this commit.
- Some Responses are using PlanFiles to obtain a html file (SRP violation)
Rest of the pages still use the old resolution that is now deprecated.
2020-03-14 12:37:23 +02:00
Rsl1122
9c74c40f72
Renamed some Service related classes
2020-03-14 12:35:06 +02:00
Rsl1122
96837dbcd0
Tested and fixed URLTarget behavior
...
Now properly omits previous segments and uses the same code for getPart.
You can read the javadocs or tests if you want to figure out the behavior
2020-03-14 12:35:05 +02:00
Rsl1122
7f0341087e
Implemented a CompositeResolver
...
Allows building tree-like structure for resolution
2020-03-14 12:35:05 +02:00
Rsl1122
e7da714f55
Initial draft of ResolverService
...
Affects issues:
- #1288
2020-03-14 12:35:05 +02:00
Risto Lahtela
62f3f46678
DB Clean now takes server UUID into account
...
Affects issues:
- Fixed #1341
2020-03-13 11:48:34 +02:00
Risto Lahtela
aef0aa5447
Player export now has per method path replacers
...
This should stop issues from concurrent calls to the exporter.
Affects issues:
- Fixed #1352
2020-03-13 11:39:54 +02:00
Risto Lahtela
154cfc4a2b
Added config setting to disable disk gathering
...
'Data_gathering.Disk_space' default 'true'
Also fixed all performance average calculations where -1
might be present
Affects issues:
- Close #1360
2020-03-13 10:28:47 +02:00
Risto Lahtela
d6e920c31d
Changed disk space to use space available to current user
2020-03-13 10:19:11 +02:00
dependabot-preview[bot]
0224571a50
Bump httpclient from 4.5.11 to 4.5.12 in /Plan
...
Bumps httpclient from 4.5.11 to 4.5.12.
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-03-09 05:53:06 +00:00
dependabot-preview[bot]
f67414de70
Bump geoip2 from 2.13.0 to 2.13.1 in /Plan
...
Bumps [geoip2](https://github.com/maxmind/GeoIP2-java ) from 2.13.0 to 2.13.1.
- [Release notes](https://github.com/maxmind/GeoIP2-java/releases )
- [Changelog](https://github.com/maxmind/GeoIP2-java/blob/master/CHANGELOG.md )
- [Commits](https://github.com/maxmind/GeoIP2-java/compare/v2.13.0...v2.13.1 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-03-04 05:30:46 +00:00
Rsl1122
36579cfcd0
Revert commit '4e8f509'
...
Affects issues:
- Fixed #1344
2020-02-29 10:00:03 +02:00
Risto Lahtela
e92cc6751a
Changed 'softdepend' to 'softDepends'
...
Affects issues:
- Fixed #1335
2020-02-28 20:51:38 +02:00
Risto Lahtela
66695beb86
Update README.md
2020-02-27 10:02:45 +02:00
dependabot-preview[bot]
240236224b
Bump mockito-core from 3.2.4 to 3.3.0 in /Plan
...
Bumps [mockito-core](https://github.com/mockito/mockito ) from 3.2.4 to 3.3.0.
- [Release notes](https://github.com/mockito/mockito/releases )
- [Commits](https://github.com/mockito/mockito/compare/v3.2.4...v3.3.0 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-02-24 05:46:30 +00:00
dependabot-preview[bot]
fe0b4847c8
Bump mockito-junit-jupiter from 3.2.4 to 3.3.0 in /Plan
...
Bumps [mockito-junit-jupiter](https://github.com/mockito/mockito ) from 3.2.4 to 3.3.0.
- [Release notes](https://github.com/mockito/mockito/releases )
- [Commits](https://github.com/mockito/mockito/compare/v3.2.4...v3.3.0 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-02-24 05:37:42 +00:00
Risto Lahtela
9fdcd59b62
Update versions.txt
2020-02-23 17:12:27 +02:00
Rsl1122
4e8f509ebc
Register extensions after all plugins finish starting up
...
Affects issues:
- Fixed #1335
2020-02-20 14:59:30 +02:00
Rsl1122
542ce5dc03
Replaced some '' with `` in js files
...
To reduce issues with ' characters in locale
Affects issues:
- Fixed #1334
2020-02-20 14:50:10 +02:00
Rsl1122
98a1a15837
Fixed error in BentoBox Extension
...
Affects issues:
- Fixed #1332
2020-02-20 14:41:33 +02:00
Rsl1122
03bb211c51
Truncate Extension String values
...
Fixed regression bug from refactoring
Affects issues:
- Fixed #1333 , #1338
2020-02-20 14:35:19 +02:00
Risto Lahtela
feb54c632e
Update versions.txt
2020-02-14 16:18:06 +02:00
Rsl1122
c566d65a8e
Added BentoBox to softdepends
2020-02-14 15:55:50 +02:00
Rsl1122
e52f082200
Patched incorrect register dates on Nukkit
...
Affects issues:
- #1320
2020-02-14 15:39:15 +02:00
Rsl1122
6d9ef8a3db
Patched incorrect register dates on Nukkit
...
Affects issues:
- #1320
2020-02-14 15:28:03 +02:00
Rsl1122
e4a7c083da
Updated a webserver error for missing cert
...
less spam
2020-02-14 15:08:06 +02:00
Rsl1122
d3fd60a92e
Updated VaultExtension
...
- Fixed economy call when player has no economy account
- Adds support for permission groups
Affects issues:
- Fixed #1331
2020-02-14 15:02:54 +02:00
dependabot-preview[bot]
d2c72050dd
Bump commons-compress from 1.19 to 1.20 in /Plan
...
Bumps commons-compress from 1.19 to 1.20.
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-02-10 05:38:13 +00:00