Ensures that permissions are set when _http_put_common

Without this patch permissions can be lost during
update operations.

Change-Id: I9c7488b4be00d4a4a960cdf8330dd3abd8454215
Closes-bug: #1378376
Merge "Ensures that permissions are set when _http_put_common"