Bug 8527 - [Debug mode] Sample "CoreImage" application, On clicking 'Rebase' through 'Rebase Test Images -> Rebase, application throws "System.UnauthorizedAccessException".
Summary: [Debug mode] Sample "CoreImage" application, On clicking 'Rebase' through 'Re...
Alias: None
Product: iOS
Classification: Xamarin
Component: Samples ()
Version: 6.0.x
Hardware: PC Mac OS
: --- normal
Target Milestone: Untriaged
Assignee: Sebastien Pouliot
Depends on:
Reported: 2012-11-20 10:21 UTC by Atin
Modified: 2013-05-29 08:33 UTC (History)
5 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 or GitHub 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 Atin 2012-11-20 10:21:52 UTC
Step to reproduce:
1. Open "CoreImage" sample application in MD
2. Debug the application on device
3. Click on "Rebase Test Images"
4. Click on "Rebase"
5. Observe that application throws 'System.UnauthorizedAccessException'.

Actual result:
On clicking "Rebase" through 'Rebase Test Images -> Rebase , application throws exception: "System.UnauthorizedAccessException has been thrown. Access to the path "/private/var/mobile/Applications/7ECCA4C2-EA0F-46DC-BC7A-4CE89E266740/coreimage.app/TestImages/ColorControls.png" is denied."

Expected result:
On clicking "Rebase" through 'Rebase Test Images -> Rebase , application should not throw any exception/error and it should work properly.

Supplement info:

iOS device log:

MD log:

Environment info:
All Mac
MD 3.0.5 Stable
MT 6.0.8 20faf1fe53be8e75d91e3ec6791935cbfe2e0808
Mono 2.10.9_11

Device info:
iPhone 4S iOS 6.0

Regression Status: Not A REGRESSION, as this issue also exist with stable MD 3.0.5 and Stable MT 6.0.6.

Note : This issue does not appear on Release mode as in release mode two options 'Rebase Test Images' and 'Test Filters' do not appear in application.
Comment 1 Sebastien Pouliot 2012-11-21 16:27:31 UTC
That's "normal" as the application does not have the permission to write in that place (devices are more restrictive than the simulator). 

Those options are used for debugging (that's why they are only seen in DEBUG builds) and getting back the image (from a device) would be a bit more complicated.

I'll update the sample not to save the images when running on devices (and write a warning on the application output).
Comment 2 Sebastien Pouliot 2012-11-21 16:32:38 UTC
Fixed b01f40c3aa4d9cc89af35954761a9c3967289bee
Comment 3 Mohit Kheterpal 2013-05-29 08:33:27 UTC
Today we have this issue on following builds :

XS 4.0.8(build 2)
mono 2.10.12

Device info :
iPhone 5 iOS 6.0.2

Now on clicking "Rebase" through 'Rebase Test Images -> Rebase , application is
not throwing any exception/error and it works properly.

Hence change its status to verified.