So, browser mapping...

 

Recently it came to our attention that Opera 9 was having problems with
our portal, and by problems I mean the guest login page would not
render.  Instead we would get this:

 

java.lang.NullPointerException

    [specific data: ] 

org.jasig.portal.PortalException: java.lang.NullPointerException

                at
org.jasig.portal.GuestUserInstance.writeContent(GuestUserInstance.java:1
43)

                at
org.jasig.portal.PortalSessionManager.doGet(PortalSessionManager.java:28
2)

Caused by: java.lang.NullPointerException

                at
org.jasig.portal.StandaloneChannelRenderer.getRuntimeData(StandaloneChan
nelRenderer.java:166)

                at
org.jasig.portal.StandaloneChannelRenderer.prepare(StandaloneChannelRend
erer.java:106)

                at
org.jasig.portal.GuestUserInstance.writeContent(GuestUserInstance.java:1
41)

                ... 17 more

 

Having Opera report it's user-agent as Firefox or IE, and things were
just fine.  I checked in properties/browser.mappings and found that
Opera 7 was the last Opera listed.  I was about to add it and thought
that trying to map every user-agent is a 'no win' situation, even with
regex.  So, I decided to add this at the very end:

 

# Match everything else and give them profile 1 anyway

.*=1

 

If all other attempt at catching the browser fails, you still get system
profile 1.

 

Pat


-- 
You are currently subscribed to [email protected] as: [EMAIL 
PROTECTED]
To unsubscribe, change settings or access archives, see 
http://www.ja-sig.org/wiki/display/JSG/uportal-dev

Reply via email to