03 Feb, 2015
7 commits
-
This tests was expecting a NPE that was thrown by `new StringReader()`. We were never going into the `readJson()` method... git-svn-id: https://svn.forgerock.org/openig/trunk@874 dbb9e58e-28e6-4ce0-90e8-f11d9605b710
-
git-svn-id: https://svn.forgerock.org/openig/trunk@873 dbb9e58e-28e6-4ce0-90e8-f11d9605b710
-
The soon-to-come Http framework needs a subset of the features provided by `Json`: only what is related to JSON parsing/writing. Everything else is related to `JsonValue` or more OpenIG specific types like `Heap`, `Expression`, ... So this is just a simple split, we now have: * `Json`: JSON parsing * `JsonValues`: OpenIG-related code git-svn-id: https://svn.forgerock.org/openig/trunk@872 dbb9e58e-28e6-4ce0-90e8-f11d9605b710
-
Created a new class in utils for the StandardCharsets. When we will move to java 7, we just need to remove this file and update the package names to java.nio.charset.StandardCharsets. git-svn-id: https://svn.forgerock.org/openig/trunk@871 dbb9e58e-28e6-4ce0-90e8-f11d9605b710
-
git-svn-id: https://svn.forgerock.org/openig/trunk@870 dbb9e58e-28e6-4ce0-90e8-f11d9605b710
-
git-svn-id: https://svn.forgerock.org/openig/trunk@869 dbb9e58e-28e6-4ce0-90e8-f11d9605b710
-
git-svn-id: https://svn.forgerock.org/openig/trunk@868 dbb9e58e-28e6-4ce0-90e8-f11d9605b710
29 Jan, 2015
3 commits
-
if doable, the expression string input. As OPENIG-394 introduces the original string used in Expression, we are now able to have more explicit error messages. - 'Standardized' all expressions error messages. git-svn-id: https://svn.forgerock.org/openig/trunk@865 dbb9e58e-28e6-4ce0-90e8-f11d9605b710
-
git-svn-id: https://svn.forgerock.org/openig/trunk@864 dbb9e58e-28e6-4ce0-90e8-f11d9605b710
-
git-svn-id: https://svn.forgerock.org/openig/trunk@863 dbb9e58e-28e6-4ce0-90e8-f11d9605b710
27 Jan, 2015
1 commit
-
git-svn-id: https://svn.forgerock.org/openig/trunk@859 dbb9e58e-28e6-4ce0-90e8-f11d9605b710
23 Jan, 2015
5 commits
-
git-svn-id: https://svn.forgerock.org/openig/trunk@854 dbb9e58e-28e6-4ce0-90e8-f11d9605b710
-
git-svn-id: https://svn.forgerock.org/openig/trunk@853 dbb9e58e-28e6-4ce0-90e8-f11d9605b710
-
git-svn-id: https://svn.forgerock.org/openig/trunk@852 dbb9e58e-28e6-4ce0-90e8-f11d9605b710
-
git-svn-id: https://svn.forgerock.org/openig/trunk@851 dbb9e58e-28e6-4ce0-90e8-f11d9605b710
-
git-svn-id: https://svn.forgerock.org/openig/trunk@850 dbb9e58e-28e6-4ce0-90e8-f11d9605b710
22 Jan, 2015
3 commits
-
git-svn-id: https://svn.forgerock.org/openig/trunk@845 dbb9e58e-28e6-4ce0-90e8-f11d9605b710
-
git-svn-id: https://svn.forgerock.org/openig/trunk@844 dbb9e58e-28e6-4ce0-90e8-f11d9605b710
-
As the URI rebasing is done at different places in the code we'd like to have a BaseUriHandler/Filter in order to factor out the code. Following the same scheme as the "Timer" decorator, the "baseURI" decorator is created by default in the Gateway Servlet. (Named "baseUri" and created at startup time in the top-level heap.) * GatewayServlet.class, Route.class The creation of the "baseUri" decorator means the attribute class 'baseURI' is no longer needed as the URI rebasing is now directly done by the decorator. In the other hand, the heap initialization performed within both class constructors, contained a list of reservedFieldNames where the 'baseURI'was present. It has been removed from there as it is now a global decorator. * RouteTest.java Removed unit test 'testRouteIsRebasingTheRequestUri'(Duplicated in the RouteBuilder test, and the RouteBuilder has the responsability to apply decorators). git-svn-id: https://svn.forgerock.org/openig/trunk@843 dbb9e58e-28e6-4ce0-90e8-f11d9605b710
20 Jan, 2015
1 commit
-
The previous commit introduced a regression, especially for GET messages being sent with an empty entity where they should have no entity at all. They were being falsely detected as messages with content because we were comparing `EMPTY_STREAM` with `Entity.head` (the branched content) instead of the `Entity.trunk` (`head` being re-created every time OpenIG tries to read the content, so in the `HttpBasicAuthFilter` for example, we push the Entity, then delegates to the next handler in chain, so when message is sent, the `head` is != from the `trunk` and cannot be == to `EMPTY_STREAM`) I could not reliably reproduce that in a unit test with a real HTTP Server because the failure also need the HTTPClient to re-use the same connection for 2 consecutive messages. Thus, I only added a small `Entity` unit test to make sure that `Entity.mayContainData()` behave correct even when the entity is pushed/popped. git-svn-id: https://svn.forgerock.org/openig/trunk@838 dbb9e58e-28e6-4ce0-90e8-f11d9605b710
19 Jan, 2015
3 commits
-
IDE Eclipse divided by two the spaces length when special chars are used in the line. I choose to trust the IDE instead of checkstyle and diff, my mistake. Output is fine with IntelliJ. Looks like a bug in eclipse. git-svn-id: https://svn.forgerock.org/openig/trunk@837 dbb9e58e-28e6-4ce0-90e8-f11d9605b710
-
CR-5814 OPENIG-438 Document Expression plugins Respond to review comments from Guillaume. git-svn-id: https://svn.forgerock.org/openig/trunk@836 dbb9e58e-28e6-4ce0-90e8-f11d9605b710
-
Added unit tests for unicode usage. git-svn-id: https://svn.forgerock.org/openig/trunk@835 dbb9e58e-28e6-4ce0-90e8-f11d9605b710
16 Jan, 2015
5 commits
-
The toString() method is now implemented and tested. We also decide to replace Expression constructor by a more conventional valueOf(...) factory method. A new Expression is now created by Expression exp = Expression.valueOf(<Expression string>); git-svn-id: https://svn.forgerock.org/openig/trunk@834 dbb9e58e-28e6-4ce0-90e8-f11d9605b710
-
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
2 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