Bug 40466 - Open workbook file from finder (double click) with blanks in the name does not work
Summary: Open workbook file from finder (double click) with blanks in the name does no...
Alias: None
Product: Workbooks & Inspector
Classification: Xamarin
Component: Client: Mac ()
Version: 0.7.1
Hardware: PC Mac OS
: --- normal
Target Milestone: ---
Assignee: inspectordev-discuss
Depends on:
Reported: 2016-04-17 09:37 UTC by Andreas Klapperich
Modified: 2017-02-22 16:47 UTC (History)
3 users (show)

Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.

Please create a new report on Developer Community with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:

Description Andreas Klapperich 2016-04-17 09:37:18 UTC

I can open a file with blanks from the Inspector but not from the finder.

Sample on gihtub

I cannot add a log file from the error, because there is none with the error from the finder.
Comment 1 Sandy Armstrong [MSFT] 2016-04-17 16:45:03 UTC
I reproduced and saw the following in the client log:

[Critical][00:00:30.8921570] AppDomain: unhandled exception: System.Exception: Could not initialize an instance of the type 'Foundation.NSUrl': the native 'initWithString:' method returned nil.
It is possible to ignore this condition by setting MonoTouch.ObjCRuntime.Class.ThrowOnInitFailure to false.
  at Foundation.NSObject.InitializeHandle (IntPtr handle, System.String initSelector) <0x114b97310 + 0x001b0> in <filename unknown>:0 
  at Foundation.NSUrl..ctor (System.String urlString) <0x11d99bd80 + 0x000b0> in <filename unknown>:0 
  at Xamarin.Inspector.Mac.Client.AppDelegate.OpenFile (AppKit.NSApplication sender, System.String filename) <0x11d99bcb0 + 0x00082> in <filename unknown>:0 
  at (wrapper managed-to-native) AppKit.NSApplication:NSApplicationMain (int,string[])
  at AppKit.NSApplication.Main (System.String[] args) <0x1103f3520 + 0x000c3> in <filename unknown>:0 
  at Xamarin.Inspector.Mac.Client.Entry.Main (System.String[] args) <0x10d30ae40 + 0x00025> in <filename unknown>:0 

It looks like we are failing to urlencode the path string before passing to NSUrl. Thanks for finding this.
Comment 2 Sandy Armstrong [MSFT] 2016-05-26 14:20:17 UTC
This was fixed around 0.8.0.