bosh icon indicating copy to clipboard operation
bosh copied to clipboard

Non-descriptive error message when a BOSH job spec property name is a prefix for another one

Open gbrdead opened this issue 1 year ago • 3 comments

Describe the bug It seems that BOSH Director has the following requirement for the properties in a spec file: No property name should be a prefix for the name of another one. The problem is that the error message ("string not matched") is inadequate and does not point to the cause of the error.

To Reproduce Steps to reproduce the behavior (example): Using the bosh CLI, deploy a job with a spec file that contains something like:

properties:
  ala:
    <...>
  ala.bala:
    <...>

Expected behavior A clear and concise description of what the problem is (e.g.: The property name "ala" is a prefix for the property name "ala.bala" and this is not allowed.).

Logs The Ruby exception from the BOSH Director's debug logs is attached.

Versions (please complete the following information):

  • Infrastructure: AWS, GCP, Azure
  • BOSH version: 280.0.15
  • BOSH CLI version: 7.5.0
  • Stemcell version: ubuntu-jammy 22.04.1/1.351

gbrdead avatar Feb 06 '24 12:02 gbrdead

bosh_dir_exc.txt

gbrdead avatar Feb 06 '24 12:02 gbrdead

We are happy to review a PR addressing this issue.

rkoster avatar Feb 22 '24 16:02 rkoster

I am sorry but I don't have the necessary knowledge and skills.

gbrdead avatar Feb 22 '24 17:02 gbrdead