Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 451074 - wiki.gentoo.org doesn't allow upload of plain text files
Summary: wiki.gentoo.org doesn't allow upload of plain text files
Status: RESOLVED WONTFIX
Alias: None
Product: Websites
Classification: Unclassified
Component: Wiki (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Wiki Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-01-09 17:39 UTC by Ulrich Müller
Modified: 2015-04-06 09:36 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ulrich Müller gentoo-dev 2013-01-09 17:39:59 UTC
I am migrating the contents of the Trac wiki that we used for the Emacs project. Trac allowed for plain text files attached to particular pages, see for example here: <http://overlays.gentoo.org/proj/emacs/wiki/test%20plans#no1>

There seems to be no equivalent functionality in wiki.gentoo.org. The main problem is not so much the lack of attachments (which could be worked around in other ways), but that it is impossible to upload anything other than images. So, including a link like [[Media:hello.c]] from a wiki page isn't possible.

For the time being, I've attached the files to bugzilla (bug 451032) and link to them from the wiki page: <http://wiki.gentoo.org/wiki/Project:Emacs/Test_plans> But obviously, this isn't a good solution because it is not self-contained.

(Not sure if this is a configuration issue, or a general limitation of the Mediawiki software.)
Comment 1 Alex Xu (Hello71) 2013-07-08 12:33:07 UTC
I don't believe it's possible to have plain files uploaded into the File: namespace.

However, any number of arbitrary namespaces can be created (with SSH access), e.g. Code:.

Subpages are likely a better solution, though, especially because you say "attached to particular pages". Remember, subpages can be nested indefinitely (or close enough, anyways) [0].

If necessary, the whole page can be enclosed in a <code> or <code><nowiki> block.

[0] https://www.mediawiki.org/wiki/Help:Subpages
Comment 2 Ulrich Müller gentoo-dev 2013-07-08 16:46:08 UTC
I see two problems with subpages:

- Plain text included in <code> isn't convenient for downloading.
  Preferably, it should be possible to download the files with one click
  from the (parent) wiki page.
- Not all of the files are licensed under CC-BY-SA which is required for
  wiki pages.
Comment 3 Alex Legler (RETIRED) archtester gentoo-dev Security 2013-07-08 17:00:25 UTC
(In reply to Alex Xu from comment #1)
> I don't believe it's possible to have plain files uploaded into the File:
> namespace.
> 

If configured, it is. But the whole wiki is made for images, audio and video; other file types. There are some security concerns when allowing more file types.

In terms of solution, on -dev, robbat2 talked about reviving the 'project hosting' idea he had a while ago.
Comment 4 Alex Legler (RETIRED) archtester gentoo-dev Security 2015-04-06 09:36:19 UTC
(In reply to Alex Legler from comment #3)
> In terms of solution, on -dev, robbat2 talked about reviving the 'project
> hosting' idea he had a while ago.

Specifically for hosting small web resources, we have now launched a first sub-set of the service:

https://wiki.gentoo.org/wiki/Project:Infrastructure/Project_File_Hosting

As such, we won't allow plain-text files to be uploaded to the wiki, WONTFIX likely fits best here, as there's no RESO USEALTERNATIVE. ;)