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