Bug 51025 - Workbooks are deleted when unable to open
Summary: Workbooks are deleted when unable to open
Status: RESOLVED FIXED
Alias: None
Product: Workbooks & Inspector
Classification: Xamarin
Component: Client: Windows ()
Version: 1.0.0
Hardware: PC Windows
: High major
Target Milestone: 1.1
Assignee: xamarininteractive
URL:
Depends on:
Blocks:
 
Reported: 2016-12-28 15:43 UTC by Johan Visser
Modified: 2017-01-23 22:57 UTC (History)
2 users (show)

Tags:
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:
Status:
RESOLVED FIXED

Description Johan Visser 2016-12-28 15:43:22 UTC
When a workbook can't be opened, it is deleted without confirmation from the user.
Some workbooks are actual Zip files and can be opened directly. 

I expect an error telling me that the file couldn't be opened and the leave the file for me to check the contents.
Deleting files without warning is unacceptable.
Comment 1 Aaron Bockover [MSFT] 2017-01-13 17:29:18 UTC
The current behavior should be that zipped workbooks are simply extracted and left so as a directory. We may revisit this behavior however.

If there is an actual bug here (and not just the behavior I mentioned), please attach logs to the bug report: https://developer.xamarin.com/guides/cross-platform/workbooks/install/#Reporting_Bugs

And if possible, attach the zipped workbook that was causing the issue.
Comment 2 Aaron Bockover [MSFT] 2017-01-23 22:57:28 UTC
This should be fixed in the upcoming 1.1 release. Zipped workbooks will extract to a temporary working location. The original file should remain untouched until/unless you save any changes.