tracker issue : CF-4129731

select a category, or use search below
(searches all categories and all time range)
Title:

Invalid error reporting on cf_socialplugin "Invalid parameter type" - when type is not the invalid parameter

| View in Tracker

Status/Resolution/Reason: Closed/Withdrawn/NotABug

Reporter/Name(from Bugbase): Chris Hopkins / Chris Hopkins (Chris Hopkins)

Created: 03/17/2016

Components: Social

Versions: 2016

Failure Type:

Found In Build/Fixed In Build: CF2016_Final /

Priority/Frequency: Normal / All users will encounter

Locale/System: English / Win 2008 Server R2 86 bit

Vote Count: 0

Problem Description:

Error reporting for cf_soclialplugin does not reference the correct parameter when a parameter has the wrong value

Steps to Reproduce:

<cf_socialplugin url = "http://www.googe.com"
 layout = "incorrect-parameter"
 showfaces = "incorrect-parameter"
 verb = "incorrect-parameter"
 colorscheme = "incorrect-parameter"
 type="like" 
>

Type paramter is correct but others are not

Actual Result:

Invalid parameter type. on line 1

Expected Result:

Invalid parameter (any or all of the wrong parameter names). on line 1

Any Workarounds:

----------------------------- Additional Watson Details -----------------------------

Watson Bug ID:	4129731

External Customer Info:
External Company:  
External Customer Name: Chris Hopkins
External Customer Email:  
External Test Config: My Hardware and Environment details:

Attachments:

Comments:

Hi Chris, This is not a bug. Invalid parameter type does not point to the tag attribute 'type=like'. The tag attribute ‘showfaces’ accepts boolean values. In the example a string value is passed to showfaces .Hence, it throws exception saying 'Invalid Parameter Type'. Try this code: <cf_socialplugin url = "http://www.googe.com" layout = "incorrect-parameter" showfaces = "true" verb = "incorrect-parameter" colorscheme = "incorrect-parameter" type="like" > This code throws following exception: LAYOUT attribute has invalid value. Valid values are : standard,button_count,button,box_count. which is correct . Thanks, Suchika.
Comment by Suchika S.
3270 | March 18, 2016 02:37:45 AM GMT
ooh ok sorry, would be nice though if the error could tell you which parameter the issue was with
Comment by External U.
3271 | March 18, 2016 03:44:21 AM GMT
Hi Chris, Go to CF Admin ->Debugging & Logging ->Debug Output Settings Please enable the setting "Enable Robust Exception Information". This would give you the details of the exception. Thanks, Suchika.
Comment by Suchika S.
3272 | March 18, 2016 03:53:32 AM GMT
Oh sorry, the joys i was testing on trycf.com and not on a local installation (silly me) - makes sense they would not have robust exception logging turned on. Please ignore ticket
Comment by External U.
3273 | March 18, 2016 04:12:56 AM GMT
Thanks Chris. Closing the ticket.
Comment by Suchika S.
3274 | March 18, 2016 04:17:11 AM GMT