Skip to content

No suitable converter found for Bitwarden item - Empty Secure Note #24

@mwdle

Description

@mwdle

Jenkins and plugins versions report

N/A

What Operating System are you using (both controller, and any agents involved in the problem)?

N/A - Affects all platforms

Reproduction steps

  1. Create an empty secure note in your vault
  2. Ensure plugin cache has been refreshed
  3. Run a build that fetches the associated Jenkins credential
  4. The pipeline fails with an error: No suitable converter found for Bitwarden item

Expected Results

...
[Pipeline] {
[Pipeline] stage
[Pipeline] { (Test)
[Pipeline] withCredentials
[Pipeline] // withCredentials
[Pipeline] }
[Pipeline] // stage
[Pipeline] }
[Pipeline] // node
[Pipeline] End of Pipeline
hudson.remoting.ProxyException: java.io.IOException: No suitable converter found for Bitwarden item ID: ff55dgf6-1234-5678-9102-a435042644fd
	at PluginClassLoader for bitwarden-credentials-provider//com.mwdle.bitwarden.converters.CredentialProxy.resolveFullCredential(CredentialProxy.java:156)
	at PluginClassLoader for bitwarden-credentials-provider//com.mwdle.bitwarden.converters.CredentialProxy.invoke(CredentialProxy.java:122)
Also:   hudson.remoting.ProxyException: org.jenkinsci.plugins.workflow.actions.ErrorAction$ErrorId: 39e99011-b0f4-47ce-a859-a452b98c7e0b
Caused: hudson.remoting.ProxyException: java.lang.reflect.UndeclaredThrowableException
	at PluginClassLoader for plain-credentials/jdk.proxy29/jdk.proxy29.$Proxy89.getSecret(Unknown Source)
	at PluginClassLoader for credentials-binding//org.jenkinsci.plugins.credentialsbinding.impl.StringBinding.bindSingle(StringBinding.java:57)
	at PluginClassLoader for credentials-binding//org.jenkinsci.plugins.credentialsbinding.Binding.bind(Binding.java:149)
	at PluginClassLoader for credentials-binding//org.jenkinsci.plugins.credentialsbinding.impl.BindingStep$Execution2.doStart(BindingStep.java:133)
	at PluginClassLoader for workflow-step-api//org.jenkinsci.plugins.workflow.steps.GeneralNonBlockingStepExecution.lambda$run$0(GeneralNonBlockingStepExecution.java:77)
	at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:572)
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:317)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
	at java.base/java.lang.Thread.run(Thread.java:1583)
Finished: FAILURE

Actual Results

The pipeline should not fail and the Bitwarden secure note should resolve to a Jenkins credential with an empty secret value.

Anything else?

No response

Are you interested in contributing a fix?

A fix is in the works

Metadata

Metadata

Assignees

Labels

bugFor changelog: Minor bug. Will be listed after features

Type

No fields configured for Bug.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions