Commit Graph
100 Commits
Author SHA1 Message Date
ljacqu b7232d4508 Delete module code
- Remove code that has been unused for months. If modules come into discussion again it is better to start afresh once requirements are clearer
2016-04-09 14:55:39 +02:00
ljacqu e2b50b72a5 Get player via BukkitService; add unit tests for commands 2016-04-08 19:56:44 +02:00
ljacqu 83c02f487f Minor - improve previous commit 2016-04-07 17:48:33 +02:00
ljacqu b3a3843b60 Tools: doc templates - add support for iterating tags
- Support iterating tags
- Generate (update) all docs
2016-04-07 17:19:52 +02:00
ljacqu 9ea75c502c #567 Move email validation logic to validation service 2016-04-03 20:44:13 +02:00
ljacqu b6ccb3e632 #567 Add/change email should be aware of account threshold 2016-04-03 14:24:12 +02:00
ljacqu c079692f1d Minor - code householding (tests)
- Remove redundant uses of WrapperMock
- Use assertThat() from JUnit, not hamcrest
- Use hamcrest Matchers everywhere (not BaseMatchers etc.)
- Favor Mockito's argThat() over using ArgumentCaptor (more succinct)
- Delete useless test classes
2016-04-03 07:38:13 +02:00
ljacqu ba217a2595 Fix disable collisions setting 2016-04-03 07:26:23 +02:00
ljacqu 4f86604699 Check valid password via service
- Create validation service; fixes same code being duplicated in four places
   - Goal is to remove Utils class, by moving methods to validation service or other services
 - Remove unused properties in legacy settings
2016-04-02 22:44:20 +02:00
ljacqu 95f5951587 Change message file consistency test to show all errors 2016-03-29 19:08:38 +02:00
ljacqu 55c24b8e64 Test AntiBot + SwitchAntiBotCommand 2016-03-24 22:11:40 +01:00
ljacqu 351b24fd14 Change AntiBot from static to instance
- Convert static methods in AntiBot
- Create BukkitService for operations requiring calls to static methods on the Bukkit class
2016-03-24 20:58:51 +01:00
ljacqu 20ad253926 #547 Add javadoc + unit tests for ProcessService 2016-03-21 20:06:49 +01:00
ljacqu f448cb5f9c Merge pull request #120 from AuthMe-Team/603-improve-settings
603 improve settings
2016-03-16 21:16:28 +01:00
ljacqu 00c8fa3b53 Minor - remove todo comment
- Difference between the tests is actually explained in the other class' javadoc
2016-03-16 21:14:31 +01:00
ljacqu 453f61233c Fix unit tests for settings by providing custom setting migration services
- Allow to provide custom plugin folder to test constructor
- #603 test all NewSetting methods
2016-03-16 20:57:41 +01:00
ljacqu aef18a894a Move PropertyType functionality into Property class 2016-03-16 19:07:00 +01:00
ljacqu 89767b120c #603 Pass settings migration service as constructor parameter (work in progress) 2016-03-14 23:18:16 +01:00
ljacqu 4634213d75 #566 Test that all message files are valid YAML 2016-03-14 22:33:20 +01:00
ljacqu 2de3848cc3 #430 Remove PlayerAuth constructors in favor of builder
- Remove various PlayerAuth constructors
- Clean up FlatFile class
- Add some javadoc to PlayerAuth
2016-03-14 21:48:33 +01:00
ljacqu ef980bd654 #603 Delete CustomConfiguration class 2016-03-14 20:45:46 +01:00
ljacqu 3522a5b0c0 #603 Various setting improvements
- Pass PropertyMap to settings class from the outside
- Fix tests not being reentrant due to real file writes
- Improve Node (internal tree for PropertyMap) interface
- Add code coverage for private constructors
2016-03-14 20:32:32 +01:00
ljacqu 374e2ff292 Fix Management initialization 2016-03-13 11:41:19 +01:00
ljacqu 5d12ec8b56 Minor fixes + code householding
- Fix SpawnCommandTest testing FirstSpawnCommand
- Fix javadoc errors
- Map TODO's to issue numbers where applicable
- Fix trivial TODO's
2016-03-13 11:09:27 +01:00
ljacqu 00125487f1 Create tests for admin commands 2016-03-13 10:17:09 +01:00
ljacqu 4d45b18759 Create test for PluginHooks 2016-03-12 18:25:57 +01:00
ljacqu 8293766f98 #421 Create SpawnLoader
- Non-static service class which handles the spawnpoints used in AuthMe
2016-03-12 18:25:38 +01:00
ljacqu 8b27444a49 #421 Create PluginHooks
- PluginHooks manages third-party plugins and allows to perform actions and queries on them, instead of public fields on the AuthMe main class
2016-03-12 18:24:34 +01:00
ljacqu 45fd241517 Update settings in PasswordSecurity upon reload 2016-03-12 08:16:57 +01:00
ljacqu 3d46339a78 Merge branch 'master' of https://github.com/AuthMe-Team/AuthMeReloaded into fix-reload 2016-03-12 07:40:18 +01:00
ljacqu dfc713fde6 Reload only specific entities (work in progress)
- Remove attempt of reinitializing all components -> will lead to inconsistent states. Call reload on reloadable components instead
2016-03-09 18:39:04 +01:00
ljacqu 1003e0b62d Merge pull request #118 from AuthMe-Team/432-remove-public-ip-map
432 remove public ip map
2016-03-06 16:19:36 +01:00
ljacqu 654cebd5a7 Minor - rename LimboPlayer methods + code householding
- Rename *taskId methods to *task to reflect what they handle
- Remove usages of Wrapper where applicable
- Replace some uses of legacy Settings with NewSetting calls
2016-03-06 15:46:49 +01:00
ljacqu 3f4681c5ed Minor - fix merge conflicts 2016-03-06 14:45:28 +01:00
ljacqu 987c3fdb17 Merge branch 'master' of https://github.com/AuthMe-Team/AuthMeReloaded into 432-remove-public-ip-map 2016-03-06 14:42:32 +01:00
ljacqu 31bac6964f Various code householding
- Adjust javadoc
- Remove unused PlayerAuth constructor
- Replace legacy Settings with NewSetting calls
- Add process service to all (a)sync processes
- Change IP manager to only cache the calls to the VeryGames API
2016-03-06 14:42:19 +01:00
ljacqu 98df21d75a #575 Hotfix for reload support
- Create temporary method for reloading any stateful entities -> a lot of duplicated code, to be fixed soon within #432
- Remove unused methods
2016-03-05 22:30:35 +01:00
ljacqu 9a412fac05 Merge branch 'master' of https://github.com/AuthMe-Team/AuthMeReloaded into 432-remove-public-ip-map
Conflicts:
	src/main/java/fr/xephi/authme/process/register/AsyncRegister.java
2016-03-05 16:11:22 +01:00
ljacqu 19adcdcceb Move managers to the cache package
- Not entirely accurate name but not really worth to have a separate package for managers
2016-03-05 16:03:00 +01:00
ljacqu fd8db2cd51 Add test for IP manager + create captcha manager (still unused) 2016-03-05 15:39:14 +01:00
ljacqu aeb8307a46 #432 #547 Remove public IP cache map; make processes use ProcessService
- Create IP address manager for handling and caching IP addresses -> outside of the manager I do not want to care about caching details
- Make more processes use the ProcessService in favor of statically injected objects
2016-03-01 22:47:28 +01:00
ljacqu 86042070e9 #573 Remove exclusion for permission node check in test 2016-03-01 20:48:15 +01:00
ljacqu 5c43aea21f Merge branch '547-process-architecture' of https://github.com/AuthMe-Team/AuthMeReloaded into master2 2016-02-28 21:02:04 +01:00
ljacqu dede592c55 #547 add process service to AsyncJoin 2016-02-28 20:03:06 +01:00
ljacqu 7dd1d52893 Merge branch 'master' of https://github.com/AuthMe-Team/AuthMeReloaded into 547-process-architecture
Conflicts:
	src/main/java/fr/xephi/authme/settings/Settings.java
