Page MenuHomePhabricator

Policy - lock down loadCommit() from DiffusionRequest objects
ClosedPublic

Authored by btrahan on Jan 30 2015, 10:47 PM.
Tags
None
Referenced Files
F14482061: D11585.diff
Mon, Dec 30, 7:11 AM
Unknown Object (File)
Sun, Dec 15, 2:20 PM
Unknown Object (File)
Sun, Dec 15, 2:20 PM
Unknown Object (File)
Sun, Dec 15, 2:17 PM
Unknown Object (File)
Sun, Dec 15, 2:16 PM
Unknown Object (File)
Sun, Dec 8, 8:18 AM
Unknown Object (File)
Nov 28 2024, 8:43 AM
Unknown Object (File)
Nov 18 2024, 8:27 PM
Subscribers

Details

Summary

Ref T7094. The class DiffusionRequest has other public methods which use getUser() in an unguarded way. Code inspection of the call sites for loadCommit() also leads me to believe the $user is properly set.

Test Plan

clicked around diffusion a bunch and everything seemed to work okay. (happy to test any particular esoteric endpoints that come to mind)

Diff Detail

Repository
rP Phabricator
Branch
T7094_4
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 4193
Build 4206: [Placeholder Plan] Wait for 30 Seconds

Event Timeline

btrahan retitled this revision from to Policy - lock down loadCommit() from DiffusionRequest objects.
btrahan updated this object.
btrahan edited the test plan for this revision. (Show Details)
btrahan added a reviewer: epriestley.
epriestley edited edge metadata.

I suspect we're consistent on providing a user now.

This revision is now accepted and ready to land.Jan 31 2015, 2:24 PM
This revision was automatically updated to reflect the committed changes.