Statistics
| Branch: | Tag: | Revision:

root / src / gr / ebs / gss / server / rest / FilesHandler.java @ 086c7250

History | View | Annotate | Download (84.7 kB)

# Date Author Comment
086c7250 04/19/2011 02:52 pm Giannis Koutsoubos

include shared flag for subfolders json output

af6aa461 04/06/2011 04:37 pm Christos Stathis

Re-structured the whole thing
Removed unused folders
Re-packaged the java code
Fixed the packaging of various artifacts to contain only relevant things
Changed build.xml to check for all dependencies, fixed target dependencies

db93eeea 03/04/2011 03:22 pm Christos Stathis

Fixed issue 72. IE does not send the correct Accept header resulting in gss serving public html folders with json content type instead of html

39ece393 03/04/2011 03:18 pm Christos Stathis

Fixed regression bug with uninitialized fields when rendering a public folder as html

946cc90a 02/11/2011 05:47 pm Christos Stathis

Merge with optimizations branch

f8543d77 01/26/2011 02:55 pm Christos Stathis

Backed out changeset ad848a720811

62c4facc 01/18/2011 05:04 pm Christos Stathis

Files uploaded on a shared folder get the user as owner instead of the folder 's owner

a3c09df3 01/07/2011 03:02 pm Giannis Koutsoubos

temorary fix for lazy loading exception

f7c44c33 12/21/2010 06:03 pm fstamatelopoulos

removed even more DTOs

f5684a19 12/14/2010 02:32 pm Christos Stathis

Merge with sharing branch

8a89a0ce 12/03/2010 03:02 pm Christos Stathis

Removed System.out debug messages

16b54aa8 12/02/2010 03:09 pm Giannis Koutsoubos

shared flag for shared files(removed explicit head for fetching file display info), versioned flag for versioned files, admin support to update shared flag for all existing files and folders

bb9093fe 11/29/2010 04:53 pm Christos Stathis

Uncommented lines that are forgotten as commented

c031299f 11/29/2010 03:31 pm Christos Stathis

Field name in X-GSS-Metadata header should have been encoded

d2b12cad 11/12/2010 05:26 pm Giannis Koutsoubos

fix for 404 on upload progress, needs some further tuning

eaf8360b 10/22/2010 06:09 pm Christos Stathis

Fixed indentation and brackets

9bee2fe5 10/11/2010 10:31 am Natasa Kapravelou

Fix for Issue 35 and for Revision: 8746b05052 concerning the forbideness of '/' in the file name.

2f4700ad 10/08/2010 06:14 pm Natasa Kapravelou

Remove the first and the trailing slash from the query when searching for a resource

c62f0b96 10/07/2010 05:24 pm Natasa Kapravelou

Recall a faulty previous commit that was related to forbiding the uploading of a file which file name would contain a slash and also adding to some files a copyright year.

8b79a1c8 10/07/2010 04:15 pm Natasa Kapravelou

Fix for Issue 35, added a note message on creating a new folder or updating an existing folder, informing the user that slashes are not allowed in folder names.The same note is added during the update of file name. Also, the client code has altered in order to forbid the creation or the update of a resource name.At last, don't allow uploading a file which file name contains slash.

62c7d7dc 10/07/2010 12:59 pm Natasa Kapravelou

Fix for Issue 35 that doesn't allow renaming of a file name when the new file name contains slashes.

891f51ce 10/06/2010 05:50 pm Natasa Kapravelou

Fix for Issue 35 that doesn't allow the creation of a folder which name contains slashes or the renaming of a folder name when the new folder name contains slashes

51ad539e 09/30/2010 04:47 pm Natasa Kapravelou

Allow public folders and all of the containing subfolders and files to be available in a web page.

8e471ce5 09/23/2010 08:21 pm Natasa Kapravelou

Navigation through public folder url with no special characters in their folder names fixed. 1. Todo: Treat the special characters 2. For every public folder all containing sub-folder should also be public.

4497ec95 09/16/2010 05:01 pm Natasa Kapravelou

Minor fixes and remove logging

