History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: UP-1824
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Eric Dalquist
Reporter: Patrick Berry
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
uPortal

User agents that don't map to a profile cause Programming Error

Created: 24/Sep/07 08:13 PM   Updated: 10/Apr/08 04:25 PM
Component/s: Preferences, Profile management
Affects Version/s: 2.6.0 GA, 2.6.1 RC1
Fix Version/s: 2.6.1 RC2

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown
Issue Links:
Cloners
This issue Cloned by:
UP-2010 User agents that don't map to a profi... Major Closed
 


 Description  « Hide
Hitting uPortal with a user-agent that isn't caught in properties/browser.mappings will cause a NPE.

Work around: put .*=1 at the end of browser.mappings to catch "everything else" and give it system profile 1.

Forgive the verbosity, but this is everything between when the first hint of userAgent sniffing and the actual error being thrown.

DEBUG [http-8080-Processor25] portal.GuestUserPreferencesManager.[] Sep/24 16:58:34 - GuestUserPreferencesManager::GuestUserPreferencesManager() : userAgent "ELinks/0.11.3 (textmode; Darwin 8.10.1 i386; 173x25-2)" has not matched any profile.
DEBUG [http-8080-Processor25] portal.GuestUserPreferencesManager.[] Sep/24 16:58:34 - GuestUserPreferencesManager::registerSession() : unable to find a profile for user "1" and userAgent="ELinks/0.11.3 (textmode; Darwin 8.10.1 i386; 173x25-2)".
DEBUG [DLM Fragment Activator] dlm.RDBMDistributedLayoutStore.[] Sep/24 16:58:34 - RDBMUserLayoutStore::getLayoutID(userId=8, profileId=1 ): SELECT LAYOUT_ID FROM UP_USER_PROFILE WHERE USER_ID=? AND PROFILE_ID=?
DEBUG [DLM Fragment Activator] dlm.RDBMDistributedLayoutStore.[] Sep/24 16:58:34 - SELECT PARAM_NAME, PARAM_VAL, PARAM_TYPE, ULS.STRUCT_ID, CHAN_ID FROM UP_LAYOUT_STRUCT ULS, UP_SS_USER_ATTS UUSA WHERE UUSA.USER_ID=8 AND PROFILE_ID=1 AND SS_ID=4 AND SS_TYPE=1 AND UUSA.STRUCT_ID = ULS.STRUCT_ID AND UUSA.USER_ID = ULS.USER_ID
DEBUG [http-8080-Processor25] portal.GuestUserInstance.[] Sep/24 16:58:34 - GuestUserInstance::valueBound() : instance bound to a new session "F9823FFFA6BEAE6FBE187E200C36ED36"
DEBUG [http-8080-Processor25] support.DefaultListableBeanFactory.[] Sep/24 16:58:34 - Returning cached instance of singleton bean 'org.jasig.portal'
DEBUG [http-8080-Processor25] support.ClassPathXmlApplicationContext.[] Sep/24 16:58:34 - Publishing event in context [org.springframework.context.support.ClassPathXmlApplicationContext@df98c4]: Session created for GUEST_USER (guest) at Mon Sep 24 16:58:34 PDT 2007
 INFO [http-8080-Processor25] handlers.LoggingEventHandler.[] Sep/24 16:58:34 - Session created for GUEST_USER (guest) at Mon Sep 24 16:58:34 PDT 2007
DEBUG [DLM Fragment Activator] dlm.RDBMDistributedLayoutStore.[] Sep/24 16:58:34 - RDBMUserLayoutStore::getLayoutID(userId=8, profileId=1 ): SELECT LAYOUT_ID FROM UP_USER_PROFILE WHERE USER_ID=? AND PROFILE_ID=?
DEBUG [DLM Fragment Activator] dlm.RDBMDistributedLayoutStore.[] Sep/24 16:58:34 - SELECT PARAM_NAME, PARAM_VAL FROM UP_SS_USER_PARM WHERE USER_ID=? AND PROFILE_ID=1 AND SS_ID=4 AND SS_TYPE=2
DEBUG [DLM Fragment Activator] dlm.RDBMDistributedLayoutStore.[] Sep/24 16:58:34 - SQL to load theme channel attribute prefs: SELECT PARAM_TYPE, PARAM_NAME, PARAM_VAL, ULS.STRUCT_ID, CHAN_ID FROM UP_SS_USER_ATTS UUSA, UP_LAYOUT_STRUCT ULS WHERE UUSA.USER_ID=8 AND PROFILE_ID=1 AND SS_ID=4 AND SS_TYPE=2 AND UUSA.STRUCT_ID = ULS.STRUCT_ID AND UUSA.USER_ID = ULS.USER_ID
DEBUG [DLM Fragment Activator] dlm.FragmentActivator.[] Sep/24 16:58:34 -

