Qu Vad

Greenhorn
+ Follow
since Jul 14, 2013
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
1
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Qu Vad

In general, the issue appears only in 'Protected View' mode. It looks like IE and Chrome add something to response in order to notify the Excel that the file comes from the Internet.
Hi,

in my application user is able to download an excel report. When user downloads xls using FF then encoding is fine and umlauts are shown correct. If user does the same in IE and Chrome then umlauts in xls are broken.

Excel report is generated in a servlet using Apache POI v3.10.1 and filled with the same data every time. But the xls files downloaded in FF and IE (or Chrome) are different.

Any idea why?


BTW, I tried to set encoding in response header

but no success.
I got a problem with OpenAM. Need a help.

I installed OpenAM and simply configured it as an IDP - set name and circle of trust. Then I added a remote SP by uploading SP metadata, see below


SP and IDP are in the same Circle of Trust.

When I do SAML request for auth from SP to IDP, I get to login page of OpenAM with SAMLRequest=... as URL params. Decoded SAMLRequest is below


Then i do login and come to user profile page in OpenAM, instead of redirect to SP. Why it happens? What should I configure to enable redirect back to SP?
Update. The list of attributes in error servlet is different in EAP6 and WF8

Attributes in WF8:

javax.servlet.error.message: Unauthorized
javax.servlet.error.status_code: 401
javax.servlet.error.servlet_name: default
javax.servlet.error.request_uri: /boom-portal/client/boom/index.htm

Attributes in EAP6:

javax.servlet.forward.request_uri: /boom-portal/client/boom/index.htm
javax.servlet.forward.context_path: /boom-portal
javax.servlet.forward.servlet_path: /client/boom/index.htm
javax.servlet.forward.path_info: /Error.error
javax.servlet.forward.query_string: i=1
javax.servlet.error.message:
javax.servlet.error.status_code: 401
javax.servlet.error.servlet_name: default
javax.servlet.error.request_uri: /boom-portal/client/boom/index.htm


Any idea why 'forward'-attributes are missing in WF8?
9 years ago
Jaikiran Pai, thanks for hint. According to https://issues.jboss.org/browse/UNDERTOW-322 I replaced modules websockets-jsr, servlet and core of Undertow by the newest version 1.2.0-Beta1. It did not fix the issue.
9 years ago
Chain of calls is the following (assume basic auth):

1. Call with js to url './client/boom/index.htm?i=1'.
2. Flow doesn't come to subclass of UsernamePasswordLoginModule because authorization required.
3. Flow comes to the error-servlet with

httpServletRequest.getAttribute("javax.servlet.error.status_code") == 401
httpServletRequest.getAttribute("javax.servlet.error.message") == Unauthorized

Here, in the error-servlet I need to get parameter i. Error-servlet is mapped in this way:

9 years ago
Hi

I do migration from Jboss AS7 /EAP6 to Wildfly8 and would like to ask here for any hint about undertow, why it doesn't handle request parameters as catalina does in EAP6.
So, I make a request from client to url './client/boom/index.htm?i=1', it comes to an error servlet where I want to get value of parameter i

With EAP6 it returns 1, but with Wildfly8 it return null. Why?

Additional info. I have a security domain called 'boom' declared in jboss-web.xml

and in standalone.xml


Auth method is declared as basic in web.xml.
9 years ago
Thanks for assistance! Solved by doing JAAS login in MDB.
10 years ago
Jaikiran Pai, thanks for the quick answer!

I receive a username in Message object in MDB. And I would like to call SSB by that user... Is there a way to create a security context for particular user in MDB.onMessage()?
10 years ago
Got problem with JBoss AS7 / EAP6. In MDB, when I lookup for SSB and call its method, the call is always anonymous, i.e. sessionContext.getCallerPrincipal() returns Principal(anonymous). Always... In AS5 everything was fine.

How can I fix it to make a call with an authenticated user?

My MDB:

My queue settings:

My Security Domain:
10 years ago