Ensures that permissions are set when _http_put_common

Without this patch permissions can be lost during
update operations.

Closes-bug: #1378376
(cherry picked from commit ed0ba01b50c79a395b18072d6e529a92e09b2a46)
Change-Id: I9c7488b4be00d4a4a960cdf8330dd3abd8454215