{"action":"created","issue":{"url":"https://api.github.com/repos/zfcampus/zf-content-negotiation/issues/82","repository_url":"https://api.github.com/repos/zfcampus/zf-content-negotiation","labels_url":"https://api.github.com/repos/zfcampus/zf-content-negotiation/issues/82/labels{/name}","comments_url":"https://api.github.com/repos/zfcampus/zf-content-negotiation/issues/82/comments","events_url":"https://api.github.com/repos/zfcampus/zf-content-negotiation/issues/82/events","html_url":"https://github.com/zfcampus/zf-content-negotiation/issues/82","id":174929921,"number":82,"title":"Failing unit test on Mac","user":{"login":"dstockto","id":775393,"avatar_url":"https://avatars2.githubusercontent.com/u/775393?v=4","gravatar_id":"","url":"https://api.github.com/users/dstockto","html_url":"https://github.com/dstockto","followers_url":"https://api.github.com/users/dstockto/followers","following_url":"https://api.github.com/users/dstockto/following{/other_user}","gists_url":"https://api.github.com/users/dstockto/gists{/gist_id}","starred_url":"https://api.github.com/users/dstockto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dstockto/subscriptions","organizations_url":"https://api.github.com/users/dstockto/orgs","repos_url":"https://api.github.com/users/dstockto/repos","events_url":"https://api.github.com/users/dstockto/events{/privacy}","received_events_url":"https://api.github.com/users/dstockto/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-09-04T03:52:49Z","updated_at":"2017-11-14T20:28:12Z","closed_at":"2017-11-14T20:28:12Z","author_association":"NONE","body":"In `\\ZFTest\\ContentNegotiation\\ContentTypeListenerTest`, there is a test to show that a file is removed from the tmp directory after upload is done - `testOnFinishWillRemoveAnyUploadFilesUploadedByTheListener`. \n\nThe test is failing because the listener is doing some sanity checks that don't work on the mac. In `\\ZF\\ContentNegotiation\\ContentTypeListener`, in the `onFinish` method (line 132), there's a check to ensure the directory the temporary file is in matches the one expected from the listener. On the mac, during one particular run, the MultipartContentParser::getUploadTempDir returned a value of `/var/folders/h7/m7pxgyxj4c77rcs9mm4b_bvc0000gp/T`. However, when writing to that directory, the file path included or specified ends up being `/private/var/folders/h7/m7pxgyxj4c77rcs9mm4b_bvc0000gp/T/zfcp60K8E`. Note the addition of `/private`. It's the same place, but the check will fail and the files will not be removed.\n\nI'm happy to submit a patch for it, but I'd like to know what way you'd prefer to solve it. \n"},"comment":{"url":"https://api.github.com/repos/zfcampus/zf-content-negotiation/issues/comments/344387742","html_url":"https://github.com/zfcampus/zf-content-negotiation/issues/82#issuecomment-344387742","issue_url":"https://api.github.com/repos/zfcampus/zf-content-negotiation/issues/82","id":344387742,"user":{"login":"weierophinney","id":25943,"avatar_url":"https://avatars1.githubusercontent.com/u/25943?v=4","gravatar_id":"","url":"https://api.github.com/users/weierophinney","html_url":"https://github.com/weierophinney","followers_url":"https://api.github.com/users/weierophinney/followers","following_url":"https://api.github.com/users/weierophinney/following{/other_user}","gists_url":"https://api.github.com/users/weierophinney/gists{/gist_id}","starred_url":"https://api.github.com/users/weierophinney/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/weierophinney/subscriptions","organizations_url":"https://api.github.com/users/weierophinney/orgs","repos_url":"https://api.github.com/users/weierophinney/repos","events_url":"https://api.github.com/users/weierophinney/events{/privacy}","received_events_url":"https://api.github.com/users/weierophinney/received_events","type":"User","site_admin":false},"created_at":"2017-11-14T20:28:12Z","updated_at":"2017-11-14T20:28:12Z","author_association":"OWNER","body":"Fixed with #94."}}
{"actor":{"display_login":"weierophinney"}}