掲示板

Uploading fails when quotation mark in file name

13年前 に Marco Raven によって更新されました。

Uploading fails when quotation mark in file name

New Member 投稿: 7 参加年月日: 10/11/28 最新の投稿
I noticed the following:
When uploading a file with a quotation mark (') in the file name using the document library, the upload reports no problems, but the file is not shown in the document library.

Environment:
Liferay version: 6.0.5
Platform: Linux (Ubuntu 10.10)
Browser: Firefox for Ubuntu 3.6.13

Which brings me to the following question:
Could this be a this a bug, or did I do something wrong?

Thanks!
Marco
thumbnail
13年前 に James Falkner によって更新されました。

RE: Uploading fails when quotation mark in file name

Liferay Legend 投稿: 1399 参加年月日: 10/09/17 最新の投稿
It's a bug (that probably won't be fixed)... see this issue. The special characters cause problems elsewhere. However, you can use the "Classic" uploader where you assign the file a new name on upload.
thumbnail
13年前 に Samuel Kong によって更新されました。

RE: Uploading fails when quotation mark in file name

Liferay Legend 投稿: 1902 参加年月日: 08/03/10 最新の投稿
Marco, I was unable to reproduce your bug. I used the file name test'me.txt and I got an error complaining about the file name.
13年前 に Marco Raven によって更新されました。

RE: Uploading fails when quotation mark in file name

New Member 投稿: 7 参加年月日: 10/11/28 最新の投稿
I was unable to reproduce your bug. I used the file name test'me.txt and I got an error complaining about the file name.

I tried it with that file name and got the result I got earlier: no error, but no uploaded file either.

So the question now is: what is the difference between our environments...
thumbnail
13年前 に James Falkner によって更新されました。

RE: Uploading fails when quotation mark in file name

Liferay Legend 投稿: 1399 参加年月日: 10/09/17 最新の投稿
I got the "no error but no upload" when I tried it on 6.0.5. This is on a Mac.
thumbnail
13年前 に Samuel Kong によって更新されました。

RE: Uploading fails when quotation mark in file name

Liferay Legend 投稿: 1902 参加年月日: 08/03/10 最新の投稿
I've tested on Win7+Firefox/Chrome as well as Ubuntu+Firefox. (See attached screen shot).

The closest I got to reproducing your result is if I select a zero byte file. The file will not show up under "files ready to be uploaded". But this happens before I click on the "Upload Files" link and it happens regardless of whether the file has a ' in the name or not.

添付ファイル:

13年前 に Marco Raven によって更新されました。

RE: Uploading fails when quotation mark in file name

New Member 投稿: 7 参加年月日: 10/11/28 最新の投稿
Hi Samuel,
Interesting.
My test-environment in the 64 bits version of Ubuntu 10.10/firefox 3.6.13 with (on the same computer) the 6.0.5 liferay/tomcat bundle.
thumbnail
13年前 に Samuel Kong によって更新されました。

RE: Uploading fails when quotation mark in file name

Liferay Legend 投稿: 1902 参加年月日: 08/03/10 最新の投稿
Marco, I don't have a 64-bit Ubuntu to test with easily, so can you create a ticket in our bug tracker. I think this issue is different from the one James mentioned previously.