What is the underlying problem you're trying to solve?
If a bundle uses a special character like such as ? in bundle name in the bundles config, Windows will fail to write the folder that persists the bundle since it uses the bundle name as a basis for the folder name.
For example, if a bundle is called: foo?context=bar, then the directory: foo?context=bar cannot be created to place the bundle.tar.gz inside.
An example config is:
"bundles": {
"foo": {
...
"resource": "/bundles/foo",
},
"foo?type=context": {
...
"resource": "/bundles/foo?type=context",
}
}
Describe the ideal solution
Allow setting a different folder name per bundle in the OPA config file.
Describe a "Good Enough" solution
Strip the special characters of the bundle name before creating the folder.
What is the underlying problem you're trying to solve?
If a bundle uses a special character like such as
?in bundle name in the bundles config, Windows will fail to write the folder that persists the bundle since it uses the bundle name as a basis for the folder name.For example, if a bundle is called:
foo?context=bar, then the directory:foo?context=barcannot be created to place thebundle.tar.gzinside.An example config is:
Describe the ideal solution
Allow setting a different folder name per bundle in the OPA config file.
Describe a "Good Enough" solution
Strip the special characters of the bundle name before creating the folder.