google / google-authenticator

Open source version of Google Authenticator (except the Android app)
Apache License 2.0
5.17k stars 966 forks source link

Invalid barcode during account transfer from android to iphone #715

Open AnshulMalik opened 3 years ago

AnshulMalik commented 3 years ago

Describe the bug I tried export from Android phone to iPhone, which results into error very similar to this screen. Sorry, I can not share the original image for obvious reasons.

To Reproduce Steps to reproduce the behavior:

  1. From Android phone: Transfer Accounts -> Export accounts
  2. On iPhone: Begin Setup -> Scan Barcode
  3. Scan the barcode from android phone
  4. See error

Expected behavior Should not see error on import

Screenshots https://github.com/google/google-authenticator/issues/715#issuecomment-713735340

Smartphone (please complete the following information):

ThomasHabets commented 3 years ago

Could you make edited screenshots, with secrets blacked out? It's very hard to troubleshoot if you just say "similar to this other guy's screenshot for a different problem".

AnshulMalik commented 3 years ago

IMG_0017

AnshulMalik commented 3 years ago

@ThomasHabets any idea why this might be happening?

ThomasHabets commented 3 years ago

@AnshulMalik dunno. I'm not even sure if account transfer is part of the opensource code.

But I'll file a bug internally.

AnshulMalik commented 3 years ago

I used this app to export the barcodes individually and then import in iOS, https://getaegis.app/

May be the issue is that iOS app is expecting single instance of TOTP/whatever, and in android export, we are exporting it as an array.

ThomasHabets commented 3 years ago

@AnshulMalik wait, what?

Could you rewrite how to reproduce this? You're now saying you're using other apps?

AnshulMalik commented 3 years ago

Steps to reproduce are the same.

I found a workaround which is mentioned in the comment above.

ThomasHabets commented 3 years ago

Oh I see, that was workaround, not clarification of how to trigger.

ThomasHabets commented 3 years ago

I have filed b/171954490 internally.

rodfersou commented 3 years ago

I got bitten by the same bug here

ThomasHabets commented 3 years ago

@dominic676767 please don't do that. This is not facebook. You can click the subscribe button if you want to follow the progress.

Spam comments like this only make other people unsubscribe.