rejetto forum

Why cannot I delete items since appropriate permissions are given?

dragon_ex · 35 · 23063

0 Members and 3 Guests are viewing this topic.

Offline dragon_ex

  • Occasional poster
  • *
    • Posts: 58
    • View Profile
266# can not be downloaded.

And I have tested under #265.

1. I have made a parent folder (real folder) named "2"

In folder "2" ,
1.1  I created a folder named "222" from webpage,and I could delete "222" correctly.
1.2  I created a folder named "测试" ( This is a chinese word),but I could not delete it.


2. I have made a parent folder (real folder) named "测试"  (This is a chinese word)

In folder “测试"(chinese word)  ,I could create folders named in either english or chinese successfully, but I could not delete any folders.




I have tested 266#,and I found that problem existed still.


Offline dragon_ex

  • Occasional poster
  • *
    • Posts: 58
    • View Profile
Based on the experiment above, I guess that: If parent folder's name contains Chinese Characters, all items in it cannot be deleted or renamed.
« Last Edit: August 18, 2010, 03:14:25 AM by dragon_ex »


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13523
    • View Profile
1. drag&drop a folder named 测试 in HFS, and see if the name appears correctly in the window.
2. in a folder "222", create a folder "测试". Then enter this folder and upload a file. See if the file can be downloaded correctly.


Offline dragon_ex

  • Occasional poster
  • *
    • Posts: 58
    • View Profile
1. drag&drop a folder named 测试 in HFS, and see if the name appears correctly in the window.
2. in a folder "222", create a folder "测试". Then enter this folder and upload a file. See if the file can be downloaded correctly.


1.The name appears correctly.
2.The file can be downloaded correctly.
« Last Edit: September 03, 2010, 05:48:22 AM by dragon_ex »


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13523
    • View Profile
So, even the chance of it being a unicode file in your NTFS is gone.
From what you said, all is good until you try to delete an item where in any part of the path (parent folder or item name) there's a chinese word.
Problem is i already made the tests i could, with non-ansi characters. I can't try the chinese characters myself.
At the moment only 2 things come to my mind

1. try to make a similar test on another computer, with a totally brand new download of HFS, with default configuration and default template. And let me know.

2. Dump the POST http request that's carrying the deletion request to HFS, and post it here.
A nice free program that will allow you to do so, is Fiddler.
You'll see on the left a list of http requests, then you spot the right one, and on the right you click Inspectors > Raw.
I did it right now, and the result was


Code: [Select]
POST http ://l/upload/%C3%A8/ HTTP/1.1
Host: l
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.8) Gecko/20100722 Firefox/3.6.8
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: it,en-us;q=0.7,en;q=0.3
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 115
Connection: keep-alive
Content-Type: application/x-www-form-urlencoded
Content-Length: 33

action=delete&selection=%C3%B2%2F
« Last Edit: September 06, 2010, 06:19:04 PM by rejetto »


Offline dragon_ex

  • Occasional poster
  • *
    • Posts: 58
    • View Profile
I've made test. under #267 & #269

The newest situation is that , I can delete files and folders with names of latin alphabets or numbers. But I cannot delete items with chinese characters in their names,  even when there is only one chinese character combined with latin alphabets or numbers in the file's name or folder's name.

Can you determine the issue based on the description above or do you want me to post the " http requests of deletion" yet?
« Last Edit: September 08, 2010, 02:44:51 AM by dragon_ex »


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13523
    • View Profile
in your last post you didn't say anything new, so my last post still applies.


Offline dragon_ex

  • Occasional poster
  • *
    • Posts: 58
    • View Profile
