Commit Graph

176 Commits

Author SHA1 Message Date
Robert von Burg 52e06f1818 [Project] Bumped version to 1.1.0-SNAPSHOT 2015-03-02 13:43:45 +01:00
Robert von Burg a46d5364e4 [Minor] better logging in AuthenicationRequestFilter 2015-02-28 20:43:05 +01:00
Robert von Burg 3fc4c83a61 [Minor] removed all tx.commitOnClose() for read only TXs 2015-02-06 22:13:48 +01:00
Robert von Burg 46ccb921df [Major] Refactored how a TX is closed
- So sadly just auto closing a TX using try-resource from Java7 is a bad idea.
- Doing that leads to problems when an exception is thrown, then the close is called (duh) but this leads to commit being called.
- Since the Java language does not offer a decent way to detect if the close is being called in the context of an exception i was forced to add a tx.commitOnClose() and tx.rollbackOnClose().
- The default is that when a TX is opened, then the close strategy is rollback; the API user must call tx.commitOnClose() before the TX is closed by the braces, or as late as possible, to make sure that if an exception is thrown the transaction is rolled back, and not committed.
- The API was also extended with a tx.fail(msg):StrolchTransactionException so that if the implementor detects an unrecoverable error, one can write: throw tx.fail(“my reason”);

This was sadly an unavoidable late 1.0.0 change
Conflicts:
	li.strolch.agent/src/main/java/li/strolch/persistence/api/AbstractTransaction.java
2015-02-03 23:21:28 +01:00
Robert von Burg 9505ab355c [New] Added new StrolchAccessDeniedException for use in ServiceHandler
Now if you add the DefaultServiceHandler property 'throwOnPrivilegeFail'
and set it to true, then the service handler will throw a
StrolchAccessDeniedException which in combination with the
StrolchRestfulExceptionMapper allows rest services to quickly determine
if the error was because the user does not have access to the requested
resource.

Same goes for performing queries in AbstractTransaction only there
instead of throwing a privilege exception, we now also throw a
StrolchAccessDeniedException
2015-01-18 18:37:04 +01:00
Reto Breitenmoser e39df60247 [Minor] added cache mode setting for rest http header (defaults to
no-cache)
2015-01-17 10:30:45 +01:00
Robert von Burg e44775f30b [Bugfix] fixed not unlocked objects after TX
When a TX is closed, all locked objects are unlocked. The but originated from multiple commands being performed for the same object, thus the object was locked multiple times i.e. the lock counter was >1. Now added a releaseLock() method which is called by the TX when the TX is closed so that the lock counter is really 0 and the lock is released.

- Added tests for this situation
- documented the LockHandler
2015-01-16 13:59:17 +01:00
Robert von Burg b70ee2d228 [New] Added LoginResult.getRoles(), modified logs
- also log user when performing service calls
- also log user when committing TX
2014-12-31 16:41:00 +01:00
Robert von Burg 1231eb1f49 [Minor] don't return default locale, if none is passed by HTTP client 2014-12-20 23:20:21 +01:00
Robert von Burg 1844a4aee6 [Minor] removed the setting of the locale from HTTP Headers 2014-12-02 23:24:03 +01:00
Robert von Burg fd07280edf [Minor] don't send whole strack trace to client 2014-11-28 22:50:10 +01:00
Robert von Burg 84d287dca4 [New] rest logging configuration: 'restLogging' 'restLoggingEntity' 2014-11-14 16:43:44 +01:00
Robert von Burg 7e68717d99 [New] rest logging configuration: 'restLogging' 'restLoggingEntity' 2014-11-14 16:41:46 +01:00
Robert von Burg bdaceb46f7 [Minor] only show rest trace summary on stage and prod 2014-11-14 16:13:54 +01:00
Robert von Burg 4c637ea144 [New] rest tracing configuration: 'restTracing' 'restTracingThreshold' 2014-11-14 16:03:43 +01:00
Robert von Burg 8d5d8b2c89 [Minor] AuthenicationRequestFilter and AuthenticationService changes
Now we check that the authorization header always exists except for the
AuthenticationService.login
2014-10-31 20:53:56 +01:00
Robert von Burg 4f9cd72d68 [Bugfix] fixed bug where certificate.lastAccess was not set after login 2014-10-31 20:47:26 +01:00
Robert von Burg d55371e9b7 [Minor] fixed component version descriptions 2014-10-04 14:35:01 +02:00
Robert von Burg 32c17858e1 [Major] Added Session timeout handling
SessionHandler now has a timer checking to make sure that sessions which haven’t been accessed for a time defined by ‘session.ttl.minutes’ are invalidated
2014-09-27 12:30:35 +02:00
Robert von Burg ada9abb097 [Project] Bumped version from 1.0.0-RC1 to 1.0.0-SNAPSHOT 2014-09-20 15:23:11 +02:00
Robert von Burg 7c0ab16c9e [Project] bumped version from 1.0.0-SNAPSHOT to 1.0.0-RC1 2014-09-20 14:38:29 +02:00
Robert von Burg 890b9f47cd [New] added new setVersion.sh script 2014-09-20 00:31:04 +02:00
Robert von Burg fe37e0aae0 [Project] added a new parent pom where Strolch's version is set 2014-09-19 20:09:42 +02:00
Robert von Burg f590a12e3a [Project] added a new parent pom where Strolch's version is set 2014-09-19 19:23:49 +02:00
Robert von Burg 6b5006c0bb [Project] fixed scm configuration in poms 2014-09-19 18:31:55 +02:00
Robert von Burg c64421a0d7 moved everything to a subdirectory for repo merge 2014-09-16 08:52:52 +02:00