Skip to content

[Ruby] Space in group or file name of a package escaped to + instead of %20 causing "install" to fail #74

Open
@ub1k24

Description

@ub1k24

within

local_var_path = '/crx/packmgr/service/.json/{path}'.sub('{' + 'path' + '}', CGI.escape(path.to_s))

CGI.escape is used to escape URL part when calling AEM api
According to documentation CGI.escape should be used to escape request params not the path.
Now because CGI.escape escapes space to + instead of %20 call to install package doesn't work for a package with space in group or name.
replacing the usage of CGI.escape to: ERB::Util.url_encode(path.to_s) should suffice

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions