https://dev.arvados.org/https://dev.arvados.org/favicon.ico?15576888422014-06-06T08:49:28ZArvadosTapestry - Bug #2980: attempting to authorize a disabled page should not redirecthttps://dev.arvados.org/issues/2980?journal_id=111412014-06-06T08:49:28ZPhil Hodgsonphil@curoverse.com
<ul></ul><p>On consideration, I would propose one of the following two solutions:</p>
<ul>
<li>Official HTTP behaviour: the URL stays intact, a 403 status code is sent back along with a brief bit of text. I would make the text different depending on the circumstance, either "You are not authorized to see this resource" or "This resource has been disabled", depending</li>
<li>I try to make a better 403 page that has full user navigation available and so on, but the content of the page is an appropriate 403 message (again, either "You are not authorized to see this resource" or "This resource has been disabled", depending), along with <em>a display of the URL that was requested</em>.</li>
</ul>
<p>There may be another compromise, and I'm open to suggestions.</p>
<p>One thing's for certain, and that is there are only two circumstances when this would happen:</p>
<ul>
<li>There is a bug in Tapestry in the form of a link or redirection that was overlooked during my "sectioning off" of Tapestry</li>
<li>The user is really trying to do something they oughtn't to be doing</li>
</ul>
<p>I.e. we can conceivably make an argument that the solution does not have to be "pretty" because it should never happen if everything is working properly.</p>