------ done activating Guests
DEBUG [DLM Fragment Activator] dlm.FragmentActivator.[] Sep/24 16:58:34 -

------ activating 3 - Entertainment
DEBUG [DLM Fragment Activator] portal.RDBMUserIdentityStore.[] Sep/24 16:58:34 - RDBMUserIdentityStore::getPortalUID(userName=ent-lo): SELECT USER_ID, USER_DFLT_USR_ID FROM UP_USER WHERE USER_NAME=?
DEBUG [DLM Fragment Activator] dlm.RDBMDistributedLayoutStore.[] Sep/24 16:58:34 - RDBMUserLayoutStore::getUserProfileById(): SELECT USER_ID, PROFILE_ID, PROFILE_NAME, DESCRIPTION, LAYOUT_ID, STRUCTURE_SS_ID, THEME_SS_ID FROM UP_USER_PROFILE WHERE USER_ID=4 AND PROFILE_ID=1
DEBUG [DLM Fragment Activator] i18n.RDBMLocaleStore.[] Sep/24 16:58:34 - SELECT * FROM UP_USER_LOCALE WHERE USER_ID=? ORDER BY PRIORITY
DEBUG [http-8080-Processor25] portal.PortalSessionManager.[] Sep/24 16:58:34 - PortalSessionManager::doGet() : generated new tag "92716c5f498cb21" for the session F9823FFFA6BEAE6FBE187E200C36ED36
DEBUG [DLM Fragment Activator] dlm.RDBMDistributedLayoutStore.[] Sep/24 16:58:34 - RDBMUserLayoutStore::getLayoutID(userId=4, profileId=1 ): SELECT LAYOUT_ID FROM UP_USER_PROFILE WHERE USER_ID=? AND PROFILE_ID=?
DEBUG [DLM Fragment Activator] dlm.RDBMDistributedLayoutStore.[] Sep/24 16:58:34 - RDBMUserLayoutStore::getUserLayout(): SELECT INIT_STRUCT_ID FROM UP_USER_LAYOUT WHERE USER_ID=4 AND LAYOUT_ID = 1
DEBUG [DLM Fragment Activator] dlm.RDBMDistributedLayoutStore.[] Sep/24 16:58:34 - RDBMUserLayoutStore::getUserLayout(): SELECT ULS.STRUCT_ID,ULS.NEXT_STRUCT_ID,ULS.CHLD_STRUCT_ID,ULS.CHAN_ID,ULS.NAME,ULS.TYPE,ULS.HIDDEN,ULS.UNREMOVABLE,ULS.IMMUTABLE,USP.STRUCT_PARM_NM,USP.STRUCT_PARM_VAL FROM UP_LAYOUT_STRUCT ULS LEFT OUTER JOIN UP_LAYOUT_PARAM USP ON ULS.USER_ID = USP.USER_ID AND ULS.STRUCT_ID = USP.STRUCT_ID WHERE ULS.USER_ID=4 AND ULS.LAYOUT_ID=1 ORDER BY ULS.STRUCT_ID
DEBUG [DLM Fragment Activator] dlm.RDBMDistributedLayoutStore.[] Sep/24 16:58:34 - Adding identifier s2
DEBUG [DLM Fragment Activator] dlm.RDBMDistributedLayoutStore.[] Sep/24 16:58:34 - Adding identifier s3
DEBUG [DLM Fragment Activator] dlm.RDBMDistributedLayoutStore.[] Sep/24 16:58:34 - Adding identifier s333
DEBUG [DLM Fragment Activator] dlm.RDBMDistributedLayoutStore.[] Sep/24 16:58:34 - Adding identifier s28
DEBUG [DLM Fragment Activator] portal.RDBMChannelRegistryStore.[] Sep/24 16:58:34 - RDBMChannelRegistryStore.getChannelDefinition(): org.apache.tomcat.dbcp.dbcp.DelegatingPreparedStatement@efbf3c
DEBUG [DLM Fragment Activator] portal.RDBMPortletPreferencesStore.[] Sep/24 16:58:34 - RDBMPortletPreferencesStore::getDefinitionPreferences(chanId=14)
DEBUG [DLM Fragment Activator] portal.RDBMPortletPreferencesStore.[] Sep/24 16:58:34 - RDBMPortletPreferencesStore::getDefinitionPreferences(): SELECT UPDP.PORTLET_PREF_NAME, UPDP.PORTLET_PREF_READONLY, UPPV.PORTLET_PREF_VALUE FROM UP_PORTLET_DEFINITION_PREFS UPDP, UP_PORTLET_PREF_VALUES UPPV WHERE UPDP.PREF_ID=UPPV.PREF_ID AND CHAN_ID=?
DEBUG [DLM Fragment Activator] portal.RDBMChannelRegistryStore.[] Sep/24 16:58:34 - RDBMChannelRegistryStore.getChannelDefinition(): org.apache.tomcat.dbcp.dbcp.DelegatingPreparedStatement@5316d4
DEBUG [DLM Fragment Activator] portal.RDBMChannelRegistryStore.[] Sep/24 16:58:34 - RDBMChannelRegistryStore.getChannelDefinition(): Read channel 14 from the store
DEBUG [http-8080-Processor25] dlm.RDBMDistributedLayoutStore.[] Sep/24 16:58:34 - RDBMUserLayoutStore::getUserBrowserMapping(): SELECT PROFILE_ID, USER_ID FROM UP_USER_UA_MAP WHERE USER_ID=? AND USER_AGENT=?
DEBUG [DLM Fragment Activator] dlm.RDBMDistributedLayoutStore.[] Sep/24 16:58:34 - Adding identifier s49
DEBUG [DLM Fragment Activator] portal.RDBMChannelRegistryStore.[] Sep/24 16:58:34 - RDBMChannelRegistryStore.getChannelDefinition(): org.apache.tomcat.dbcp.dbcp.DelegatingPreparedStatement@f2787b
DEBUG [http-8080-Processor25] dlm.RDBMDistributedLayoutStore.[] Sep/24 16:58:34 - RDBMUserLayoutStore::getUserBrowserMapping(): SELECT PROFILE_ID, USER_ID FROM UP_USER_UA_MAP WHERE USER_ID=? AND USER_AGENT=?
DEBUG [http-8080-Processor25] portal.GuestUserPreferencesManager.[] Sep/24 16:58:34 - GuestUserPreferencesManager::GuestUserPreferencesManager() : userAgent "ELinks/0.11.3 (textmode; Darwin 8.10.1 i386; 173x25-2)" has not matched any profile.
DEBUG [http-8080-Processor25] portal.GuestUserPreferencesManager.[] Sep/24 16:58:34 - GuestUserPreferencesManager::registerSession() : unable to find a profile for user "1" and userAgent="ELinks/0.11.3 (textmode; Darwin 8.10.1 i386; 173x25-2)".
DEBUG [DLM Fragment Activator] portal.RDBMPortletPreferencesStore.[] Sep/24 16:58:34 - RDBMPortletPreferencesStore::getDefinitionPreferences(chanId=9)
DEBUG [DLM Fragment Activator] portal.RDBMPortletPreferencesStore.[] Sep/24 16:58:34 - RDBMPortletPreferencesStore::getDefinitionPreferences(): SELECT UPDP.PORTLET_PREF_NAME, UPDP.PORTLET_PREF_READONLY, UPPV.PORTLET_PREF_VALUE FROM UP_PORTLET_DEFINITION_PREFS UPDP, UP_PORTLET_PREF_VALUES UPPV WHERE UPDP.PREF_ID=UPPV.PREF_ID AND CHAN_ID=?
DEBUG [DLM Fragment Activator] portal.RDBMChannelRegistryStore.[] Sep/24 16:58:34 - RDBMChannelRegistryStore.getChannelDefinition(): org.apache.tomcat.dbcp.dbcp.DelegatingPreparedStatement@6ccfac
DEBUG [DLM Fragment Activator] portal.RDBMChannelRegistryStore.[] Sep/24 16:58:34 - RDBMChannelRegistryStore.getChannelDefinition(): Read channel 9 from the store
DEBUG [DLM Fragment Activator] dlm.RDBMDistributedLayoutStore.[] Sep/24 16:58:34 - Adding identifier s51
DEBUG [DLM Fragment Activator] portal.RDBMChannelRegistryStore.[] Sep/24 16:58:34 - RDBMChannelRegistryStore.getChannelDefinition(): org.apache.tomcat.dbcp.dbcp.DelegatingPreparedStatement@f2787b
DEBUG [http-8080-Processor25] portal.ChannelRendererFactory.[] Sep/24 16:58:34 - ChannelRendererFactory::newInstance(org.jasig.portal.StandaloneChannelRenderer) : about to construct channel renderer factory: org.jasig.portal.ChannelRendererFactoryImpl
DEBUG [http-8080-Processor25] portal.ChannelRendererFactory.[] Sep/24 16:58:34 - ChannelRendererFactory::newInstance(org.jasig.portal.StandaloneChannelRenderer) : constructed channel renderer factory: org.jasig.portal.ChannelRendererFactoryImpl
DEBUG [DLM Fragment Activator] portal.RDBMPortletPreferencesStore.[] Sep/24 16:58:34 - RDBMPortletPreferencesStore::getDefinitionPreferences(chanId=1)
DEBUG [DLM Fragment Activator] portal.RDBMPortletPreferencesStore.[] Sep/24 16:58:34 - RDBMPortletPreferencesStore::getDefinitionPreferences(): SELECT UPDP.PORTLET_PREF_NAME, UPDP.PORTLET_PREF_READONLY, UPPV.PORTLET_PREF_VALUE FROM UP_PORTLET_DEFINITION_PREFS UPDP, UP_PORTLET_PREF_VALUES UPPV WHERE UPDP.PREF_ID=UPPV.PREF_ID AND CHAN_ID=?
DEBUG [DLM Fragment Activator] portal.RDBMChannelRegistryStore.[] Sep/24 16:58:34 - RDBMChannelRegistryStore.getChannelDefinition(): org.apache.tomcat.dbcp.dbcp.DelegatingPreparedStatement@6ccfac
DEBUG [DLM Fragment Activator] portal.RDBMChannelRegistryStore.[] Sep/24 16:58:34 - RDBMChannelRegistryStore.getChannelDefinition(): Read channel 1 from the store
DEBUG [DLM Fragment Activator] dlm.RDBMDistributedLayoutStore.[] Sep/24 16:58:34 - Adding identifier s50
DEBUG [DLM Fragment Activator] dlm.RDBMDistributedLayoutStore.[] Sep/24 16:58:34 - RDBMUserLayoutStore::getUserLayout(): Layout document for user 4 took 26 milliseconds to create
DEBUG [DLM Fragment Activator] dlm.RDBMDistributedLayoutStore.[] Sep/24 16:58:34 - RDBMUserLayoutStore::getLayoutID(userId=4, profileId=1 ): SELECT LAYOUT_ID FROM UP_USER_PROFILE WHERE USER_ID=? AND PROFILE_ID=?
DEBUG [DLM Fragment Activator] dlm.RDBMDistributedLayoutStore.[] Sep/24 16:58:34 - SELECT PARAM_NAME, PARAM_VAL, PARAM_TYPE, ULS.STRUCT_ID, CHAN_ID FROM UP_LAYOUT_STRUCT ULS, UP_SS_USER_ATTS UUSA WHERE UUSA.USER_ID=4 AND PROFILE_ID=1 AND SS_ID=4 AND SS_TYPE=1 AND UUSA.STRUCT_ID = ULS.STRUCT_ID AND UUSA.USER_ID = ULS.USER_ID
DEBUG [DLM Fragment Activator] dlm.RDBMDistributedLayoutStore.[] Sep/24 16:58:34 - RDBMUserLayoutStore::getLayoutID(userId=4, profileId=1 ): SELECT LAYOUT_ID FROM UP_USER_PROFILE WHERE USER_ID=? AND PROFILE_ID=?
DEBUG [DLM Fragment Activator] dlm.RDBMDistributedLayoutStore.[] Sep/24 16:58:34 - SELECT PARAM_NAME, PARAM_VAL FROM UP_SS_USER_PARM WHERE USER_ID=? AND PROFILE_ID=1 AND SS_ID=4 AND SS_TYPE=2
DEBUG [DLM Fragment Activator] dlm.RDBMDistributedLayoutStore.[] Sep/24 16:58:34 - SQL to load theme channel attribute prefs: SELECT PARAM_TYPE, PARAM_NAME, PARAM_VAL, ULS.STRUCT_ID, CHAN_ID FROM UP_SS_USER_ATTS UUSA, UP_LAYOUT_STRUCT ULS WHERE UUSA.USER_ID=4 AND PROFILE_ID=1 AND SS_ID=4 AND SS_TYPE=2 AND UUSA.STRUCT_ID = ULS.STRUCT_ID AND UUSA.USER_ID = ULS.USER_ID
ERROR [http-8080-Processor25] portal.ExceptionHelper.[] Sep/24 16:58:34 - Programming error
java.lang.NullPointerException
at org.jasig.portal.ChannelStaticData.getChannelDescription(ChannelStaticData.java:236)
at org.jasig.portal.ChannelStaticData.setParameters(ChannelStaticData.java:314)
at org.jasig.portal.StandaloneChannelRenderer.initialize(StandaloneChannelRenderer.java:91)
at org.jasig.portal.GuestUserInstance.writeContent(GuestUserInstance.java:158)
at org.jasig.portal.PortalSessionManager.doGet(PortalSessionManager.java:282)



 All   Comments   Work Log   Change History      Sort Order:
Patrick Berry [02/Oct/07 10:34 AM]
+1 from Drew Wills (mailing list up-dev)
+1 from Jason Shao (mailing list up-dev)

Eric Dalquist [02/Oct/07 01:31 PM]
Added default profile mapping at the end of browser.properties

Eric Dalquist [03/Oct/07 12:23 PM]
Issues have been resolved in 2.6.1-RC2 release