d235f94f 09/16/2010 01:06 pm Natasa Kapravelou

Fix the authentication sequence in requests of a file or a folder which is public or not public. This solves the Issue 14. Fix login with fireGSS by adding a boolean check in order the fireGSS client to receive a JSON response. ***TODO: fix sharing the home directory inside renderHTML

bdf739a9 09/14/2010 06:17 pm Natasa Kapravelou

Some more fixes on Issue 16 - handling a CastException. Also working Issue 14 - when the user isNull and the file or folder is public for everyone then pretend that the owner is the user and and the user as a request attribute inside the FilesHandler servlet and not inside each method (e.g copy)

0e488a94 08/19/2010 01:11 pm Panagiotis Astithas

Don't decode resource names in JSON values. This is only necessary when names are passed as request parameters. This fixes renaming folders '+', '%' and ' ', among others.

8dca7586 08/18/2010 03:46 pm Panagiotis Astithas

Fix updates for folders named '%'.

f9bd859c 08/10/2010 05:29 pm Natasa Kapravelou

-Navigation from the parent folder to subfolder and vice versa is available in the web page of a public folder
-Only files that are marked as public are available in the web page of a public folder

e8fd351d 07/23/2010 05:16 pm Natasa Kapravelou

- fix the problem which was related to download a file. It works now since an if statement was updated from if(content) to if (folder != null && content)
- fix the path of a containing subfolder in a public folder
- When a folder is marked as public from a user all containing files are also marked as public...

4e7b8a39 07/16/2010 12:51 pm Panagiotis Astithas

Simplify the content type conditional and make sure resource representation choice is independent of the access privileges.

31e19588 07/15/2010 06:20 pm Natasa Kapravelou

In order to implement display public's folder contents as a web page i)Implement renderHTML method inside FilesHandler ii)make changes in serveResource in order to decide the contentType depending on client header request. This solves Issue 17

c5b81911 07/14/2010 06:17 pm Natasa Kapravelou

first commit - display public's folder contents as a web page

4315bcc5 07/13/2010 05:20 pm Panagiotis Astithas

Reject invalid resource names, like '.' and '..' in both server and web client. This fixes issue 19.

46397af3 07/12/2010 01:00 pm Panagiotis Astithas

Fix silent NPE due to auto-unboxing.

c05a9de0 07/12/2010 12:36 pm Panagiotis Astithas

Consider the folder public flag when checking for authorization permissions.

c5b7e657 07/09/2010 02:52 pm Natasa Kapravelou

Merge with 66f69a7348ed1a0de9113a64025721fcc6e68b84

2f924703 07/09/2010 02:32 pm Natasa Kapravelou

-Allow user to declare a public folder i)a checkbox named [Public] added in the web client's folder properties dialog ii) an API change made in order to return readforall flag for a folder iii) a readforall column added in the domain model
Public folders are marked with the same icon as shared folders and are available also in the My Shared view. This fixes Issue 17 along with the revision 7fc12576aafb

023f6f1e 07/08/2010 01:57 pm Panagiotis Astithas

- Add an administration application.
- Remove the redundant RequestBuilder wrapper for efficiency.
- Fix warnings.
- Ignore the admin app build artifacts.
- Guard against users without userclasses in the DB.
- Add a dev mode launcher for debugging the admin app.

9e6a28ed 07/07/2010 06:49 pm Natasa Kapravelou

first commit of adding the public feature to folder / readForAll on each folder

a2c88d01 07/05/2010 04:34 pm Panagiotis Astithas

Avoid a NPE when the client doesn't send a Content-Type header.

6567092b 05/21/2010 06:43 pm Panagiotis Astithas

Redirect to login for browser requests without a cookie present and also for requests with cookies but without the proper one.

a91ef7e8 05/20/2010 06:28 pm Panagiotis Astithas

Now that we keep around the cookie, give the user the opportunity to use it as the authentication token to get to a file. This way passing around simple file resource URIs is possible, and as long as the user has authenticated with the service in the current browser session, he can access the file. Furthermore, treat such simple browser access as a special case and redirect to login before returning back to the file. Now one can e-mail the file URI to another user and he can click on the link, get prompted to login (or even register for the service) and then get back to the file URI to download it automatically....

