blackberry / VSPlugin

Visual Studio Plugin for BlackBerry Native SDK
9 stars 15 forks source link

[3.0.0005] Error Message is thrown when user try to take backup for signing keys when signing is not done #684

Open pvallabhaneni opened 9 years ago

pvallabhaneni commented 9 years ago

Environment: Win 7 64bit and Win 8.1

Preq: Unr-register Signing keys

Steps to Reproduce:

  1. Goto Blackberry->Options
  2. Goto Blackberry->signing
  3. Observe that Signing is not done

reg

  1. Goto Blackberry->Backup
  2. Observe that "Backup..." button is enabled.
  3. Press "Backup..." button
  4. Save the backup file.

Actual Result on Win 7 64bit:

Error message is thrown as follows:

export failed

Actual Result on Win 8.1 64bit:

Successful message is thrown as follows:

success

On both Win 7 64bit and Win 8.1, when the .zip file is opened, it is shown as empty.

empty

phofman commented 9 years ago

HINT: all errors displayed on UI are mostly caused by internal exception. Exceptions are in 99% of cases printed on BlackBerry-specific output window. Could you please also attach those logs next time? The same is about communication with all Java tools, in case you have other issues/misbehaviors (like about the removal of debug-token).

BTW. There is a magic 'Import' button on your screenshot. It is supposed to let you use a different developer certificate (default is: author.p12, but you can always name it differently and import here).

blackberry-output

pvallabhaneni commented 9 years ago

Verified in 3.0.0015 plugin and found that the issue is sill reproducing.

phofman commented 9 years ago

So where are the logs I kindly asked?? ;)

dbrgss commented 9 years ago

08:55:12.011: BlackBerry plugin started 08:55:12.016: * registered services 08:55:12.016: * loaded NDK descriptions 08:55:12.029: * registered editors 08:55:12.299: * registered build-platforms manager 08:55:12.301: * initialized menus 08:55:12.301: -------------------- DONE (3.0.0) 08:55:12.718: Changed active NDK to: "BlackBerry 10 Native SDK 10.3.1 (10.3.1.995)" 08:55:12.784: Loaded list of Target Devices 08:55:12.784: Found active Target Devices: 08:55:12.784: * device - none 08:55:12.784: * simulator - none 08:56:27.011: Unable to export profile to file: "C:\Users\dburgess\Documents\Visual Studio 2013\Projects\Client Application20\profile_backup_2015-02-13.zip"

(ArgumentNullException) Value cannot be null.

Parameter name: path2 at System.IO.Path.Combine(String path1, String path2) at BlackBerry.NativeCore.Model.DeveloperDefinition.BackupProfile(String outputFile)

phofman commented 9 years ago

Fixed the exception and the way 'Register' and 'Unregister' buttons are enabled. It's available as part of #694 pull-request.