Skip to content

Unable to publish DID document warning Printed When Activating ParticipantContext at Creation (isActive=true) #480

@thomasrutger

Description

@thomasrutger

Bug Report

Describe the Bug

When creating a ParticipantContext with ParticipantManifest.isActive=true, a warning is printed:

WARNING [DidDocumentService] Updating DID documents after activating a KeyPair failed: Cannot publish DID 'did:web:alice' for participant 'alice' because the ParticipantContext state is not 'ACTIVATED', but 'CREATED'.

This is because the key pair is added first before activating the Participant (which invokes a did document update). The ParticipantContext is activated afterwards and as a result, the DID document will still be published, but the warning is printed regardless.

Expected Behavior

I expect no warning when directly activating a ParticipantContext at creation.

Observed Behavior

The aforementioned warning is printed.

Steps to Reproduce

Create a ParticipantManifest with .active(true), then create the ParticipantContext

Context Information

Add any other context about the problem here.

Detailed Description

If applicable, add screenshots and logs to help explain your problem.

Possible Implementation

Activate the participant (if the manifest has isActive=true) before adding the key pair. Perhaps directly while building the ParticipantContext.

Metadata

Metadata

Labels

bugSomething isn't workingstale

Type

No type
No fields configured for issues without a type.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions