credentials vs doFillxxItems collision

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

credentials vs doFillxxItems collision

nicolas de loof-2
Hi,

in a plugin I'm developing I need to let end-user configure credentials and an organisation ID selected from a list. This list is populated based on selected credentials.

The issue I have is that doFillOrganisationIdItems() is invoked as form is rendered with empty credentials, seems to me there's some race condition as the credentials select list get populated in parallel. But doFillOrganisationIdItems never get invoked with the actually selected credentialsId

Does this ring any bell ? Known bug ? Possible workaround ?

--
You received this message because you are subscribed to the Google Groups "Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/CANMVJzkmigYcKS7fCGjfVGb29m-PO_%3DaT%2BMO3UvOb7q8m0n_Zg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: credentials vs doFillxxItems collision

Antonio Muñiz
Hi Nicolas,

The same approach is used in other plugins (credentials load and items load based on selected credentials), and it works fine.
Maybe you can compare your code with that.

On 23 May 2018 at 23:35, nicolas de loof <[hidden email]> wrote:
Hi,

in a plugin I'm developing I need to let end-user configure credentials and an organisation ID selected from a list. This list is populated based on selected credentials.

The issue I have is that doFillOrganisationIdItems() is invoked as form is rendered with empty credentials, seems to me there's some race condition as the credentials select list get populated in parallel. But doFillOrganisationIdItems never get invoked with the actually selected credentialsId

Does this ring any bell ? Known bug ? Possible workaround ?

--
You received this message because you are subscribed to the Google Groups "Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/CANMVJzkmigYcKS7fCGjfVGb29m-PO_%3DaT%2BMO3UvOb7q8m0n_Zg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.



--
Antonio Muñiz
Software Engineer
CloudBees, Inc.

--
You received this message because you are subscribed to the Google Groups "Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/CAJc7kzQxHeAve3Cf3GKUwmsviY%2BVxGwYgM2-6hO_vcqALFfk7Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.