2016-02-28 09:08:35 +01:00
ljacqu 8832c1ac0f Reduce output of resource closing tests 2016-02-28 09:05:30 +01:00
ljacqu d664e7be26 #547 Create ProcessService
- Create ProcessService for common tasks within processes
- Integrate service into AsyncAddEmail
2016-02-27 23:15:31 +01:00
ljacqu 28108f00f1 #569 Update messages_de.yml by Platinteufel 2016-02-27 22:55:51 +01:00
ljacqu 63b31b0814 Create resource closing test
- Generic test for MySQL and SQLite checking that all generated (Prepared)Statement and ResultSet instances are closed afterwards
- Fix offending code for test to pass
2016-02-27 22:45:39 +01:00
ljacqu 5fce849ce7 Minor - Add datasource test, minor code householding 2016-02-27 21:11:35 +01:00
ljacqu b916c9b2be Fix javadoc warnings + #421 add javadoc for new API 2016-02-27 16:31:58 +01:00
ljacqu e79f325411 #443 Use correct message to ask to add email after login 2016-02-27 12:18:04 +01:00
ljacqu 1b818bd833 #457 Improve ForceFlatToSqlite conversion
- Change ForceFlatToSqlite converter to use a generic datasource destination (i.e. can be used for Flat2MySQL later)
- Add tests, including for FlatFile
- Check that user is not present in destination datasource before adding
- Persist last location from flatfile as well
2016-02-27 11:24:47 +01:00
ljacqu 27b1fa770f #392 Add datasource integration tests 2016-02-26 22:12:16 +01:00
ljacqu 69092e9a9c #392 Add datasource integration tests 2016-02-24 21:50:40 +01:00
ljacqu 95e3943be0 Datasource integration tests - fix split by newline
- Make split of SQL file aware that new lines may be \r\n
- Remove split of new lines in MySQL as it's not necessary
2016-02-24 20:38:05 +01:00
ljacqu 5e16ca1490 #392 Create integration test for MySQL
- Relocate tests to AbstractDataSourceIntegrationTest to reuse tests for SQLite and MySQL
- Add H2 driver and create test class for MySQL
2016-02-22 21:52:10 +01:00
ljacqu 44e2218ada Merge pull request #111 from AuthMe-Team/542-lastlogin-to-bigint
#542 Revert lastlogin column from timestamp to bigint
2016-02-22 21:42:40 +01:00
ljacqu b6384da540 #542 Revert lastlogin column from timestamp to bigint
- While the timestamp type better represents what we store, we use timestamps internally in AuthMe and had to convert between the timestamp type to a long when communicating with a MySQL database. This ends up being inconsistent with SQLite, which does not support the storage of timestamps and an additional burden as the 0000-00-00 00:00:00 timestamp has a special meaning in MySQL we must otherwise check for before fetching values.
2016-02-22 21:04:01 +01:00
ljacqu fe057f367b Merge pull request #110 from AuthMe-Team/roinuj
Make "use other case" translatable (adjustment)
2016-02-22 20:37:43 +01:00
ljacqu 32159861d3 Update validation of message resources 2016-02-22 20:36:17 +01:00
ljacqu 72cf294056 Allow retrieval of messages with tag replacement 2016-02-22 20:32:44 +01:00
ljacqu e8f518711c #442 Fix email presence check being case-insensitive
- Add integration tests
- Change DataSource interface to return the number of accounts only, since that's all we require
2016-02-21 21:38:29 +01:00
ljacqu 203e954eea Minor test adjustments 2016-02-21 20:23:36 +01:00
ljacqu e8d627c0e1 #392 Start integration test for SQLite 2016-02-21 10:46:13 +01:00
ljacqu dfa3921740 Close resources in MySQL (incomplete)
- Connection, (Prepared)Statement and ResultSet all should be closed. try-with-resources is the best way as it's less verbose than a finally block and it's better than putting close() calls inside the try{} as that will not be run if an exception happens beforehand
2016-02-20 23:09:48 +01:00
ljacqu 511f961d29 #534 Get default messages from the JAR's messages_en.yml
- Using new File(class.getResource(path)) apparently is the wrong approach for in-JAR files
2016-02-20 12:12:24 +01:00
ljacqu 8511a257ed #494 Fix conversion plaintext to SHA256
- Make sure database is set up before attempting to perform the migration
2016-02-20 11:16:25 +01:00
ljacqu fd89915071 #517 Display welcome message for all logins 2016-02-20 08:23:02 +01:00
ljacqu 614d544edf #534 Send error if name is restricted (this time for real) 2016-02-20 07:26:58 +01:00
ljacqu 374113ff01 #534 Send error if name is restricted 2016-02-20 07:25:14 +01:00
ljacqu 90e0dc1875 Various code householding
- Remove unused API on DataSource
- Add some sensible javadoc to DataSource
- Minor code simplification
2016-02-19 23:19:38 +01:00
ljacqu 6f694cf818 #527 Persist email after changing it 2016-02-19 21:48:51 +01:00
ljacqu 964abdc0c5 Update add email tests (#527) 2016-02-19 19:26:16 +01:00
ljacqu 5795b9d8fd #533 Add integration sample for BCrypt 2016-02-19 19:14:12 +01:00
ljacqu ecc3048f52 Merge master into 'move-convert-command' 2016-02-14 22:32:12 +01:00
ljacqu f5b5595f08 #525 Make "not owner" kick reason translatable 2016-02-14 21:46:47 +01:00
ljacqu 7f3246e416 #519 #515 #431 Tool task to update all docs; relocate to root/docs
- Move docs from src/tools to a root subfolder
- Add tag for displaying a "generated page" footer
- Create task to run all doc tasks
- Remove map builder in favor of Guava's
2016-02-14 21:43:01 +01:00
ljacqu 8c6db4a2c9 Improve logging in SendMailSSL
- for #522
2016-02-14 18:04:10 +01:00
ljacqu 2c9cb6d99a #521 #514 Update zhhk file and add TODO comments for missing messages
TODO comments added automatically by ToolTask verifyMessages
2016-02-14 17:49:58 +01:00
ljacqu dbd896b462 Improving logging in SQLite 2016-02-14 17:49:56 +01:00
ljacqu 2dbcd50eea Merge pull request #100 from AuthMe-Team/415-perms-rework_NEW
#415 Move some permission nodes out of authme.player.*
2016-02-14 16:36:43 +01:00
ljacqu d198eca1b6 #514 Messages tool adds missing messages as comments
- Add the English text as a TODO comment for all missing messages in the translations
- Add a TODO comment for missing tags
- Change the task and messages verifier to use YamlConfiguration
2016-02-14 16:31:35 +01:00
ljacqu b3734f4010 #415 Move some permission nodes out of authme.player.*
- Move certain permission nodes outside of the authme.player branch
- Update classes / permissions list
- Remove wildcard node from code completely (since not used)
2016-02-14 14:15:02 +01:00
ljacqu 5dc1598f6e Wrap column names into class
- Load column names for data sources centrally
- Remove no longer used settings in legacy Settings
2016-02-14 13:25:16 +01:00
ljacqu 6e2528278a #477 Make updateSession() timestamp-aware; fetch timestamp safely 2016-02-14 09:51:13 +01:00
ljacqu 7b26dd25a0 Merge master into 477-lastlogin-timestamp
Conflicts:
    - Settings.java
2016-02-13 20:03:22 +01:00
ljacqu 432ed4620c Fix AuthMe thinking config needs a migration
- Old, deprecated property now exists again -> stop checking for its presence as a reason for migration
- Create test for SettingsMigrationService to detect such issues in the future
2016-02-13 12:35:33 +01:00
ljacqu 84741e2882 Minor - replace tabs to spaces in php integration sample 2016-02-13 11:00:56 +01:00
ljacqu cae9fc70fe #518 Create injection-safe website integration and demo form 2016-02-13 10:56:15 +01:00
ljacqu fcfe26f34d Minor - fix incorrect javadoc and add unit test for Messages#reload 2016-02-12 23:38:00 +01:00
ljacqu 57da572b23 #421 Clean up events javadoc and interface
- Add proper javadoc to all events
- Use proper handling of the Eventlist in all events: each event has its own EventList and its static method, as specified by Bukkit's Event class
- Add common supertype to all AuthMe events
- Remove unused events
- Remove unused methods (setters to fields that we ignore entirely)
2016-02-12 23:31:55 +01:00
ljacqu ea93a336c3 Minor - fix Javadoc warnings 2016-02-11 23:09:23 +01:00
ljacqu cf52fdac1c #482 Remove English messages in translation files
- Messages now default to the one in messages_en.yml if not present in the translation file
2016-02-11 22:48:34 +01:00
ljacqu 9b1d524bdc Make SettingsMigrationService run all migrations 2016-02-11 22:21:06 +01:00
ljacqu e04ca3c4ae #512 Fix inconsistent config names
- Harmonize configuration paths in code and in config.yml (fixes failing unit test)
- Add way to load Property objects in legacy Settings
- Create migration for delayJoinLeaveMessages to separate delayJoin..., removeJoin... and removeLeave...
2016-02-11 22:17:43 +01:00
ljacqu 39168bc818 #482 Provide better default messages and merge MessagesManager
- Return message from the JAR's messages_en.yml file instead of an unusable error for the end user
- Merge MessagesManager into Messages
2016-02-11 21:27:16 +01:00
ljacqu 806fd4731e Update readme to refer to AuthMe-Team/AuthMeReloaded
- Updated various "build badges" to display data for the AuthMe repository of AuthMe-Team
- Move Gource video a little down
- Mention support of IPB4 in readme and config
2016-02-10 21:52:11 +01:00
ljacqu b8e2f5fe1d Use RandomString for IPB4 implementation; minor documentation
- Improve RandomString and create new generateLowerUpper method
- Add documentation to the IPB4 class to explain why the salt is stored twice
2016-02-10 21:16:12 +01:00
ljacqu a16f6ae2d0 Add IPB4 to hash algorithm enum 2016-02-10 18:28:04 +01:00