purepennons / gss

Automatically exported from code.google.com/p/gss
Other
0 stars 0 forks source link

Allow public folders #17

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
A user can declare a file as public, giving everyone on the Internet the 
opportunity to download the file. It would be useful to add the same 
functionality to folders, so that a user can designate an entire folder to be 
public and have all of its children inherit this attribute. This entails:

1) an additional "public" flag to the Folder domain object
2) an API change to return the attribute in a folder's contents and allow 
modification via a POST request
3) the flag to be visible and modifiable through the web client's properties 
dialog
4) the public folder's contents to be displayed as a web page

The latter point could be either implemented as a new servlet, or preferably as 
the response to a GET request on the folder URI when the Accept header does not 
contain application/json, but text/html.

Original issue reported on code.google.com by past...@gmail.com on 28 Jun 2010 at 12:42

GoogleCodeExporter commented 8 years ago
This has been now fixed.

Original comment by past...@gmail.com on 19 Aug 2010 at 10:48

GoogleCodeExporter commented 8 years ago
There still is a bug while sharing the user's home folder. This action results 
to the following stacktrace 
java.lang.StringIndexOutOfBoundsException: String index out of range: -1
    java.lang.String.substring(String.java:1937)
    gr.ebs.gss.server.rest.FilesHandler.renderHtml(FilesHandler.java:2227)
    gr.ebs.gss.server.rest.FilesHandler.serveResource(FilesHandler.java:514)
    gr.ebs.gss.server.rest.RequestHandler.doGet(RequestHandler.java:372)
    gr.ebs.gss.server.rest.RequestHandler.service(RequestHandler.java:228)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
    gr.ebs.gss.server.CacheFilter.doFilter(CacheFilter.java:64)

By making a folder public the public feature is inherited to all of its 
containing files and all of sub-folders. The opposite is not applied.

Original comment by akaprave...@gmail.com on 23 Sep 2010 at 3:52

GoogleCodeExporter commented 8 years ago

Original comment by past...@gmail.com on 28 Sep 2010 at 12:50

GoogleCodeExporter commented 8 years ago
The following revision numbers fix the issue of allowing public folders to be 
viewed as a web page. 
Revision:  69b5acfc86  
Revision:  c5ef86720b  
Revision:  31eeec5b2f  
Revision:  e29a34127b  

Original comment by akaprave...@gmail.com on 1 Oct 2010 at 9:21

GoogleCodeExporter commented 8 years ago

Original comment by past...@gmail.com on 1 Oct 2010 at 10:03

GoogleCodeExporter commented 8 years ago
The following revision numbers are fixes for the issue.

Revision:  c52acaf119  
Revision:  a11667ac32  
Revision:  ddaec3aed9  

Original comment by akaprave...@gmail.com on 6 Oct 2010 at 6:52

GoogleCodeExporter commented 8 years ago

Original comment by past...@gmail.com on 11 Oct 2010 at 9:13