Bug 7592 - Android Manifest permissions do not show up in MonoDevelop - setting them in MD can cause duplicate permissions.
Summary: Android Manifest permissions do not show up in MonoDevelop - setting them in ...
Status: RESOLVED FIXED
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: Android Add-in ()
Version: unspecified
Hardware: PC Mac OS
: Normal major
Target Milestone: ---
Assignee: Alan McGovern
URL:
Depends on:
Blocks:
 
Reported: 2012-10-02 15:11 UTC by GouriKumari
Modified: 2012-10-03 07:13 UTC (History)
3 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 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:
Status:
RESOLVED FIXED

Description GouriKumari 2012-10-02 15:11:37 UTC
Steps to reproduce the issue:

1. Open MD
2. Create an MFA application
3. Go to Project Options. Add Android Manifest file
4. Add a few permissions AccessFineLocation, Internet by selecting the checkboxes
5. Close and open manifest file again
6. Selected uses-permission check boxes are unchecked. 
7. Again add the same uses-permission AccessFineLocation, Internet by selecting the checkboxes
8. Open AndroidManifest.xml in Properties folder. It will show duplicate entries of the same permissions.

Expected Result:
  Android manifest file must not allow duplicate permission entries

Actual Result:
  Selected permission entries are unchecked when you close and reopen the Android Manifest Xml in project options.
  Able to add duplicate entries to android manifest xml. 
 
TestEnvironment:
MD 3.0.4.7
MFA 4.2.7
Comment 1 PJ 2012-10-02 15:13:36 UTC
Let's note that step 6 is also a bug - MonoDevelop should accurately read and display the contents of Manifest.
Comment 2 PJ 2012-10-02 15:15:31 UTC
Setting priority to normal and severity to major (to account for the fact that setting Android permissions is now essentially broken in MD).
Comment 3 Alan McGovern 2012-10-03 06:18:31 UTC
Fixed and added tests ensuring it doesn't regress again.