Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 473292

Summary: TypeError: b.hrefCallback is not a function (in navigatorRenderer.js)
Product: [ECD] Orion Reporter: Grant Gayed <grant_gayed>
Component: ClientAssignee: Michael Rennie <Michael_Rennie>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: Michael_Rennie
Version: 10.0   
Target Milestone: 10.0   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Grant Gayed CLA 2015-07-22 10:49:15 EDT
Our uncaught error logging indicates a problem in the navigatorRenderer.js line marked below:

var openWithCommand = mExtensionCommands.getOpenWithCommand(commandService, item, openWithCommands);
if (openWithCommand) {
	href = openWithCommand.hrefCallback({items: item}); // <-----
}

openWithCommand is resolving to a truthy value but does not have function "hrefCallback()".  This has happened for 17 unique users over the last 5 days across various supported browser types.
Comment 1 Michael Rennie CLA 2015-07-28 17:51:13 EDT
This needed a check to see if hrefCallback is a function:

http://git.eclipse.org/c/orion/org.eclipse.orion.client.git/commit/?id=207ac1b1f2ec73fb7daf24cd616776775eaa910a
Comment 2 Michael Rennie CLA 2015-07-28 17:57:17 EDT
The API doc in commands states that the function is optional, so I did a pass over orion and updated or added checks for it:

http://git.eclipse.org/c/orion/org.eclipse.orion.client.git/commit/?id=ad5670f06271565eb7a363ae516e9393713bfd3c