16 Jan, 2015
4 commits
-
The `Entity.isEmpty()` method relied on `InputStream.available()` returning something different of `0` (zero) to detect if the entity was empty or not. This technic is not reliable enough since the javadoc clearly states that this return the number of bytes that can be read **without blocking**, that means that the result of this method depends on the network (and to some extension to the web container), not entirely on the message. The idea here is to now check if the wrapped stream is the `EMPTY_STREAM` instance to detect if the entity is empty or not. This is better than the old solution because we don't rely anymore on an external `InputStream` implementation, but that will not detect a user provided stream with no data inside. This is why `isEmpty()` has been renamed to `mayContainData()`. There is also a new `setEmpty()` method to mark the entity as empty (simply assign `EMPTY_STREAM` to the wrapped stram field). git-svn-id: https://svn.forgerock.org/openig/trunk@833 dbb9e58e-28e6-4ce0-90e8-f11d9605b710
-
git-svn-id: https://svn.forgerock.org/openig/trunk@832 dbb9e58e-28e6-4ce0-90e8-f11d9605b710
-
git-svn-id: https://svn.forgerock.org/openig/trunk@831 dbb9e58e-28e6-4ce0-90e8-f11d9605b710
-
git-svn-id: https://svn.forgerock.org/openig/trunk@830 dbb9e58e-28e6-4ce0-90e8-f11d9605b710
15 Jan, 2015
4 commits
-
git-svn-id: https://svn.forgerock.org/openig/trunk@826 dbb9e58e-28e6-4ce0-90e8-f11d9605b710
-
The next version of OpenIG will be the 4.0.0 . git-svn-id: https://svn.forgerock.org/openig/trunk@825 dbb9e58e-28e6-4ce0-90e8-f11d9605b710
-
git-svn-id: https://svn.forgerock.org/openig/trunk@824 dbb9e58e-28e6-4ce0-90e8-f11d9605b710
-
git-svn-id: https://svn.forgerock.org/openig/trunk@823 dbb9e58e-28e6-4ce0-90e8-f11d9605b710
14 Jan, 2015
1 commit
-
git-svn-id: https://svn.forgerock.org/openig/trunk@822 dbb9e58e-28e6-4ce0-90e8-f11d9605b710
13 Jan, 2015
5 commits
-
git-svn-id: https://svn.forgerock.org/openig/trunk@821 dbb9e58e-28e6-4ce0-90e8-f11d9605b710
-
git-svn-id: https://svn.forgerock.org/openig/trunk@820 dbb9e58e-28e6-4ce0-90e8-f11d9605b710
-
That introduced an invalid behaviour: loosing the original header information that would be useful for the end server to generate messages with an appropriate contextual information. Reverted r766 & r767 git-svn-id: https://svn.forgerock.org/openig/trunk@819 dbb9e58e-28e6-4ce0-90e8-f11d9605b710
-
* Fixed ordering of imports * Removal of {@inheritDoc} (@Override is sufficient for checkstyle and javadoc to be happy) * Renamed static final field 'plugins' to 'PLUGINS' to have checkstyle happy git-svn-id: https://svn.forgerock.org/openig/trunk@818 dbb9e58e-28e6-4ce0-90e8-f11d9605b710 -
git-svn-id: https://svn.forgerock.org/openig/trunk@817 dbb9e58e-28e6-4ce0-90e8-f11d9605b710
17 Dec, 2014
3 commits
-
Thanks, Guillaume. git-svn-id: https://svn.forgerock.org/openig/trunk@815 dbb9e58e-28e6-4ce0-90e8-f11d9605b710
-
git-svn-id: https://svn.forgerock.org/openig/trunk@814 dbb9e58e-28e6-4ce0-90e8-f11d9605b710
-
git-svn-id: https://svn.forgerock.org/openig/trunk@813 dbb9e58e-28e6-4ce0-90e8-f11d9605b710
12 Dec, 2014
1 commit
-
git-svn-id: https://svn.forgerock.org/openig/trunk@807 dbb9e58e-28e6-4ce0-90e8-f11d9605b710
10 Dec, 2014
1 commit
-
git-svn-id: https://svn.forgerock.org/openig/trunk@805 dbb9e58e-28e6-4ce0-90e8-f11d9605b710
08 Dec, 2014
1 commit
-
Recent Google OAuth 2.0 update is breaking the OAuth 2.0 Client Filter by having the `expires_in` attribute of the access token response expressed as a String instead of a JSON Number. We're now doing the adaptation in OpenIG and deal with the String case by hand. git-svn-id: https://svn.forgerock.org/openig/trunk@801 dbb9e58e-28e6-4ce0-90e8-f11d9605b710
05 Dec, 2014
7 commits
-
Activate binary license integration in the `opening-war` module (our distributable artifact). git-svn-id: https://svn.forgerock.org/openig/trunk@797 dbb9e58e-28e6-4ce0-90e8-f11d9605b710
-
As the web application does not include the documentation (which is the only component under CC license), we should not include that license text into the archive. git-svn-id: https://svn.forgerock.org/openig/trunk@796 dbb9e58e-28e6-4ce0-90e8-f11d9605b710
-
git-svn-id: https://svn.forgerock.org/openig/trunk@792 dbb9e58e-28e6-4ce0-90e8-f11d9605b710
-
git-svn-id: https://svn.forgerock.org/openig/trunk@791 dbb9e58e-28e6-4ce0-90e8-f11d9605b710
-
git-svn-id: https://svn.forgerock.org/openig/trunk@790 dbb9e58e-28e6-4ce0-90e8-f11d9605b710
-
git-svn-id: https://svn.forgerock.org/openig/trunk@787 dbb9e58e-28e6-4ce0-90e8-f11d9605b710
-
This patch to trunk removes information pertaining to the 3.1 branch, though it retains the list of deprecated items for readers coming to nightly builds from 3.0.x. git-svn-id: https://svn.forgerock.org/openig/trunk@786 dbb9e58e-28e6-4ce0-90e8-f11d9605b710
04 Dec, 2014
3 commits
-
git-svn-id: https://svn.forgerock.org/openig/trunk@783 dbb9e58e-28e6-4ce0-90e8-f11d9605b710
-
git-svn-id: https://svn.forgerock.org/openig/trunk@782 dbb9e58e-28e6-4ce0-90e8-f11d9605b710
-
git-svn-id: https://svn.forgerock.org/openig/trunk@780 dbb9e58e-28e6-4ce0-90e8-f11d9605b710
03 Dec, 2014
3 commits
-
Thanks to Jean-Charles for suggestions and review over IM. git-svn-id: https://svn.forgerock.org/openig/trunk@779 dbb9e58e-28e6-4ce0-90e8-f11d9605b710
-
Only a `404` status code was returned when something goes wrong, nothing was actually printed on screen if you accessed OpenIG from a browser. This change add a JSON content (still machine parseable) with a descriptive error message that is displayed by browser, making the client aware that something was wrong for any reason. This change was triggered with fix for OPENIG-411, that had the side effect of not propagating route's exception to the user anymore git-svn-id: https://svn.forgerock.org/openig/trunk@778 dbb9e58e-28e6-4ce0-90e8-f11d9605b710
-
git-svn-id: https://svn.forgerock.org/openig/trunk@777 dbb9e58e-28e6-4ce0-90e8-f11d9605b710
02 Dec, 2014
7 commits
-
Reviewed onscreen by Jean-Charles. git-svn-id: https://svn.forgerock.org/openig/trunk@776 dbb9e58e-28e6-4ce0-90e8-f11d9605b710
-
git-svn-id: https://svn.forgerock.org/openig/trunk@775 dbb9e58e-28e6-4ce0-90e8-f11d9605b710
-
git-svn-id: https://svn.forgerock.org/openig/trunk@774 dbb9e58e-28e6-4ce0-90e8-f11d9605b710
-
git-svn-id: https://svn.forgerock.org/openig/trunk@773 dbb9e58e-28e6-4ce0-90e8-f11d9605b710
-
`HeapImpl.addDefaultDeclaration()` is now the way to add default object declarations in the heap. Default declarations are only included if no user-provided overriding declaration is found (only works for heap declarations, not for named inline declaration). git-svn-id: https://svn.forgerock.org/openig/trunk@772 dbb9e58e-28e6-4ce0-90e8-f11d9605b710
-
`ConsoleLogSink` is now rendering each `LogEntry` on 2 lines with a line separator between entries, the objective being to improve console log readability. The first line is the header line and display the timestamp of the event (in the current system Locale), the entry's `LogLevel` and ends with the `Name` (leaf part) of the heap object that is the source of the log statement. ``` MON DEC 01 20:39:16 CET 2014 (INFO) _Router Added route 'oauth2-resources.json' defined in file '/Users/guillaume/tmp/demo/config/routes/oauth2-resources.json' ------------------------------ ``` Notice that a special treatment is done when logging a `Throwable`: a condensed stack trace is printed on the console and if (and only if) the `LogSink` has been assigned a `DEBUG` or `TRACE` level, the full stack trace is printed (independently of the entry's level). ``` MON DEC 01 15:28:10 CET 2014 (DEBUG) ResourceServer Initial token resolution has failed [ OAuth2TokenException] > Initial token resolution has failed [ OAuth2TokenException] > Authorization Server returned an error (error: bad_request, description: Could not read token in CTS) org.forgerock.openig.filter.oauth2.OAuth2TokenException: Initial token resolution has failed at org.forgerock.openig.filter.oauth2.cache.CachingAccessTokenResolver.resolve(CachingAccessTokenResolver.java:62) ... 33 more ------------------------------ ``` A new `stream` property has been added to `ConsoleLogSink` to let the user choose which PrintStream to use for printing messages: * `ERR`: Use System.err (default value, keep compatibility) * `OUT`: Use System.out * `AUTO`: Select System.out for `TRACE` to `INFO` messages, switching to System.err for `WARNING` and `ERROR`. `FileLogSink` implements a machine parseable `LogEntry` rendering: each entry is on one line and includes: * timestamp of the event (in the current system Locale), always have the same length * the entry's `LogLevel`, always 1 word, uppercase * the `Name` (leaf part) of the heap object that is the source of the log statement. * a `---` separator that segregates the beginning of the line (log statement's context) from the entry's message (the rest of the line) Notice that in the case of `Throwable` printing, the full stack trace is printed as commented lines. ``` MON DEC 01 17:46:21 CET 2014 DEBUG ResourceServer --- Initial token resolution has failed # org.forgerock.openig.filter.oauth2.OAuth2TokenException: Initial token resolution has failed # at org.forgerock.openig.filter.oauth2.cache.CachingAccessTokenResolver.resolve(CachingAccessTokenResolver.java:62) # at org.forgerock.openig.filter.oauth2.OAuth2ResourceServerFilter.filter(OAuth2ResourceServerFilter.java:205) # at org.forgerock.openig.decoration.capture.CaptureFilter.filter(CaptureFilter.java:62) ``` git-svn-id: https://svn.forgerock.org/openig/trunk@771 dbb9e58e-28e6-4ce0-90e8-f11d9605b710 -
git-svn-id: https://svn.forgerock.org/openig/trunk@770 dbb9e58e-28e6-4ce0-90e8-f11d9605b710