atsign-foundation / at_client_sdk

The Dart implementation of atSDK used for implementing Atsign's technology into other software
https://pub.dev/publishers/atsign.org/packages
BSD 3-Clause "New" or "Revised" License
1.46k stars 31 forks source link

getKeys gives no data with at_client 3.0.20 #497

Closed sachins-geekyants closed 2 years ago

sachins-geekyants commented 2 years ago

Describe the bug While using at_client: "3.0.20" on atmospherePro, I could not see any received files. when looked into getAtKeys method, it was giving no data .

atClient.getAtKeys( regex: 'file_transfer_' );

var scanResult = await getSecondary().executeVerb(builder);

Similarly, to populate sent history we also use getAtKeys method which is working as expected. Only difference we have is sharedBy paramater is added.

atClient.getAtKeys( regex: MixedConstants.FILE_TRANSFER_KEY, sharedBy: atClient.getCurrentAtSign() );

To Reproduce Steps to reproduce the behavior:

  1. use atmospherePro trunk branch and update dependency
  2. check if you are on at_client : "3.0.20"
  3. go to received files, data should not show up.

Expected behavior atClient.getAtKeys should return the atKeys matching the regex.

Screenshots

Screenshot 2022-04-28 at 7 35 15 PM

Smartphone (please complete the following information):

Were you using an @‎application when the bug was found?

Additional context If we use the same atsign on testflight version or point to at_client: "3.0.18" it works as expected and we could see received files.

sachins-geekyants commented 2 years ago

Also, I noticed none of the contacts showed up.

atContactImpl.listContacts() also uses getAtKeys method.

gkc commented 2 years ago

@srieteja please add a test to prevent regression - thanks!