Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Equinox » HttpSessionAdapter
HttpSessionAdapter [message #1738197] Mon, 18 July 2016 05:49 Go to next message
Konstantinos Apostolou is currently offline Konstantinos ApostolouFriend
Messages: 5
Registered: November 2014
Junior Member
Hi,

I am building a Rap application, and a nice feature that I had was that I was able to
RWT.getRequest().getSession().setAttribute("usename", user1+"-"+phonenumber);
RWT.getRequest().getSession().setAttribute("ipAddress", ipAddress);

This way When I was going to the tomcat manager page I was able to see on each session who was logged in, his/her phone number and from which IP address. Very handy when you have to support users.

All that worked ok while I was using RAP 2.1 but since I upgrade to RAP 3.1 I found out that the org.eclipse.equinox.http.servlet.internal.servlet.HttpSessionAdapter instead of doing a simple setAttribute it started to wrap the attribute in a HttpSessionAttributeWrapper. As a result tomcat manager don't know what to do with it and how to display it. (this is what I think, any way).

Does anybody have any idea how to work around this change?

Thanx.
Re: HttpSessionAdapter [message #1738287 is a reply to message #1738197] Mon, 18 July 2016 16:23 Go to previous messageGo to next message
Raymond Auge is currently offline Raymond AugeFriend
Messages: 10
Registered: August 2015
Junior Member
First a question! Does the attribute value look like this?

org.eclipse.equinox.http.servlet.internal.servlet.HttpSessionAdaptor$HttpSessionAttributeWrapper@b00b9f5

Second question, could you file a bug [1] for this?

I'm pretty sure that we can fix this usability regression.

[1] https://bugs.eclipse.org/bugs/enter_bug.cgi?product=Equinox
Re: HttpSessionAdapter [message #1738345 is a reply to message #1738287] Tue, 19 July 2016 08:17 Go to previous messageGo to next message
Konstantinos Apostolou is currently offline Konstantinos ApostolouFriend
Messages: 5
Registered: November 2014
Junior Member
yes it does
Attribute name equinox.http.org_eclipse_rap_rwt_osgi_internal_HttpContextWrapper-2localIpAddress
Attribute value org.eclipse.equinox.http.servlet.internal.servlet.HttpSessionAdaptor$HttpSessionAttributeWrapper@7f0fbc09
Re: HttpSessionAdapter [message #1738394 is a reply to message #1738345] Tue, 19 July 2016 12:29 Go to previous messageGo to next message
Thomas Watson is currently offline Thomas WatsonFriend
Messages: 503
Registered: July 2009
Senior Member
Please open a bug report against Compendium at https://bugs.eclipse.org/bugs/enter_bug.cgi?product=Equinox

We should override toString here for better displaying. The toString method should toString the wrapped attribute value.
Re: HttpSessionAdapter [message #1738811 is a reply to message #1738394] Mon, 25 July 2016 06:47 Go to previous message
Konstantinos Apostolou is currently offline Konstantinos ApostolouFriend
Messages: 5
Registered: November 2014
Junior Member
Ok I just did

https://bugs.eclipse.org/bugs/show_bug.cgi?id=498408

thanx
Previous Topic:Uninstall an eclipse plugin programmatically
Next Topic:Unable to delete uninstalled bundle from filesystem.
Goto Forum:
  


Current Time: Fri Apr 19 06:33:38 GMT 2024

Powered by FUDForum. Page generated in 0.02160 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top