Enable option see as plain text on file summary

Bug #773049 reported by Angel Guzman Maeso
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
loggerhead
Confirmed
Low
Unassigned
loggerhead-breezy
Triaged
Low
Unassigned

Bug Description

I think that add a option "see as plain text" on file summary could be useful for some users.

For example:
http://bazaar.launchpad.net/~shakaran/tivion/daily/view/head:/src/tivion

On that view, you have the options:
-browse files
-view revision numbers per line
-view revision
-view changes to this file
-download file

Just simply add "view as plain file". Also the "view" options could be a group like:

View:
 |- Revision numbers per line
 |- Revision
 |- Changes to this file
 |- As plain text

description: updated
Revision history for this message
John A Meinel (jameinel) wrote : Re: [Bug 773049] [NEW] Enable option see as plain text on file summary

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 4/29/2011 10:52 AM, Angel Guzman Maeso wrote:
> Public bug reported:
>
> I think that add a option "see as plain text" on file summary could be
> useful for some users.
>

There is code (in lp:~loggerhead-team/loggerhead/experimental) that adds
a "/raw" output. (along with /view and /annotate). The main problem is
that it is a huge cross-site-scripting vector. Even if we tell the
browser "this is plain text", IE browsers see "oh, plain text with
<html> in it, let me render it as HTML".

I think there was some work to use special realms when exposing /raw so
that it can't get access to your other cookies, and other XSS tricks.

So this is somewhat in-progress, but requires a lot of security related
work still.

 status: confirmed
 importance: low

John
=:->
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk26jO8ACgkQJdeBCYSNAAPbtgCfWFxY/HJQIYXoMyMAjXRnhsda
Xm0AoKQsO4SN6RaFASWQ94zO6uVaOl0C
=gret
-----END PGP SIGNATURE-----

Changed in loggerhead:
importance: Undecided → Low
status: New → Confirmed
Jelmer Vernooij (jelmer)
Changed in loggerhead-breezy:
status: New → Triaged
importance: Undecided → Low
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.