Skip to content

Unable to execute a Direct Flow without specifying a globalSender #169

@helgeskjellevik

Description

@helgeskjellevik

We're currently upgrading the signature-api-client-java from version 2.2. to version 4.6.

In our setup, we use a DirectClient with no global sender specified in the ClientConfiguration.
Instead we specify the sender’s organization number on each and every signature job.

In version 4.6, we encounter a problem with this method call, which throws an exception regardless if the job.getSender() is present or not.

no.digipost.signature.client.asice.CreateASiCE#createASiCE(JOB job):Line 40

        Sender sender = job.getSender()
                .orElse(globalSender
                .orElseThrow(SENDER_NOT_SPECIFIED));

The current workaround is to specify a dummy value for globalSender.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions