cancel
Showing results for 
Search instead for 
Did you mean: 

Unsupported codepage jExM in ticket

Former Member
0 Kudos

Hi all,

I try to use the com.sap.security.api.ticket.TicketVerifier class; but I have the following error when I call setTicket method:

TicketException: Unsupported codepage jExM in ticket

The ticket is read from request, MYSAPSSO2 cookie.

Someone can help me ?

Thanks in advance.

Paolo

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Paolo,

You need to decode the cookie value before passing the ticket to the TicketVerifier class by calling URLDecoder.decode(String, String) method.

Your code would like something like this:

Cookie sso2Ticket = getCookie("MYSAPSSO2"); // just a placeholder function

String sso2DecodedCookievalue = java.net.URLDecoder.decode(sso2Ticket.getValue(),"UTF-8");

ticketVerifier.setTicket(sso2DecodedCookievalue);

This will work.

Regards,

David

Former Member
0 Kudos

Hi,

we're facing the same problem after changing to unicode.

Before unicode everything was working fine, all tickets were accepted.

With unicode verifyTicket throws "illegal Codepage 4102" exception.

Holger