Closed CurtlyCritchlow closed 2 years ago
@CurtlyCritchlow was this fixed or not a bug or ... ?
It's not a bug. @cconstab explained that isPublic must be false in the metadata or the shareWith atSign will not be associated with the key. Maybe this should be mentioned in the documentation.
Ah yes. There's been a fair bit of work over the past couple of months around this part of the SDK as there are a few pitfalls like this (there still are, so we could keep backwards compatibility for now).
Most relevant would be https://github.com/atsign-foundation/at_tools/pull/133 which made various AtKey builders available.
Describe the bug The
.getKeys()
does not provide a list with sharedWith parameter.To Reproduce Steps to reproduce the behavior:
First I sent a key using the
.put()
method.Then I retrieve a key using the
.get(key)
successfullythe result is 'duude'
.getKeys()
method but was unsuccessful.The result is an empty list
Expected behavior List of key that was shared with "@wildgreen".
Screenshots Result when a
sharedWith
parameter is providedResult when a
sharedWith
parameter is not providedSmartphone (please complete the following information):
Were you using an @application when the bug was found? No. I'm creating a new @application called at_dude
Additional context