Skip to content
This repository has been archived by the owner on Nov 9, 2022. It is now read-only.

Commit

Permalink
Merge pull request #483 from grtjn/256-path-encoding
Browse files Browse the repository at this point in the history
Fixed #256: applied explicit UTF-8 encoding on file paths for Windows
  • Loading branch information
dmcassel committed Sep 10, 2015
2 parents 42e28f1 + 851dc1d commit 26ce4ed
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
4 changes: 2 additions & 2 deletions deploy/lib/server_config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1435,9 +1435,9 @@ def capture_environment_config(full_config)
# TODO: take content-forests-per-host into account properly, just taking first by default
forests = quote_arglist(find_arg(['--forests']) || "#{@properties["ml.content-db"]},#{@properties["ml.content-db"]}-001-1,#{@properties["ml.modules-db"]},#{@properties["ml.triggers-db"]},#{@properties["ml.schemas-db"]},,#{@properties["ml.app-modules-db"]}")
# TODO: include dav, xdbc, odbc servers?
servers = quote_arglist(find_arg(['--servers']) || "#{@properties["ml.app-name"]}")
servers = quote_arglist(find_arg(['--servers']) || "#{@properties["ml.app-name"]},#{@properties["ml.app-name"]}-xdbc,#{@properties["ml.app-name"]}-odbc,#{@properties["ml.app-name"]}-test,#{@properties["ml.app-name"]}-webdav")
mimes = quote_arglist(find_arg(['--mime-types']) || "##none##")
users = quote_arglist(find_arg(['--users']) || "#{@properties["ml.app-name-user"]},#{@properties["ml.default-user"]}")
users = quote_arglist(find_arg(['--users']) || "#{@properties["ml.app-name"]}-user,#{@properties["ml.default-user"]}")
roles = quote_arglist(find_arg(['--roles']) || "#{@properties["ml.app-role"]}")
end

Expand Down
4 changes: 2 additions & 2 deletions deploy/lib/xcc.rb
Original file line number Diff line number Diff line change
Expand Up @@ -190,11 +190,11 @@ def get_files(path, options = {}, data = [])
if File.directory?(full_path)
get_files(full_path, options, data)
else
data << full_path
data << full_path.encode("UTF-8")
end
end
else
data = [path]
data = [path.encode("UTF-8")]
end
data
end
Expand Down
4 changes: 3 additions & 1 deletion deploy/lib/xquery/setup.xqy
Original file line number Diff line number Diff line change
Expand Up @@ -5158,7 +5158,8 @@ declare function setup:get-users-by-name($names as xs:string*) as element(sec:us
let $ids :=
for $name in $names
return setup:get-users-by-name-helper($name)
return setup:get-users($ids)
where $ids
return setup:get-users($ids)
};

declare function setup:get-users-by-name-helper($name as xs:string*) as xs:integer? {
Expand Down Expand Up @@ -5236,6 +5237,7 @@ declare function setup:get-roles-by-name($roles as xs:string*) as element(sec:ro
let $ids :=
for $role in $roles
return setup:get-roles-by-name-helper($role)
where $ids
return setup:get-roles($ids)
};

Expand Down

0 comments on commit 26ce4ed

Please sign in to comment.