Code: [Select]
POST http://10.0.255.5:8888/%E5%85%B1%E4%BA%AB-%E4%B8%B4%E6%97%B6%E5%85%B1%E4%BA%AB%E6%96%87%E4%BB%B6%E5%A4%B9/ HTTP/1.1
Accept: image/gif, image/jpeg, image/pjpeg, image/pjpeg, application/x-shockwave-flash, application/x-ms-application, application/x-ms-xbap, application/vnd.ms-xpsdocument, application/xaml+xml, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, */*
Referer: http://10.0.255.5:8888/%E5%85%B1%E4%BA%AB-%E4%B8%B4%E6%97%B6%E5%85%B1%E4%BA%AB%E6%96%87%E4%BB%B6%E5%A4%B9/
Accept-Language: zh-cn
User-Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.2; WOW64; Trident/4.0; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; InfoPath.1)
Content-Type: application/x-www-form-urlencoded
Accept-Encoding: gzip, deflate
Host: 10.0.255.5:8888
Content-Length: 100
Connection: Keep-Alive
Pragma: no-cache

action=delete&selection=%C3%A7%C2%83%C2%AD%C3%A7%C2%83%C2%88%C3%A6%C2%AC%C2%A2%C3%A8%C2%BF%C2%8E.ppt




Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13523
    • View Profile
are you sure the file name was the same?
the one you posted is half long as the one you posted when trying to delete.
if you are not sure, re-dump the deletion request. The interesting part of it, is the last line, with "action=delete".
also tell me how many characters it is long.
I would guess it is 4, and all characters are encoded by 3 bytes, all starting with a %E,
while the "deletion" request is sending apparently sequences of 2 bytes characters, each starting by %C.

Please try to "archive" instead of "delete", after you selected the file. I guess the problem should be similar.
and: what browser are you using for testing?
« Last Edit: September 10, 2010, 04:04:21 PM by rejetto »


Offline dragon_ex

  • Occasional poster
  • *
    • Posts: 58
    • View Profile
Yes,there are 4 characters in the file name.
And I am sure that the link to the file which I want to delete is http://10.0.255.5:8888/%E5%85%B1%E4%BA%AB-%E4%B8%B4%E6%97%B6%E5%85%B1%E4%BA%AB%E6%96%87%E4%BB%B6%E5%A4%B9/%E7%83%AD%E7%83%88%E6%AC%A2%E8%BF%8E.ppt


The codes below are re-dumped by me by re-doing the same test as above.
Code: [Select]
POST http://10.0.255.5:8888/%E5%85%B1%E4%BA%AB-%E4%B8%B4%E6%97%B6%E5%85%B1%E4%BA%AB%E6%96%87%E4%BB%B6%E5%A4%B9/ HTTP/1.1
Accept: image/gif, image/jpeg, image/pjpeg, image/pjpeg, application/x-shockwave-flash, application/x-ms-application, application/x-ms-xbap, application/vnd.ms-xpsdocument, application/xaml+xml, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, */*
Referer: http://10.0.255.5:8888/%E5%85%B1%E4%BA%AB-%E4%B8%B4%E6%97%B6%E5%85%B1%E4%BA%AB%E6%96%87%E4%BB%B6%E5%A4%B9/
Accept-Language: zh-cn
User-Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.2; WOW64; Trident/4.0; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; InfoPath.1)
Content-Type: application/x-www-form-urlencoded
Accept-Encoding: gzip, deflate
Host: 10.0.255.5:8888
Content-Length: 100
Connection: Keep-Alive
Pragma: no-cache

action=delete&selection=%C3%A7%C2%83%C2%AD%C3%A7%C2%83%C2%88%C3%A6%C2%AC%C2%A2%C3%A8%C2%BF%C2%8E.ppt


Some images belows show the process of what I did.
« Last Edit: September 11, 2010, 03:07:39 PM by dragon_ex »


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13523
    • View Profile
we are narrowing it! thank you.
the problem seems to be located at the filename sent by the javascript, that's clearly wrong.
what if you try to select the file, and then "archive" ?
you are using IE8, right?


Offline dragon_ex

  • Occasional poster
  • *
    • Posts: 58
    • View Profile
we are narrowing it! thank you.
the problem seems to be located at the filename sent by the javascript, that's clearly wrong.
what if you try to select the file, and then "archive" ?
you are using IE8, right?

Yes, I am using IE8, and sometimes I use some 3rd party shell-browsers which use IE8's core as its core.

Some images below show the result of "Archive" operation to the same file as before.

1. When I tried to archive the selected file, I was forbidden.
2. Some error seemed to have occured when I tried to archive,according to the popup window of Fiddler.
3. I copied and pasted the Fiddler's http-request codes as below.


Code: [Select]
POST http://10.0.255.5:8888/%E5%85%B1%E4%BA%AB-%E4%B8%B4%E6%97%B6%E5%85%B1%E4%BA%AB%E6%96%87%E4%BB%B6%E5%A4%B9/?mode=archive&recursive HTTP/1.1
Accept: image/gif, image/jpeg, image/pjpeg, image/pjpeg, application/x-shockwave-flash, application/x-ms-application, application/x-ms-xbap, application/vnd.ms-xpsdocument, application/xaml+xml, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, */*
Referer: http://10.0.255.5:8888/%E5%85%B1%E4%BA%AB-%E4%B8%B4%E6%97%B6%E5%85%B1%E4%BA%AB%E6%96%87%E4%BB%B6%E5%A4%B9/
Accept-Language: zh-cn
User-Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.2; WOW64; Trident/4.0; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; InfoPath.1)
Content-Type: application/x-www-form-urlencoded
Accept-Encoding: gzip, deflate
Host: 10.0.255.5:8888
Content-Length: 86
Connection: Keep-Alive
Pragma: no-cache

selection=%C3%A7%C2%83%C2%AD%C3%A7%C2%83%C2%88%C3%A6%C2%AC%C2%A2%C3%A8%C2%BF%C2%8E.ppt
« Last Edit: September 13, 2010, 12:50:26 PM by dragon_ex »


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13523
    • View Profile
thank you for your collaboration, i hope our effort won't be worthless.

1. try to see if firefox (or opera, or chrome) has the same problem
2. try this: edit the template, and replace this line

s = (decodeURIComponent || unescape)(s);

with this one

//s = (decodeURIComponent || unescape)(s);