05 Nov, 2014
4 commits
-
git-svn-id: https://svn.forgerock.org/openig/trunk@683 dbb9e58e-28e6-4ce0-90e8-f11d9605b710
-
* OAuth2TokenException refactored to only have a message field * Do not re-print chained exception's message * Better error messages git-svn-id: https://svn.forgerock.org/openig/trunk@682 dbb9e58e-28e6-4ce0-90e8-f11d9605b710
-
git-svn-id: https://svn.forgerock.org/openig/trunk@681 dbb9e58e-28e6-4ce0-90e8-f11d9605b710
-
git-svn-id: https://svn.forgerock.org/openig/trunk@680 dbb9e58e-28e6-4ce0-90e8-f11d9605b710
04 Nov, 2014
3 commits
-
git-svn-id: https://svn.forgerock.org/openig/trunk@679 dbb9e58e-28e6-4ce0-90e8-f11d9605b710
-
git-svn-id: https://svn.forgerock.org/openig/trunk@678 dbb9e58e-28e6-4ce0-90e8-f11d9605b710
-
When capturing the exchange's content, we're using JsonOutput with a Map view of the Exchange. It happens that this view, because of the FieldMap stuff, only includes exchange's public fields. It looks like this is not an issue for Expressions. We'll fix all of theses public properties at once git-svn-id: https://svn.forgerock.org/openig/trunk@677 dbb9e58e-28e6-4ce0-90e8-f11d9605b710
03 Nov, 2014
2 commits
-
* `preparedStatement` attribute is required * `parameters` could be optional if no placeholders are specified Used the as-list-of construct to init the parameters' expression's value. Synched the doc git-svn-id: https://svn.forgerock.org/openig/trunk@676 dbb9e58e-28e6-4ce0-90e8-f11d9605b710
-
git-svn-id: https://svn.forgerock.org/openig/trunk@675 dbb9e58e-28e6-4ce0-90e8-f11d9605b710
31 Oct, 2014
2 commits
-
The JDBC spec states that PreparedStatement created through Connection.prepareStatement(String) have the FORWARD_ONLY type. A forward only statement may not implement the first() method (does not make sense to go back to the first row when you can only move forward). So, it's safer to use ResultSet.next(). git-svn-id: https://svn.forgerock.org/openig/trunk@674 dbb9e58e-28e6-4ce0-90e8-f11d9605b710
-
Trying to fill a non-existent prepared-statement placeholder results in a SQLException (`Invalid column index` for Oracle, some other for MySQL, ...), so we simply avoid theses errors by ignoring extra parameters. We also output meaningful (I hope) warnings for both extra parameters and un-valued placeholders. git-svn-id: https://svn.forgerock.org/openig/trunk@673 dbb9e58e-28e6-4ce0-90e8-f11d9605b710
30 Oct, 2014
6 commits
-
The CaptureDecorator can now be configured to additionally capture the content of the Exchange being intercepted. If specified, it will print the full content of the Exchange instance, excluding the `response` and the `request` since they should be captured by another mean. The output contains a deep view of the exchange obtained through introspection of the class structure (this is done by the Groovy JsonOutput class). It appears that this class doesn't support cycles very well, so, depending on the content of the exchange, it may throw exceptions. By default we're doing our best to remove known cycles. By default (in the system provided `capture` decorator), this option is disabled since it adds a lot of cruft in the logs. git-svn-id: https://svn.forgerock.org/openig/trunk@672 dbb9e58e-28e6-4ce0-90e8-f11d9605b710
-
git-svn-id: https://svn.forgerock.org/openig/trunk@671 dbb9e58e-28e6-4ce0-90e8-f11d9605b710
-
…nfigured in the config.json Instead of creating manually the HttpClient instance and giving it the (also manually) created TemporaryStorage instance, we now declare an equivalent object declaration in the heap, letting the HttpClient heaplet resolves properly its dependencies. git-svn-id: https://svn.forgerock.org/openig/trunk@670 dbb9e58e-28e6-4ce0-90e8-f11d9605b710
-
git-svn-id: https://svn.forgerock.org/openig/trunk@669 dbb9e58e-28e6-4ce0-90e8-f11d9605b710
-
git-svn-id: https://svn.forgerock.org/openig/trunk@668 dbb9e58e-28e6-4ce0-90e8-f11d9605b710
-
This aligns with r611. Thanks to Guillaume for pointing out what I'd missed. git-svn-id: https://svn.forgerock.org/openig/trunk@667 dbb9e58e-28e6-4ce0-90e8-f11d9605b710
29 Oct, 2014
1 commit
-
Although the JSON pointer is sufficient to guarantee unicity of a name within the scope of a heap, it makes it hard for reader to link that name to the configuration object they provided. This patch supports both improvements: * if a `name` attribute is provided in the declaration, use it as-is * if not, prepend the `type` attribute value to the pointer String to help identification This patch also updates the logs samples provided in the documentation. git-svn-id: https://svn.forgerock.org/openig/trunk@666 dbb9e58e-28e6-4ce0-90e8-f11d9605b710
28 Oct, 2014
1 commit
-
git-svn-id: https://svn.forgerock.org/openig/trunk@665 dbb9e58e-28e6-4ce0-90e8-f11d9605b710
24 Oct, 2014
7 commits
-
git-svn-id: https://svn.forgerock.org/openig/trunk@664 dbb9e58e-28e6-4ce0-90e8-f11d9605b710
-
git-svn-id: https://svn.forgerock.org/openig/trunk@663 dbb9e58e-28e6-4ce0-90e8-f11d9605b710
-
git-svn-id: https://svn.forgerock.org/openig/trunk@662 dbb9e58e-28e6-4ce0-90e8-f11d9605b710
-
git-svn-id: https://svn.forgerock.org/openig/trunk@661 dbb9e58e-28e6-4ce0-90e8-f11d9605b710
-
git-svn-id: https://svn.forgerock.org/openig/trunk@660 dbb9e58e-28e6-4ce0-90e8-f11d9605b710
-
Beginning with the removal of routes guarantee that we won't remove a route that was just added or modified. git-svn-id: https://svn.forgerock.org/openig/trunk@659 dbb9e58e-28e6-4ce0-90e8-f11d9605b710
-
git-svn-id: https://svn.forgerock.org/openig/trunk@658 dbb9e58e-28e6-4ce0-90e8-f11d9605b710
23 Oct, 2014
12 commits
-
Exception's messages does not have to include the message of their parent anymore. When a route failed to load for any reason, all the chained exception's messages are logged as errors up to the root cause, and the full stack trace is logged at the DEBUG level. Notice that the LogSink you have to configure is the one of the Router itself (in the JSON configuration where the Router handler is declared), configuring the LogSing of the failed route configuration will not help. git-svn-id: https://svn.forgerock.org/openig/trunk@657 dbb9e58e-28e6-4ce0-90e8-f11d9605b710
-
git-svn-id: https://svn.forgerock.org/openig/trunk@654 dbb9e58e-28e6-4ce0-90e8-f11d9605b710
-
- Fixed lenient parser by adding the feature ALLOW_UNQUOTED_CONTROL_CHARS. - Added unit tests about line break. -- Removed jackson from method names. git-svn-id: https://svn.forgerock.org/openig/trunk@653 dbb9e58e-28e6-4ce0-90e8-f11d9605b710
-
git-svn-id: https://svn.forgerock.org/openig/trunk@652 dbb9e58e-28e6-4ce0-90e8-f11d9605b710
-
…edicated to Filter and Handler git-svn-id: https://svn.forgerock.org/openig/trunk@651 dbb9e58e-28e6-4ce0-90e8-f11d9605b710
-
git-svn-id: https://svn.forgerock.org/openig/trunk@650 dbb9e58e-28e6-4ce0-90e8-f11d9605b710
-
We can now differentiate between the time globally spent inside a filter and the time spend in the code of this filter: we simply excludes the time spent outside of this filter (when calling the next handler) git-svn-id: https://svn.forgerock.org/openig/trunk@649 dbb9e58e-28e6-4ce0-90e8-f11d9605b710
-
With pausable/resumable LogTimer(s) it's possible to define more precise boundaries when counting time spent inside of a method. git-svn-id: https://svn.forgerock.org/openig/trunk@648 dbb9e58e-28e6-4ce0-90e8-f11d9605b710
-
Notice that we kept them for GatewayServlet since this is not itself a Filter/Handler (so not decoratable) and that we may be interested in time spend in its service() method (Exchange creation and configuration may be significant) git-svn-id: https://svn.forgerock.org/openig/trunk@647 dbb9e58e-28e6-4ce0-90e8-f11d9605b710
-
The timer decorator factorize some very common code in all of our filters handlers: LogTimer timer = logger.getTimer().start() /// ... timer.stop() git-svn-id: https://svn.forgerock.org/openig/trunk@646 dbb9e58e-28e6-4ce0-90e8-f11d9605b710 -
git-svn-id: https://svn.forgerock.org/openig/trunk@645 dbb9e58e-28e6-4ce0-90e8-f11d9605b710
-
git-svn-id: https://svn.forgerock.org/openig/trunk@644 dbb9e58e-28e6-4ce0-90e8-f11d9605b710
22 Oct, 2014
2 commits
-
- Updated stacktrace in section 1. - Remove section 2. - Replaced section 'Unexpected character at position 1103' and replaced it by 'Extra or missing character / invalid JSON' git-svn-id: https://svn.forgerock.org/openig/trunk@643 dbb9e58e-28e6-4ce0-90e8-f11d9605b710
-
- Negatives values are no longer registered. - Reactivated corresponding unit test. git-svn-id: https://svn.forgerock.org/openig/trunk@642 dbb9e58e-28e6-4ce0-90e8-f11d9605b710