|
Thanks Susan and Eric! I found 2 rows in this table for Mozilla/5.0 user agent string with profile_id=2 as below: 0 Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1) Gecko/20061010 Firefox/2.0 1 0 Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.1) Gecko/20061204 Firefox/2.0.0.1 1 0 Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.2) Gecko/20070219 Firefox/2.0.0.2 2 0 Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.3) Gecko/20070309 Firefox/2.0.0.3 1 0 Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.4) Gecko/20070515 Firefox/2.0.0.4 1 0 Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.6) Gecko/20070725 Firefox/2.0.0.6 1 0 Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.7) Gecko/20070914 Firefox/2.0.0.7 1 0 Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.8) Gecko/20071008 Firefox/2.0.0.8 1 0 Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.9) Gecko/20071025 Firefox/2.0.0.9 2 0 Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.8.1.3) Gecko/20070309 Firefox/2.0.0.3 1 After changing these profile_id to 1, everything seems to be working fine now. However, we need to find out why it picked that profile in the first place since I am worry about when a new user_agent string with different rv version being added to this table. Attached are our versions of the properties/browser.mappings and properties/media.properties, which I believe they should have the correct configuration for mapping this particular string. Would you please verify and let me know if I am missing anything? Thanks, Tuy. Susan Bramhall wrote: Interesting. Table name is UP_USER_UA_MAP. It maps user agent string to profile - not sure why it would pick wrong profile though. You could delete the rows for user agent strings with 2.0.0.9 in them in hopes that it would get assigned correctly next time. -- Tuyhang Ly Application Developer Enterprise Systems & Services, Rutgers University 65 Davidson Road, Room 101 - Piscataway, NJ 08854 voice: (732) 445-7393 | fax: (732) 445-5493 | email: [EMAIL PROTECTED] -- 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 |
# This property file is used by com.lotus.xsl.server.DefaultApplyXSL. # # Each line below specifies a mapping rule between a value contained in the HTTP request's user-Agent # field and a value to be scanned for in XSL stylesheet(s) associated with the XML data. This mapping # enables relationships to be defined between client capabilities and stylesheets capable of acting # on these capabilities. # # The rules defined below are order-significant. In other words, if the first rule is unsuccessful, # the second rule will be tried, etc. The media value "unknown" will be used when no rules are # satisfied. # # Example: # # Mapping rules of... # # MSIE=explorer # MSPIE=pocketexplorer # # ...and XML data that contains XSL stylesheet associations of... # # <?xml-stylesheet media="explorer" href="alldata.xsl" type="text/xsl"?> # <?xml-stylesheet alternate="yes" media="pocketexplorer" href="somedata.xsl" type="text/xsl"?> # # ...and an HTTP request that contains a user-Agent value of... # # foo MSPIE bar # # ...will apply the XSL stylesheet somedata.xsl. # MSIE=explorer MSPIE=pocketexplorer HandHTTP=handweb Lynx=lynx Opera=opera Java=java AvantGo=avantgo Nokia=WAP UP.Browser=up DoCoMo=imode Mozilla=netscape
# This properties file defines a system profile mapping for # common browsers. # Each properties line assignes a regular expression for the # user agent string to a profile id. # # Note: order in which regexs are listed is important ! # The code will evaluate each regex from top to bottom, # reporting a profile mapping as soon as something matches. # That means, that something like Netscape's user agent # should be matched last, since the regex for it is more # general then that of IE. # # Suggestions: to optimize the matching process, describe most # popular browsers first # Internet Explorer 6.x Mozilla/4.0 \(compatible; MSIE 6.*=1 # Internet Explorer 5.x Mozilla/4.0 \(compatible; MSIE 5.*=1 # Internet Explorer 4.x Mozilla/4.0 \(compatible; MSIE 4.*=1 # Mozilla browsers and Netscape 6 Mozilla/5.*=1 # Netscape 4.x browsers Mozilla/4.*=1 # Opera 7.x browsers Opera/7.*=1 # Opera 6.x browsers Opera/6.*=1 # Opera 5.x browsers Opera/5.*=1 # W3C HTML Validator W3C_Validator/1.*=1 # Bobby Bobby/4.*=1 # UP WAP browsers UP.Browser.*=2 # Nokia WAP browsers Nokia.*=2 # Motorola phones MOT-.*=2

