Revision history for FilesManagementSolution


Revision [23360]

Last edited on 2016-05-20 07:38:47 by MasinAlDujaili [Replaces old-style internal links with new pipe-split links.]
Additions:
[[http://131.202.167.33/hostedimages/Image1.png | The menulet: A new header menu links to the attachments (screenshot)]]
[[http://131.202.167.33/hostedimages/Image2.png | The handler activated: One click to get the files management handler (screenshot)]]
[[http://131.202.167.33/hostedimages/Image3.png | The action: A list of all attachments for the WikkaPage (screenshot)]]
[[http://131.202.167.33/hostedimages/MyWikka.png | How it could be with some nice icons: the paper clip icon is the menulet (screenshot)]]
Deletions:
[[http://131.202.167.33/hostedimages/Image1.png The menulet: A new header menu links to the attachments (screenshot)]]
[[http://131.202.167.33/hostedimages/Image2.png The handler activated: One click to get the files management handler (screenshot)]]
[[http://131.202.167.33/hostedimages/Image3.png The action: A list of all attachments for the WikkaPage (screenshot)]]
[[http://131.202.167.33/hostedimages/MyWikka.png How it could be with some nice icons: the paper clip icon is the menulet (screenshot)]]


Revision [19995]

Edited on 2008-06-04 03:56:26 by MasinAlDujaili [working versions]
Additions:
>>Working for 1.1.6.0 to 1.1.6.4 (latest)>>===The principle===
Deletions:
===The principle===


Revision [18559]

Edited on 2008-01-28 00:11:57 by JavaWoman [Modified links pointing to docs server]

No Differences

Revision [10125]

Edited on 2005-07-19 07:55:47 by JavaWoman [layout]
Additions:
~~1) //If you are allowed to write a page then you can manage the attachments (add/delete)// On most wikkas the SandBox is writeble for everyone, which means the everyone can upload files there. There could be people who won't want that.
~~2) if I upload a file with *.php and use listfiles to list it, and click on it, wikka tries to open it as a method!
~&**Link** to files, rather than upload? Would it be possible to add the functionality so that rather than store the files within the Wikki, there was an option box for 'link' as well as upload. This would be useful on internal wikki deployments where you want to avoid file duplication by allowing users to point at the file to create a link to that file on a separate internal server. - RogerD
Deletions:
~1) //If you are allowed to write a page then you can manage the attachments (add/delete)// On most wikkas the SandBox is writeble for everyone, which means the everyone can upload files there. There could be people who won't want that.
~2) if I upload a file with *.php and use listfiles to list it, and click on it, wikka tries to open it as a method!
**Link** to files, rather than upload? Would it be possible to add the functionality so that rather than store the files within the Wikki, there was an option box for 'link' as well as upload. This would be useful on internal wikki deployments where you want to avoid file duplication by allowing users to point at the file to create a link to that file on a separate internal server. - RogerD


Revision [10124]

Edited on 2005-07-19 03:28:33 by RogerD [layout]
Additions:
**Link** to files, rather than upload? Would it be possible to add the functionality so that rather than store the files within the Wikki, there was an option box for 'link' as well as upload. This would be useful on internal wikki deployments where you want to avoid file duplication by allowing users to point at the file to create a link to that file on a separate internal server. - RogerD
Deletions:
~3) **Link** to files, rather than upload? Would it be possible to add the functionality so that rather than store the files within the Wikki, there was an option box for 'link' as well as upload. This would be useful on internal wikki deployments where you want to avoid file duplication by allowing users to point at the file to create a link to that file on a separate internal server. - RogerD


Revision [9944]

Edited on 2005-07-13 00:16:51 by RogerD [layout]
Additions:
~3) **Link** to files, rather than upload? Would it be possible to add the functionality so that rather than store the files within the Wikki, there was an option box for 'link' as well as upload. This would be useful on internal wikki deployments where you want to avoid file duplication by allowing users to point at the file to create a link to that file on a separate internal server. - RogerD
Deletions:
~3) Link to files, rather than upload? Would it be possible to add the functionality so that rather than store the files within the Wikki, there was an option box for 'link' as well as upload. This would be useful on internal wikki deployments where you want to avoid file duplication by allowing users to point at the file to create a link to that file on a separate internal server. - RogerD


Revision [9943]

Edited on 2005-07-13 00:16:21 by RogerD [layout]
Additions:
=====Files Management Solution=====

===The principle===
As many Wikka users, I find the upload process cumbersome. So I propose a new way relying on 3 developments and a few principles.
1) There will be a menulet action in the header and/or footer menus that will allow the user to:
- know if there are files attached to the current page (special display of the menulet link)
- browse the attached files by clicking on the menulet link
- manage the attachments (add/delete)
1) If you are allowed to read a page then you can read/download the attached files
1) If you are allowed to write a page then you can manage the attachments (add/delete)
Of course all this has to be compliant with the site policy (authorized mimes and maximum sizes).
It is indeed compliant with the ACLs, so it is with my solution of ACLsWithUserGroups.

===My solution===
Three developments to provide a complete solution:
- A handler (FilesHandlerInfo - FilesHandler) allowing to call the file management tool from any page
- An action (ListfilesActionInfo - ListfilesAction) allowing to list and download the attached documents
- A menulet action (WikkaMenulets : attachments) to call the handler via a menu

===Screenshots===
[[http://131.202.167.33/hostedimages/Image1.png The menulet: A new header menu links to the attachments (screenshot)]]
[[http://131.202.167.33/hostedimages/Image2.png The handler activated: One click to get the files management handler (screenshot)]]
[[http://131.202.167.33/hostedimages/Image3.png The action: A list of all attachments for the WikkaPage (screenshot)]]

[[http://131.202.167.33/hostedimages/MyWikka.png How it could be with some nice icons: the paper clip icon is the menulet (screenshot)]]

===To Do===
As I cannot have the ModRewrite working on my site, it would be nice if someone could test all this with mod_rewrite.
~&It does work with mod_rewrite, but here are some other comments:
~1) //If you are allowed to write a page then you can manage the attachments (add/delete)// On most wikkas the SandBox is writeble for everyone, which means the everyone can upload files there. There could be people who won't want that.
~2) if I upload a file with *.php and use listfiles to list it, and click on it, wikka tries to open it as a method!
~&--NilsLindenberg
~~&Good points Nils, and both have to be solved. I am going for a long WE but will propose solutions next week. For the 1st point, I think we could restrict the upload to registered users; anyway allowing upload is a matter of trust. For the 2nd point I don't think it is hard to solve.
~~&--ChristianBarthelemy
~~~&Why not an extra acl like "filemanipulation", which would allow upload/delete of files? And Standard to registered users? This would allow a maximal flexibility. --NilsLindenberg
~~~&I'm actually a supporter of an extra acl for "actions on page".....the security/access issues around many of my contributions here would be better with just such an acl (and I've been tempted to hack one in). My forum actions and others currently use a "share=" parameter (to set a token) so that users of the action can be restricted to a specific list w/o allowing page write access. But, that means that anybody **with** pagewrite access can add users. I'd prefer a separate acl for actions where the page owner (and, in my case, therefore owner of the wikkaforum which is linked to the page) can set //users// of the action to one group, and permission to write on the page to a (potentially) different group. Such an acl would, I believe, allow a richer collection of actions/embedded programs to accumulate. My 2 cents. --GmBowen
~~&Actually it's worse than Nils suggests - being able to upload a .php file could enable an attacker to execute arbitrary code... **major** security hole! You'd need a filter that looks at allowable files - and not just by extension either: look at the first few bytes to detect **actual** file type. --JavaWoman
~3) Link to files, rather than upload? Would it be possible to add the functionality so that rather than store the files within the Wikki, there was an option box for 'link' as well as upload. This would be useful on internal wikki deployments where you want to avoid file duplication by allowing users to point at the file to create a link to that file on a separate internal server. - RogerD


----
Deletions:
=====Files Management Solution=====

===The principle===
As many Wikka users, I find the upload process cumbersome. So I propose a new way relying on 3 developments and a few principles.
1) There will be a menulet action in the header and/or footer menus that will allow the user to:
- know if there are files attached to the current page (special display of the menulet link)
- browse the attached files by clicking on the menulet link
- manage the attachments (add/delete)
1) If you are allowed to read a page then you can read/download the attached files
1) If you are allowed to write a page then you can manage the attachments (add/delete)
Of course all this has to be compliant with the site policy (authorized mimes and maximum sizes).
It is indeed compliant with the ACLs, so it is with my solution of ACLsWithUserGroups.

===My solution===
Three developments to provide a complete solution:
- A handler (FilesHandlerInfo - FilesHandler) allowing to call the file management tool from any page
- An action (ListfilesActionInfo - ListfilesAction) allowing to list and download the attached documents
- A menulet action (WikkaMenulets : attachments) to call the handler via a menu

===Screenshots===
[[http://131.202.167.33/hostedimages/Image1.png The menulet: A new header menu links to the attachments (screenshot)]]
[[http://131.202.167.33/hostedimages/Image2.png The handler activated: One click to get the files management handler (screenshot)]]
[[http://131.202.167.33/hostedimages/Image3.png The action: A list of all attachments for the WikkaPage (screenshot)]]

[[http://131.202.167.33/hostedimages/MyWikka.png How it could be with some nice icons: the paper clip icon is the menulet (screenshot)]]

===To Do===
As I cannot have the ModRewrite working on my site, it would be nice if someone could test all this with mod_rewrite.
~&It does work with mod_rewrite, but here are some other comments:
~1) //If you are allowed to write a page then you can manage the attachments (add/delete)// On most wikkas the SandBox is writeble for everyone, which means the everyone can upload files there. There could be people who won't want that.
~2) if I upload a file with *.php and use listfiles to list it, and click on it, wikka tries to open it as a method!
~&--NilsLindenberg
~~&Good points Nils, and both have to be solved. I am going for a long WE but will propose solutions next week. For the 1st point, I think we could restrict the upload to registered users; anyway allowing upload is a matter of trust. For the 2nd point I don't think it is hard to solve.
~~&--ChristianBarthelemy
~~~&Why not an extra acl like "filemanipulation", which would allow upload/delete of files? And Standard to registered users? This would allow a maximal flexibility. --NilsLindenberg
~~~&I'm actually a supporter of an extra acl for "actions on page".....the security/access issues around many of my contributions here would be better with just such an acl (and I've been tempted to hack one in). My forum actions and others currently use a "share=" parameter (to set a token) so that users of the action can be restricted to a specific list w/o allowing page write access. But, that means that anybody **with** pagewrite access can add users. I'd prefer a separate acl for actions where the page owner (and, in my case, therefore owner of the wikkaforum which is linked to the page) can set //users// of the action to one group, and permission to write on the page to a (potentially) different group. Such an acl would, I believe, allow a richer collection of actions/embedded programs to accumulate. My 2 cents. --GmBowen
~~&Actually it's worse than Nils suggests - being able to upload a .php file could enable an attacker to execute arbitrary code... **major** security hole! You'd need a filter that looks at allowable files - and not just by extension either: look at the first few bytes to detect **actual** file type. --JavaWoman


----


Revision [4744]

Edited on 2005-01-17 14:39:10 by NilsLindenberg [cat. changed]
Additions:
CategoryUserContributions
Deletions:
CategoryDocumentation


Revision [4651]

Edited on 2005-01-15 17:02:13 by GmBowen [supporting idea of an "actions on page" acls]
Additions:
~~~&I'm actually a supporter of an extra acl for "actions on page".....the security/access issues around many of my contributions here would be better with just such an acl (and I've been tempted to hack one in). My forum actions and others currently use a "share=" parameter (to set a token) so that users of the action can be restricted to a specific list w/o allowing page write access. But, that means that anybody **with** pagewrite access can add users. I'd prefer a separate acl for actions where the page owner (and, in my case, therefore owner of the wikkaforum which is linked to the page) can set //users// of the action to one group, and permission to write on the page to a (potentially) different group. Such an acl would, I believe, allow a richer collection of actions/embedded programs to accumulate. My 2 cents. --GmBowen


Revision [4647]

Edited on 2005-01-15 16:27:12 by NilsLindenberg [reply to christian]
Additions:
~~~&Why not an extra acl like "filemanipulation", which would allow upload/delete of files? And Standard to registered users? This would allow a maximal flexibility. --NilsLindenberg


Revision [4646]

Edited on 2005-01-15 14:01:53 by JavaWoman [file upload security hole]
Additions:
~~&Actually it's worse than Nils suggests - being able to upload a .php file could enable an attacker to execute arbitrary code... **major** security hole! You'd need a filter that looks at allowable files - and not just by extension either: look at the first few bytes to detect **actual** file type. --JavaWoman


Revision [4645]

Edited on 2005-01-15 12:49:53 by ChristianBarthelemy [Thank you Nils]
Additions:
~~&Good points Nils, and both have to be solved. I am going for a long WE but will propose solutions next week. For the 1st point, I think we could restrict the upload to registered users; anyway allowing upload is a matter of trust. For the 2nd point I don't think it is hard to solve.
~~&--ChristianBarthelemy


Revision [4631]

Edited on 2005-01-14 16:33:04 by NilsLindenberg [comments]
Additions:
~&It does work with mod_rewrite, but here are some other comments:
~1) //If you are allowed to write a page then you can manage the attachments (add/delete)// On most wikkas the SandBox is writeble for everyone, which means the everyone can upload files there. There could be people who won't want that.
~2) if I upload a file with *.php and use listfiles to list it, and click on it, wikka tries to open it as a method!
~&--NilsLindenberg


Revision [4618]

Edited on 2005-01-14 13:33:07 by ChristianBarthelemy [Screenshots added (thanks to Mike)]
Additions:
===Screenshots===
[[http://131.202.167.33/hostedimages/Image1.png The menulet: A new header menu links to the attachments (screenshot)]]
[[http://131.202.167.33/hostedimages/Image2.png The handler activated: One click to get the files management handler (screenshot)]]
[[http://131.202.167.33/hostedimages/Image3.png The action: A list of all attachments for the WikkaPage (screenshot)]]
[[http://131.202.167.33/hostedimages/MyWikka.png How it could be with some nice icons: the paper clip icon is the menulet (screenshot)]]
Deletions:
Add some screenshots {{files}}: there are 3 screenshots I would like to provide but I am not allowed to do it :-(
~&I can mount them at my site if you'd like Christian. Send them to me as an attachment & I'll send you the urls. -- Mike B
~~& thank you for the proposal - I sent you an email.


Revision [4591]

Edited on 2005-01-13 14:02:09 by ChristianBarthelemy [Thank you Mike]
Additions:
~~& thank you for the proposal - I sent you an email.


Revision [4589]

Edited on 2005-01-13 08:30:06 by JavaWoman [inline comments fix]
Additions:
~&I can mount them at my site if you'd like Christian. Send them to me as an attachment & I'll send you the urls. -- Mike B
Deletions:
~~&I can mount them at my site if you'd like Christian. Send them to me as an attachment & I'll send you the urls. -- Mike B


Revision [4576]

Edited on 2005-01-13 00:38:35 by GmBowen [note to Christian]
Additions:
~~&I can mount them at my site if you'd like Christian. Send them to me as an attachment & I'll send you the urls. -- Mike B


Revision [4556]

Edited on 2005-01-12 22:29:18 by ChristianBarthelemy [Who can add some screenshots I took?]
Additions:
- manage the attachments (add/delete)
1) If you are allowed to write a page then you can manage the attachments (add/delete)
- A menulet action (WikkaMenulets : attachments) to call the handler via a menu
Add some screenshots {{files}}: there are 3 screenshots I would like to provide but I am not allowed to do it :-(
Deletions:
- manage the attachements (add/delete)
1) If you are allowed to write a page then you can manage the attachements (add/delete)
- A menulet action (WikkaMenulets : attachements) to call the handler via a menu
Add some screenshots {{files}}


Revision [4554]

Edited on 2005-01-12 22:26:03 by ChristianBarthelemy [Explanations on my Files Management solution]
Additions:
=====Files Management Solution=====
It is indeed compliant with the ACLs, so it is with my solution of ACLsWithUserGroups.
As I cannot have the ModRewrite working on my site, it would be nice if someone could test all this with mod_rewrite.
Add some screenshots {{files}}
Deletions:
=====Listfiles Action Documentation=====
>>==See also:==
Development: ListfilesAction.>>This is the documentation page for the Listfiles action.::c::
===How to use it?===
This particular action can be called in different ways:
""{{listfiles}}"" displays all the files attached to the current page
""{{listfiles page="AnotherPage"}}"" displays all the files attached to another page (provided that the user is allowed to read it)
""{{listfiles file="MyFile"}}"" displays a link to the file named ""MyFile"" attached to the current page (provided the file exists)
""{{listfiles file="MyFile" title="My title"}}"" same as above with "My title" being the text displayed to the link
""{{listfiles page="AnotherPage" file="MyFile"}}"" display a link to the file named ""MyFile"" attached to ""AnotherPage""
""{{listfiles page="AnotherPage" file="MyFile" title="My title"}}"" same as above with "My title" being the text displayed to the link
Nothing I can think about right now.


Revision [4553]

The oldest known version of this page was created on 2005-01-12 22:13:49 by ChristianBarthelemy [Explanations on my Files Management solution]
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki