Bug 4603 - 'Publish Android Application' keystore file creation dialog has validation issues
Summary: 'Publish Android Application' keystore file creation dialog has validation is...
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: Android Add-in ()
Version: unspecified
Hardware: PC Mac OS
: Normal normal
Target Milestone: ---
Assignee: Greg Munn
Depends on:
Reported: 2012-04-23 18:01 UTC by PJ
Modified: 2015-03-05 13:57 UTC (History)
6 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 PJ 2012-04-23 18:01:48 UTC
1) Create a new MFA solution
2) Set to Release mode
3) Project->Publish Android Application

* With 'Create new Keystore' selected, the path entered can be a folder (not a filename) but this will cause the wizard to fail

* With 'Create new Keystore' selected, the file select screen does not allow you to select a folder and write in a name. The file select screen forces you to choose an existing file (but you cannot use an existing file) when 'creating a new keystore'

* There doesn't seem to be a restriction on keystore file extension (I can make my keystore a .dmg if I so choose). Expected?

Some of the issues shown here: http://screencast.com/t/H4t5wPSF

MD: 13c2b8900bc489291f789c8a41b44b04020a4a65
Comment 1 Atsushi Eno 2012-05-08 03:16:35 UTC
* non-file name is now rejected for Create new Keystore. (i.e. fixed)

* I couldn't find MonoDevelop components for any file chooser(?) that allows creating new file, to replace existing file chooser.

* AFAIK there is no file name limitation or assumption for key store file extension. Hence restricting it rather sounds like an invalid choice.

IMO this is not an important issue, so the fix is only in master.
Comment 2 Atsushi Eno 2013-06-21 08:02:53 UTC
As I wrote in comment #1 we need some file chooser addition in MonoDevelop first.

Once it's done, bring this back to XA.
Comment 3 PJ 2014-02-21 13:15:15 UTC
Ok so I revisited the issue, and the validation is still the exact opposite of what we want.

When you select 'Create new keystore', you're forced to choose an *existing* file. When you choose an existing file (because the dialog forces you to) you see the validation error 'Keystore file already exists'.

The file-system browser that opens when you select 'Browse' should allow/force you to enter a new file name, and shouldn't allow you to choose an existing file.

Moving this back out of trivial as it is likely an easy fix and can be a pitfall for new users. We do ned to re-do the entire dialog, but we can probably fix this one before that happens.
Comment 4 Atsushi Eno 2014-09-01 04:25:22 UTC
It is likely duplicate of bug #14292 but just reassigning to Greg so far.
Comment 5 Greg Munn 2015-03-05 13:57:42 UTC
Fixed in publishing workflow changes