{"action":"created","issue":{"url":"https://api.github.com/repos/RWOverdijk/AssetManager/issues/178","labels_url":"https://api.github.com/repos/RWOverdijk/AssetManager/issues/178/labels{/name}","comments_url":"https://api.github.com/repos/RWOverdijk/AssetManager/issues/178/comments","events_url":"https://api.github.com/repos/RWOverdijk/AssetManager/issues/178/events","html_url":"https://github.com/RWOverdijk/AssetManager/issues/178","id":92692125,"number":178,"title":"umask","user":{"login":"bacinsky","id":3078875,"avatar_url":"https://avatars.githubusercontent.com/u/3078875?v=3","gravatar_id":"","url":"https://api.github.com/users/bacinsky","html_url":"https://github.com/bacinsky","followers_url":"https://api.github.com/users/bacinsky/followers","following_url":"https://api.github.com/users/bacinsky/following{/other_user}","gists_url":"https://api.github.com/users/bacinsky/gists{/gist_id}","starred_url":"https://api.github.com/users/bacinsky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bacinsky/subscriptions","organizations_url":"https://api.github.com/users/bacinsky/orgs","repos_url":"https://api.github.com/users/bacinsky/repos","events_url":"https://api.github.com/users/bacinsky/events{/privacy}","received_events_url":"https://api.github.com/users/bacinsky/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-07-02T17:37:04Z","updated_at":"2015-07-03T06:02:39Z","closed_at":null,"body":"Hi, the umask is used to set right file permissions of cached files in the FilePathCache https://github.com/RWOverdijk/AssetManager/blob/fed0e5cc6799a595627c79c41da4492f6e857cc0/src/AssetManager/Cache/FilePathCache.php#L74 but I'm using the Assetc's FilesystemCache also but there is no umask fix, so I wonder if it will be good to provide that fix within the AssetManager or I have to handle it by myself. I think it's kind of a common issue, but maybe there is a better solution I dont' know.\r\n\r\n```\r\nclass FilesystemCache extends \\Assetic\\Cache\\FilesystemCache\r\n{\r\n    /**\r\n     * {@inheritdoc}\r\n     */\r\n    public function set($key, $value)\r\n    {\r\n        $umask = umask(0);\r\n        parent::set($key, $value);\r\n        umask($umask);\r\n    }\r\n}\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/RWOverdijk/AssetManager/issues/comments/118246887","html_url":"https://github.com/RWOverdijk/AssetManager/issues/178#issuecomment-118246887","issue_url":"https://api.github.com/repos/RWOverdijk/AssetManager/issues/178","id":118246887,"user":{"login":"RWOverdijk","id":781745,"avatar_url":"https://avatars.githubusercontent.com/u/781745?v=3","gravatar_id":"","url":"https://api.github.com/users/RWOverdijk","html_url":"https://github.com/RWOverdijk","followers_url":"https://api.github.com/users/RWOverdijk/followers","following_url":"https://api.github.com/users/RWOverdijk/following{/other_user}","gists_url":"https://api.github.com/users/RWOverdijk/gists{/gist_id}","starred_url":"https://api.github.com/users/RWOverdijk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RWOverdijk/subscriptions","organizations_url":"https://api.github.com/users/RWOverdijk/orgs","repos_url":"https://api.github.com/users/RWOverdijk/repos","events_url":"https://api.github.com/users/RWOverdijk/events{/privacy}","received_events_url":"https://api.github.com/users/RWOverdijk/received_events","type":"User","site_admin":false},"created_at":"2015-07-03T06:02:39Z","updated_at":"2015-07-03T06:02:39Z","body":"Hey :)\r\n\r\nIf this is a real issue with Assetic I think you should post your issue there."}}