f9e01fcb 05/17/2010 01:55 pm Panagiotis Astithas

Handle metadata updates even if they are sent with application/x-www/form-urlencoded content type.

62f168b2 03/11/2010 11:53 am Giannis Koutsoubos

use http caching by using IF-MODIFIED-SINCE HEADERS and handling response accordingly

31ec597c 12/08/2009 02:56 pm Panagiotis Astithas

Don't convert spaces to plus signs when downloading a file. This fixes bug #756.

425e3d5e 12/07/2009 05:14 pm Panagiotis Astithas

Fix the updated URL for a modified folder. This closes bug #759.

ba5f9575 11/11/2009 04:34 pm Panagiotis Astithas

Make folder updates work with a single DB transaction (EJB call). Now the modification date on every child file is properly updated. Also rename modifyFolder() to updateFolder() for consistency with updateFile() and make setFilePermissions/setFolderPermissions private helper methods.

d74c0270 11/11/2009 03:07 pm Panagiotis Astithas

Make file updates work with a single DB transaction (EJB call). Besides the performance benefits, this change properly updates the modification date on every file update.

d114cfe2 10/20/2009 12:51 pm Panagiotis Astithas

Allow setting the modification date when updating a file.

3b6b7f25 09/28/2009 02:32 pm Dimitris Routsis

Retry transactions in the face of optimistic locking exceptions for all "write" transactions in WebDAV API.
Move TransactionHelper class to EJBs so it is visible from both REST and WebDAV WARs.

2f1a60e0 09/28/2009 12:39 pm Dimitris Routsis

Retry transactions in the face of optimistic locking exceptions for all "write" transactions in REST API.

867d129b 09/04/2009 06:01 pm Fotis Stamatelopoulos

Added the groupURI parameter when parsing permissions, which precedes the group parameter. This allows the unique identification of groups throughout the application. We keep the group parameter for backwards compatibility with old clients

a0dde818 09/03/2009 06:19 pm Panagiotis Astithas

Fix wrong encoding in new folder names, by returning the already constructed URI. This required that createFolder() returns the newly-created folder, which was always a good idea (builder pattern).

77dcb3f1 09/02/2009 05:51 pm Panagiotis Astithas

Retry transactions in the face of optimistic locking exceptions when creating folders or modifying resources. Also avoid an extra EJB call by returning the modified folder after the fact.

9fd42cf4 08/07/2009 05:39 pm Panagiotis Astithas

Fix multiple file uploads in IE using Google Gears. It needed a POST instead of PUT, which required accommodating it in the server-side code. Also, error codes from file uploads are not handled in IE, since merely accessing the request.status field throws an internal error.

4c44fdca 07/06/2009 12:25 pm Dimitris Routsis

Fixed problems copying/moving via drag-and-drop had with international characters in file / folder names.

4d737770 07/03/2009 04:25 pm Fotis Stamatelopoulos

- more efficient moveFile implementation
- code clean up for better maintenance and easier implementation of future file storage layering

a9e3c075 06/23/2009 12:11 pm Dimitris Routsis

Uploaded files should be counted towards owner's (i.e. namespace owner's) quota, not uplolader's.

204107fb 06/15/2009 04:01 pm Panagiotis Astithas

Introduce TransactionHelper, a utility class for retrying the supplied transactional command in the face of rollbacks caused by optimistic lock exceptions. This allows multiple file uploads to succeed, even in a single core system.

Also make hitting the ENTER key behave the same as clicking the Upload button.

617fe906 06/12/2009 06:17 pm Dimitris Routsis

- Add "Save file as" menu that forces browser to download file instead of opening it inline.
- Fix broken international characters in browser Save As dialog.

f0c744b4 06/04/2009 05:01 pm Panagiotis Astithas

Decode file names received by PUT, as we do with file names received by multipart POST.

16baf609 06/04/2009 12:02 pm Panagiotis Astithas

Remove the redundant gss top-level directory.