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

unescaped characters in regexp #104

Open
alpha-er opened this issue Jul 11, 2018 · 0 comments
Open

unescaped characters in regexp #104

alpha-er opened this issue Jul 11, 2018 · 0 comments

Comments

@alpha-er
Copy link

When regexp param has unescaped characters, e.g.

- name: javascript-file
    type: s3
    source:
      bucket: releases
      regexp: my.website.com/scripts/my-javascript-(.*).js
      access_key_id: ((aws_id))
      secret_access_key: ((aws_key))
      region_name: ((aws_region))

It fails the resource check with:

resource script '/opt/resource/check []' failed: exit status 1

stderr:
�[31merror listing files: SerializationError: failed to decode REST XML response
caused by: XML syntax error on line 2: illegal character code U+0010
�[0m

But when the chars are escaped in regexp param, i.e.

regexp: my\.website\.com/scripts/my-javascript-(.*)\.js

It fails the put step with:

error running command: AccessDenied: Access Denied
	status code: 403

Anybody else came across with this problem and if there's a workaround?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant