Feature Proposal: Retrofitting $session->{webName} in UI::View::viewfile()
Motivation
- UserMasquerading may depend on the web. In that case, $session->{webName} needs to be accurate.
- If attachment access needs to be restricted, pub/Web/Topic/File.ext is rewritten to bin/viewfile/Web/Topic.ext
- When bin/viewfile/Web/Topic/File.ext is accessed, $session->{webName} gets Web/Topic/File and $session->{topicName} gets ext. This is bad for UserMasquerading.
Description and Documentation
By retrofitting $session->{webName} and $session->{topicName} in UI::View::viewfile(), you can resolve the problem.
Examples
Impact
Implementation
--
Contributors: HideyoImazu - 2012-08-08
Discussion
No-brainer, should be fixed.
--
PeterThoeny - 2012-08-08