Hi,

> I imported a cert with openxpkicli and tried to change metadata afterwards. 
> the workflow failed because the validator global_system_id is missing:
> 
> 2024/08/22 14:15:55 ERROR workflow_error exception thrown from 
> [Workflow::Factory: 806; before: Workflow::Action: 51]: No validator with 
> name 'global_system_id' available 
> [pid=1423|sid=pvcE|rid=555ffb10b368|wftype=change_metadata|wfid=7423]
> 2024/08/22 14:15:55 ERROR Error while executing API command; __caller__ => 
> /usr/share/perl5/OpenXPKI/Service/Default.pm:663, __error__ => No validator 
> with name 'global_system_id' available 
> [pid=1423|sid=pvcE|rid=555ffb10b368|wftype=change_metadata|wfid=7423]
> 
> 
> I created a fqdn validator as a workaround, not sure if system_id should be 
> an fqdn or a simple string
> 
> workflow/global/validator/system_id.yaml:
> 
> class: OpenXPKI::Server::Workflow::Validator::Regex
> arg:
> - $meta_system_id
> param:
>   regex: fqdn
> #   error: I18N_OPENXPKI_UI_WORKFLOW_METADATA_VALIDATOR_SYSTEM_ID_FAILED
> 
> 
> I create a PR if I know, how system_id is defined.

The community edition's version of the change_metadata workflow seems to be 
missing this validator. Seems like you were the first person to try this 
operation in the CE :)

I will create a ticket so this can be fixed with the next community release. 

Cheers

Martin






_______________________________________________
OpenXPKI-users mailing list
OpenXPKI-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openxpki-users

Reply via email to