portals-portalapps-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Woonsan Ko (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (APA-72) No cookie rewriting
Date Wed, 23 Dec 2015 14:10:46 GMT

    [ https://issues.apache.org/jira/browse/APA-72?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15069654#comment-15069654
] 

Woonsan Ko commented on APA-72:
-------------------------------

Hi [~saschaa1982],

Thanks for testing and updates!
Regarding releases, could you please ask in a mailing list [1] ? The releases needs to take
some necessary steps and PMC also need to approve the release. So, it will be helpful to ask
in the user mailing list first (and ML is the proper place to discuss releases, not JIRA).

Regards,

Woonsan

[1] http://portals.apache.org/applications/mail-lists.html
[2] http://www.apache.org/dev/release.html

> No cookie rewriting
> -------------------
>
>                 Key: APA-72
>                 URL: https://issues.apache.org/jira/browse/APA-72
>             Project: Portals Apps
>          Issue Type: Bug
>          Components: apa-webcontent
>    Affects Versions: apa-webcontent-2.0
>            Reporter: Sascha Arndt
>            Assignee: Woonsan Ko
>             Fix For: apa-webcontent-2.1
>
>
> I have a problem using this maven dependency:
> {code:xml}
> <dependency>
>   <groupId>org.apache.portals.applications</groupId>
>   <artifactId>apa-webcontent2-reverse-proxy</artifactId>
>   <version>2.0</version>
> </dependency>
> {code}
> Using this version of apa-webcontent2-reverse-proxy none of my cookies got rewrited or
send back to the client. After some debugging session I found out, that the CloseableHttpClient
and the ProxyContext were using different CookieStore objects.
> I "patched" it locally replacing "InitHttpClientCommand"s executeInternal-method like
this:
> {code:title=InitHttpClientCommand.java|borderStyle=solid}
> @Override
> protected boolean executeInternal(final ProxyContext context) throws ReverseProxyException,
IOException {
>   CookieStore cookieStore = new BasicCookieStore();
>   CloseableHttpClient httpClient = httpClientBuilder.setDefaultCookieStore(cookieStore).build();
>   context.setCookieStore(cookieStore);
>   context.setHttpClient(httpClient);
>   return false;
> }
> {code}
> Is this a bug, or am I using it wrong?



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message