Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rules with an asterisk in the name result in an error #45

Open
Habu12 opened this issue Jun 3, 2019 · 0 comments
Open

Rules with an asterisk in the name result in an error #45

Habu12 opened this issue Jun 3, 2019 · 0 comments
Labels
bug Something isn't working

Comments

@Habu12
Copy link

Habu12 commented Jun 3, 2019

When using the import option (e.g. akamai pm import -p "REDACTED"), an ENOENT: no such file or directory error occurs if the property contains a rule with an asterisk in the name (e.g. /.well-known/*.json):

PM CLI error occurred:  Error: ENOENT: no such file or directory, open 'C:\Users\REDACTED\Documents\Akamai Property Manager\REDACTED\config-snippets\_.well-known_*.json' Error: ENOENT: no such file or directory, open 'C:\Users\REDACTED\Documents\Akamai Property Manager\REDACTED\config-snippets\_.well-known_*.json'
    at Object.openSync (fs.js:434:3)
    at Object.writeFileSync (fs.js:1154:35)
    at Utils.writeFile (C:\Users\REDACTED\.akamai-cli\src\cli-promotional-deployment\src\utils.js:102:12)
    at Utils.writeJsonFile (C:\Users\REDACTED\.akamai-cli\src\cli-promotional-deployment\src\utils.js:94:14)
    at ProjectPropertyManager.storeTemplate (C:\Users\REDACTED\.akamai-cli\src\cli-promotional-deployment\src\pm\project_property_manager.js:104:20)
    at ProjectPropertyManager._.each (C:\Users\REDACTED\.akamai-cli\src\cli-promotional-deployment\src\pm\project_property_manager.js:204:22)
    at C:\Users\REDACTED\.akamai-cli\src\cli-promotional-deployment\node_modules\underscore\underscore.js:76:21
    at Function._.each._.forEach (C:\Users\REDACTED\.akamai-cli\src\cli-promotional-deployment\node_modules\underscore\underscore.js:191:9)
    at ProjectPropertyManager.setupPropertyTemplate (C:\Users\REDACTED\.akamai-cli\src\cli-promotional-deployment\src\pm\project_property_manager.js:203:15)
    at DevopsPropertyManager.importProperty (C:\Users\REDACTED\.akamai-cli\src\cli-promotional-deployment\src\pm\devops_property_manager.js:145:23)

Perhaps asterisks and other characters reserved by supported file systems and operating systems should be escaped (and round-tripped) during the import and upload (save) process.

@lkowalsk-akamai-com lkowalsk-akamai-com added the bug Something isn't working label May 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Development

No branches or pull requests

2 participants