Commit Graph

4096 Commits

Author SHA1 Message Date
Risto Lahtela
e53b9f1602 Replace ErrorHandler usage with ErrorLogger
This was done to get deprecation to show up where context is not
given to the error logger.
2020-05-14 16:57:29 +03:00
Risto Lahtela
d09a4016d3 Rewrote error logging code
- The new error logging only creates one log per error and has context
with the error if specified.
- Any duplicate lines in error stacktrace are not taken into account
when hashing to avoid recursive function errors being logged in different
files

Affects issues:
- Close #1246
2020-05-14 12:18:12 +03:00
Risto Lahtela
5fc9980419
Spanish locale update by itaquito (#1447)
Co-authored-by: Itaquito <ichilaquiles@gmail.com>
2020-05-14 10:45:16 +03:00
Risto Lahtela
1a64550b5d
Update versions.txt 2020-05-13 17:38:42 +03:00
Risto Lahtela
b62bdf2ca3
Chinese locale update by shaokeyibb (#1441) 2020-05-13 10:54:51 +03:00
Saph1s
b304eed197
Update locale_RU.txt (#1442)
Minor changes for better understanding.
2020-05-13 10:54:11 +03:00
Risto Lahtela
2fca94d7bb Increased server list max-height to 85%
Affects issues:
- Possibly fixed #1433
2020-05-13 10:52:53 +03:00
Risto Lahtela
788e6dc195 HEAD response no longer sends response body
Affects issues:
- Fixed #1431
2020-05-13 10:48:03 +03:00
Risto Lahtela
bc7e84677f More socket leak prevention measures just in case 2020-05-13 10:38:06 +03:00
Risto Lahtela
1159f67f28 Decreased default log-file cleanup threshold 2020-05-13 10:32:36 +03:00
Risto Lahtela
235c3d9f54 Implemented cookie expiry in the backend. 2020-05-13 10:30:49 +03:00
Risto Lahtela
99406b961f Manually decode URI parameters
Affects issues:
- Fixed #1444
2020-05-13 10:23:11 +03:00
Risto Lahtela
84b5117e7b Fixed ping graph colors 2020-05-13 10:13:08 +03:00
dependabot-preview[bot]
73147b5f8a Bump HikariCP from 3.4.4 to 3.4.5 in /Plan
Bumps [HikariCP](https://github.com/brettwooldridge/HikariCP) from 3.4.4 to 3.4.5.
- [Release notes](https://github.com/brettwooldridge/HikariCP/releases)
- [Changelog](https://github.com/brettwooldridge/HikariCP/blob/dev/CHANGES)
- [Commits](https://github.com/brettwooldridge/HikariCP/compare/HikariCP-3.4.4...HikariCP-3.4.5)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-11 06:00:16 +00:00
Saph1s
0c7510b179 Russian locale by Saph1s (#1440) 2020-05-10 10:15:06 +03:00
Risto Lahtela
f89b4dcf28
Added MySQL to Github Actions (#1438)
- Uses MariaDB setup from https://firefart.at/post/using-mysql-service-with-github-actions/
- Adds optional MYSQL_PORT env variable to test setup
2020-05-09 10:16:05 +03:00
Risto Lahtela
08ea042144 Fixed checkstyle & activity index precision on SQLite 2020-05-09 09:38:43 +03:00
Risto Lahtela
b375661047 Fixed inconsistency issues related to activity index SQL
- Subquery was not returning rows for active playtime of 0, fix: COALESCE
- Union was removing duplicate 0s, replaced with UNION ALL
- Query did not use floating point for calculation

Affects issues:
- Fixed #1388
2020-05-08 20:53:52 +03:00
Risto Lahtela
6ee06d1cf8 Update activity index tests 2020-05-08 18:59:19 +03:00
dependabot-preview[bot]
5ad3511230 Bump HikariCP from 3.4.3 to 3.4.4 in /Plan
Bumps [HikariCP](https://github.com/brettwooldridge/HikariCP) from 3.4.3 to 3.4.4.
- [Release notes](https://github.com/brettwooldridge/HikariCP/releases)
- [Changelog](https://github.com/brettwooldridge/HikariCP/blob/dev/CHANGES)
- [Commits](https://github.com/brettwooldridge/HikariCP/compare/HikariCP-3.4.3...HikariCP-3.4.4)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-08 05:36:27 +00:00
yukieiji
043edcdfc0
Update locale_JA.txt (#1432)
Improved Japanese translation
2020-05-07 13:54:18 +03:00
Risto Lahtela
5b7687fbc8
Update versions.txt 2020-05-07 11:40:16 +03:00
Risto Lahtela
bf43c7922a Log out user when their user is deleted 2020-05-07 11:32:29 +03:00
Risto Lahtela
1bb3510e4c Fixed teal color not being applied to some table rows when highlighted 2020-05-07 11:31:29 +03:00
Risto Lahtela
a6b98e658e Fixed ${navPluginsTabs} getting replaced with a locale
- Makes plugin tabs accessible again when using locale
- Fixed players.html and error.html for the new sb-admin-2.js behavior
  (tabs need id)

Affects issues:
- Fixed #1409
2020-05-07 11:16:26 +03:00
Risto Lahtela
6b4db32244 Fixed issues in Litebans extension
- Fixed softdepend on Spigot
- Fixed #1355, did not prevent further mistakes like this.
2020-05-07 10:58:45 +03:00
Risto Lahtela
048fa559ff Fixed Average -> Median on player.html 2020-05-06 18:04:54 +03:00
Risto Lahtela
87e82720c2
Chinese locale update by qsefthuopq (#1428) 2020-05-06 17:13:58 +03:00
Risto Lahtela
c8b9a17b0c
Update versions.txt 2020-05-05 13:19:27 +03:00
Risto Lahtela
6da5650b98 Night mode improvements for login page 2020-05-05 11:30:07 +03:00
Risto Lahtela
16adccbba8 Accordions now striped, HighCharts background transparent 2020-05-05 10:57:41 +03:00
Risto Lahtela
8d6302e879 Accordions now striped, HighCharts background transparent 2020-05-05 10:54:52 +03:00
Risto Lahtela
95cd4acb7d Test case against ShutdownSave doing the bad save in #1424
- Rules out ShutdownSave code from the cause of the bug.
2020-05-05 10:23:53 +03:00
Risto Lahtela
b7e1261597 Added a special error case for Brave browser
Affects issues:
- Notifies of #1406 #1425
2020-05-05 10:05:58 +03:00
dependabot-preview[bot]
45d95ad2f3 Bump sqlite-jdbc from 3.30.1 to 3.31.1 in /Plan
Bumps [sqlite-jdbc](https://github.com/xerial/sqlite-jdbc) from 3.30.1 to 3.31.1.
- [Release notes](https://github.com/xerial/sqlite-jdbc/releases)
- [Changelog](https://github.com/xerial/sqlite-jdbc/blob/master/CHANGELOG)
- [Commits](https://github.com/xerial/sqlite-jdbc/compare/3.30.1...3.31.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-05 05:35:20 +00:00
Risto Lahtela
18e8ccca95 Test against one suspected case of #1424 2020-05-04 20:10:02 +03:00
Risto Lahtela
5570a2b938 /plan unregister command
- Fixed tests and other queries not using new web user format.
2020-05-04 11:16:07 +03:00
Risto Lahtela
ea2ae5d3e1 Linked web users to players or console
PageExtension API:
- Added WebUser#getUsername
- Changed WebUser#getName to return player's name or 'console'
- API version 5.1-R0.4
2020-05-03 23:26:01 +03:00
Risto Lahtela
2f282dc7cc Handled unhandled deadlock case for MySQL
Affects issues:
- Fixed #1383
2020-05-03 19:02:54 +03:00
Risto Lahtela
4fc565913c Changed player page session average to median
Affects issues:
- Close #1234
2020-05-03 18:49:20 +03:00
Risto Lahtela
a44c711ed8 Added Active & AFK time to /plan qinspect command
Affects issues:
- Close #1384
2020-05-03 18:37:26 +03:00
Risto Lahtela
dff96b1728 Implemented session playtime to Query API.
CommonQueries#fetchCurrentSessionPlaytime,
requires Capability#QUERY_API_ACTIVE_SESSION_PLAYTIME

API version increased to v5.1-R0.3

Affects issues:
- #1384
2020-05-03 18:32:55 +03:00
Risto Lahtela
4cca2251a8 Optimized query for activity group graphs
- Removed 5-way union
- Removed 2 nested queries
- Calculated groups with java code from the queried activity index values.

Affects issues:
- Improvement for #1329
2020-05-03 15:18:46 +03:00
Risto Lahtela
68fba31303 Gracefully fail on all buycraft api connection errors
Affects issues:
- Fixed #1410
2020-05-03 12:10:37 +03:00
Risto Lahtela
8f51992d70 Fixed plan_sessions_recent_peak_date placeholder
Affects issues:
- Fixed #1408
2020-05-03 12:04:53 +03:00
Risto Lahtela
fa8e8673b0 Cleaned up sb-admin-2.js code
- Removed redundant for-i loops for readability
- Renamed some variables to be easier to read.
- Removed jquery-easing
- Removed sb-admin-2.min.js (not up to date)
- Fixed an issue with network/server plugins-overview tab id with no data.
- Fixed an issue with player plugins tab id with no data.

Affects issues:
- Fixed #1409
2020-05-03 12:02:17 +03:00
Risto Lahtela
053e497fb5 Fixed build errors:
- Fixed PlaceholderAPI requirement for Bukkit
- Fixed Checkstyle errors
- Commented out some tests that were flaky
2020-05-03 10:12:11 +03:00
Risto Lahtela
3903a266a3
Added Login & Registration pages (#1422)
- Added login.html and register.html
- Added .bg-gradient
- Added logonsine.js for a decoration.
- Added /login, /register, /auth/login, /auth/logout and /auth/register endpoints
- Redirects to /login if cookie not present with auth enabled.
- Basic login functionality using cookies
- Registration page allows new kind of registration that doesn't log passwords on console.
- Fixes a bug with stippets that blocked any cross-plugin modifications (PageExtension API)
- Fixes a typo with css snippet code that made the css not apply (PageExtension API)
2020-05-02 23:31:29 +03:00
Risto Lahtela
3d85a23eb3 Added Creeperface01 as contributor 2020-05-01 10:52:54 +03:00
Risto Lahtela
24af980d39 More cleanup on placeholder classes 2020-05-01 10:49:55 +03:00