Commit Graph

141 Commits

Author SHA1 Message Date
c46faccb73 Add strong salted password hashing using PBKDF2 2020-07-11 09:25:42 +02:00
4a7ad7e1fd Extracted into local variable
Co-authored-by: delvh <dev.lh@web.de>
2020-07-08 13:55:19 +02:00
71c7d6344b Adjusted Query and implemented pending groupMessageStatusChange proc*ing 2020-07-08 13:53:10 +02:00
23e07a6e91 Fix some inconsistencies 2020-07-06 16:14:14 +02:00
fc20f3688f Filter out subclasses in ObjectMessageProcessor 2020-07-06 12:34:13 +02:00
5f595e640a Active Code Review 2020-07-06 11:40:13 +02:00
ead5673d6d Apply suggestions from code review (not everything)
Co-authored-by: CyB3RC0nN0R <CyB3RC0nN0R@users.noreply.github.com>
2020-07-05 16:53:27 +02:00
450714608b Reimplemented RECEIVED update sending to sender 2020-07-05 13:28:48 +02:00
7fb5a5618e Merge branch 'develop' into f/groupMessages 2020-07-04 14:23:12 +00:00
4f7eff74e3 Added pending MessageStatusChanges READ to Query 2020-07-04 15:59:48 +02:00
8f71edc7cf Implemented Date name change 2020-07-04 09:31:15 +02:00
59124f2319 Implemented sending RECEIVED GroupMessageStatusChanges
If a member logs in and receives pending groupMessages, there are now
groupMessageStatusChanges sent to all other members, that are online and
have already received the groupMessage.
2020-07-03 17:46:37 +02:00
3c8a5c7abb Implemented GroupMessageStatusChange handling (not with pending yet) 2020-07-03 16:25:49 +02:00
495f5a67df Added capability to prevent the normal stop command of the server 2020-07-02 20:01:28 +02:00
dfe2ea0bbd Add Attachment Support 2020-07-02 14:54:58 +02:00
5e46ba88c9 Implemented PendingGroupMessageStatusChanges for RECEIVED 2020-06-28 16:11:47 +02:00
5d0cc7e84c Fixed error regarding notSerializable exception 2020-06-28 10:33:06 +02:00
4f3a249404 Merge branch 'develop' into f/refactored_package 2020-06-28 09:54:45 +02:00
e7315c900c Renamed wrongly named package (enovy.* to envoy.*) 2020-06-28 09:49:51 +02:00
a34e90adb8 Implemented functionality regarding pending groupMessages (unfinished)
(This was implemented some weeks ago but never pushed (made some
revision))
2020-06-27 21:58:53 +02:00
be40f24904 Merge branch 'develop' into f/groupMessages
Conflicts:
	src/main/java/envoy/server/processors/GroupMessageProcessor.java
	src/main/java/envoy/server/processors/MessageProcessor.java
2020-06-27 11:32:08 +02:00
cd48ce6755 Validate user name during registration 2020-06-26 22:04:40 +02:00
22fd99bd70 Fix notifying the sender about a message delivery
This addresses bugs in two instances of delivery notification:
* the sender is online -> no event was sent
* the sender comes online later -> wrong status (SENT) was sent
2020-06-25 17:00:41 +02:00
9b8742e6b9 Fix Javadoc author
Co-authored-by: delvh <dev.lh@web.de>
2020-06-23 16:02:12 +00:00
23de611355 Apply suggestions from code review 2020-06-23 09:12:15 +02:00
d8d0d2f66a Add simple version comparison algorithm 2020-06-20 14:38:06 +02:00
e1775245b0 Shorten event names, refactor, prepare compatibility verification 2020-06-20 13:42:42 +02:00
6b34bf9edc Fix JPA validator warnings with explicit column names
Due to a bug in the JPA validator columns with camel case names are
flagged as missing (probably due to the case-insensitive nature of SQL).
This has been circumvented by assigning every column with a camel case
name a new name with underscores.

The inheritance strategy of the Contacts class has been changed to
single table for performance reasons.
2020-06-15 11:59:48 +02:00
a1cfd728a5 Some refactorings based on suggestions from @delvh 2020-06-14 16:40:51 +02:00
f1c49f0b95 Apply suggestions from code review
Co-authored-by: delvh <dev.lh@web.de>
2020-06-14 16:30:46 +02:00
fbed3072ee GroupMessages get processed the right way now 2020-06-12 23:53:40 +02:00
a9de00371d Change default logging level to finest, rename a class 2020-06-12 10:56:02 +02:00
5ef46d80c3 Implemented suggestions from code review 2020-06-11 15:06:06 +02:00
638770c75f Added creationDate variable in Contact & added pendingGroups query 2020-06-11 13:22:48 +02:00
1fffb12423 Logging envoy messages only 2020-06-11 12:08:51 +02:00
bf60e9675d Replaces print statements by logger calls
Closes #34
2020-06-11 12:06:06 +02:00
2f0fccb536 Use EnvoyLog for all packages 2020-06-11 11:45:17 +02:00
744f55de58 Resolved JPA validation errors
These were partially caused by an old Hibernate validator which has now
been replaced by the EclipseLink validator for the current JPA standard.
Another error was caused by the use of non-standard JPQL in the user
search query which has now been replaced by a standardized one.
2020-06-11 11:17:22 +02:00
135e9b7f76 Fixed issue regarding the sender of a message not getting an MSCEvent
Added messageStatusChangeEvent sending to online sender if recipient
logs in and sender is online at the same time
2020-06-11 10:44:49 +02:00
693ef0875d Fixed invalid MessageStatusChangeEvent sending
The sender got a messageStatusChangeEvent even if the status was still
sent from the server and couldn't process it.
The server does not send this unnecessary event even more
2020-06-11 10:44:49 +02:00
47e03dc4f4 Started implementing group message status handling
* Group creation works
2020-06-11 10:44:48 +02:00
90103d5c49 Added debugging statement when sending an object 2020-06-11 10:44:48 +02:00
f4301caba7 Send ContactOperationEvent to the added contact
+ Updated formatter
2020-06-11 10:44:48 +02:00
0c5645157b Remove illegal table declaration for single-table inheritance hierarchy 2020-06-11 10:44:47 +02:00
cffe9b936f Make GroupMessage extend Message, prepared GroupMessageStatus processing 2020-06-11 10:44:47 +02:00
673e2f74d8 Fix typo in JPQL query 2020-06-11 10:44:47 +02:00
ab789927eb Changed unimportant stuff 2020-06-11 10:44:46 +02:00
1b81b4b3d5 Use constants as query names, joined inheritance for contacts 2020-04-24 21:24:19 +02:00
743aa6bc2d Implemented the GroupMessage class 2020-04-18 16:28:38 +02:00
7716af678a MessageProcessor and GroupMessageProcessor
Moved groupMessage stuff form MessageProcessor to extra class and
finished both processors
2020-04-18 13:27:43 +02:00