eclipse-edc / eclipse-edc/IdentityHub
Unable to publish DID document warning Printed When Activating ParticipantContext at Creation (isActive=true)
- Dominant language
- Java
- Stars
- 46
- Forks
- 61
- Avg merge
- 20h 35m
- Merged PRs (30d)
- 22
Description
# 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.
Contributor guide
Assessment
This issue has not been assessed yet.