Page MenuHomePhabricator

Raw files in Paste no longer attach to Pastes properly after ApplicationEditor
Closed, ResolvedPublic

Description

I think this might have been caused by recent changes to Paste as part of T9132. Basically, it seems that "View Raw File" in Paste no longer works except for the author of the paste. For example, if I click on "View Raw File" on P1887 on this install then I get a policy error:

 62  You Shall Not Pass  Restricted File.png (980×1 px, 111 KB)

Event Timeline

joshuaspence raised the priority of this task from to Needs Triage.
joshuaspence updated the task description. (Show Details)
joshuaspence added a project: Paste.
joshuaspence added a subscriber: joshuaspence.

I started looking at this. It seems like the file attached to the Paste has a view policy of no-one, whereas it should probably inherit the view policy of the parent Paste.

I'm not sure how to fix this without adding pastePHID to PhabricatorFile, which doesn't feel like the best approach.

Actually something weird is going on... I can't edit pastes either, even if the Edit Policy is set to "All Users".

File should be getting attached to the paste, but isn't. I think I accidentally caused a side effect here when changing how the transaction works.

Thanks, I spent ~10 minutes on it but couldn't figure it out.

I'm partly just guessing here but I think It's almost certainly my fault.

epriestley renamed this task from Unable to view raw paste to Raw files in Paste no longer attach to Pastes properly after ApplicationEditor.Nov 16 2015, 6:18 PM
epriestley triaged this task as Normal priority.
epriestley added a project: ApplicationEditor.