chstath / gss

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

trash not reachable after doing file restore #52

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. move file(s) to trash
2. open trash
3. restore file from trash

What is the expected output? What do you see instead?
I expect to normally access "home" folder and "trash" folder at any time. But 
after doing steps above, it seems like trash cannot be clicked ever again. It 
happens in google chrome and mozilla firefox, both on windows and linux.

What version of the product are you using? On what operating system?
I am using source, checked repository today and built it today. Operating 
system is Centos 64bit.

Please provide any additional information below.
There is nothing suspicious in jboss logs, and no error shows up in the 
interface.

Original issue reported on code.google.com by ngara...@gmail.com on 10 Nov 2010 at 11:41

GoogleCodeExporter commented 9 years ago
Can you provide us a more detailed description by saying "trash cannot be 
clicked ever again"? What do you mean by this? Does the whole navigation to the 
application break down?

When restoring a file from Trash and after the restore action has been 
completed the current active folder is Trash. Thus clicking on the Trash folder 
makes nothing. 

Since I couldn't reproduce the problem can you provide me a more detailed 
explanation ? 

Moreover, can you install Firebug (http://getfirebug.com/) in your Firefox 
browser and tell me if you can see anything strange?

When performing the "Move to trash" you should be able to see a POST request 
that looks like this (I assume that the specific file, called "filename.txt" is 
inside some folder who's name is "FoldeName"):
POST 
http://127.0.0.1:8080/pithos/rest/username@somewhere.com/files/FolderName/filena
me.txt?trash=

When performing the "Restore" from trash you should be able to see a POST 
request:
POST 
http://127.0.0.1:8080/pithos/rest/username@somewhere.com/files/FolderName/fileNa
me.txt?restore=
When clicking on the folder "FolderName" you should see a GET request:
GET http://127.0.0.1:8080/pithos/rest/username@somewhere.com/files/FolderName/

Original comment by akaprave...@gmail.com on 10 Nov 2010 at 2:35

GoogleCodeExporter commented 9 years ago
Ok, so you should reproduce the error this way: (tested on linux with firefox 
3.6.12)

(doesnt matter if trash has anything inside)
1. move file(s) to trash
2. restore file(s) from trash so that trash is empty (does not work if there is 
some files left inside trash folder)
3. wait for the files to become visible inside "home" folder
4. move some more files(s) to trash
5. try to click on "Trash" 

It will look like its clicked on, but there will be no GET request for trash 
folder visible inside firebug...

I hope its more understandable now :)

Regards,
Nikola

Original comment by ngara...@gmail.com on 10 Nov 2010 at 3:21

GoogleCodeExporter commented 9 years ago
Hi Nikola,
We found the problem, thanks for pointing it out. You need an empty trash bin 
to reproduce it. A fix will be available tomorrow

Original comment by fstamate...@gmail.com on 11 Nov 2010 at 9:20

GoogleCodeExporter commented 9 years ago
Fixed in changeset 6d78bf9c791f

Original comment by chstath on 15 Nov 2010 at 1:40