1
Bug reports / Re: 404 Not Found Server Error
« on: September 26, 2015, 10:42:02 PM »
I noticed the same sorting problem in the default template using HFS 2.3f (b 294) in Windows 7.
I installed a freshly downloaded HFS 2.3f (294) and created a new VFS using real folders.
The VFS had the folders named as follows:
New folder
New folder (2)
New<some valid file name character>folder<some valid file name character>
Each folder contained 3 zero byte files named:
New Text Document.txt
New Text Document (2).txt
New Text Document (3).txt
From HFS, I opened the default template in Firefox browser. All folders listed fine in the home page.
I opened "New folder" and the 3 files listed fine.
The files could be sorted by selecting any of the list box's headers: Name, Extension, Size, Timestamp, Hits (all hit counts were zero)
I opened "New folder (2)" and the 3 files listed fine.
Selecting any header for sorting displayed the "Not Found" page.
I played around with New<some valid file name character>Folder<some valid file name character>, substituting various
valid non-alphanumeric characters. I recorded the following results:
When 2 or more of the following characters are used, sorting results in a "Not Found" page display.
(I'll spell the characters to avoid confusion)
space, apostrophe, right and left braces, right and left square brackets, ampersand, accent, percent, caret
The following characters DID NOT cause a sort problem:
exclamation, tilde, comma, hyphen, underscore, equal, plus, at, dollar, semicolon, period
I recorded a few resulting URLs of successful file sorts as follows:
Folder name = New folder
resulting url (as displayed in Firefox) = http://localhost/New folder/
Folder name = New~folder%
resulting url = http://localhost/New~folder%25/?sort=t
Folder name = New.folder&
resulting url = http://localhost/New.folder%26/?sort=s
I recorded a few URLs on the "Not Found" page after changing the folder's name and reloading the HFS default template each time.
Here are samples:
Folder name = New folder (2)
resulting url on "Not Found" page (as displayed in Firefox) = http://localhost/New'20folder (2)/?sort=e
Folder name = New folder&
resulting url on "Not Found" page = http://localhost/New'20folder&/?sort=n
Folder name = New%folder&
resulting url on "Not Found" page = http://localhost/New'25folder&/?sort=t
Folder name = New]folder&
resulting url on "Not Found" page = http://localhost/New'5Dfolder&/?sort=s
It appears that with 2 or more certain valid file name, non-alphanumeric characters in a folder name, the sort function
substitutes ' for % for the first non-alphanumeric character's escape which results in a "Not Found" display.
Like the OP, I found this behaviour is not present in HFS 2.3E
I installed a freshly downloaded HFS 2.3f (294) and created a new VFS using real folders.
The VFS had the folders named as follows:
New folder
New folder (2)
New<some valid file name character>folder<some valid file name character>
Each folder contained 3 zero byte files named:
New Text Document.txt
New Text Document (2).txt
New Text Document (3).txt
From HFS, I opened the default template in Firefox browser. All folders listed fine in the home page.
I opened "New folder" and the 3 files listed fine.
The files could be sorted by selecting any of the list box's headers: Name, Extension, Size, Timestamp, Hits (all hit counts were zero)
I opened "New folder (2)" and the 3 files listed fine.
Selecting any header for sorting displayed the "Not Found" page.
I played around with New<some valid file name character>Folder<some valid file name character>, substituting various
valid non-alphanumeric characters. I recorded the following results:
When 2 or more of the following characters are used, sorting results in a "Not Found" page display.
(I'll spell the characters to avoid confusion)
space, apostrophe, right and left braces, right and left square brackets, ampersand, accent, percent, caret
The following characters DID NOT cause a sort problem:
exclamation, tilde, comma, hyphen, underscore, equal, plus, at, dollar, semicolon, period
I recorded a few resulting URLs of successful file sorts as follows:
Folder name = New folder
resulting url (as displayed in Firefox) = http://localhost/New folder/
Folder name = New~folder%
resulting url = http://localhost/New~folder%25/?sort=t
Folder name = New.folder&
resulting url = http://localhost/New.folder%26/?sort=s
I recorded a few URLs on the "Not Found" page after changing the folder's name and reloading the HFS default template each time.
Here are samples:
Folder name = New folder (2)
resulting url on "Not Found" page (as displayed in Firefox) = http://localhost/New'20folder (2)/?sort=e
Folder name = New folder&
resulting url on "Not Found" page = http://localhost/New'20folder&/?sort=n
Folder name = New%folder&
resulting url on "Not Found" page = http://localhost/New'25folder&/?sort=t
Folder name = New]folder&
resulting url on "Not Found" page = http://localhost/New'5Dfolder&/?sort=s
It appears that with 2 or more certain valid file name, non-alphanumeric characters in a folder name, the sort function
substitutes ' for % for the first non-alphanumeric character's escape which results in a "Not Found" display.
Like the OP, I found this behaviour is not present in HFS 2.3E