Upload Files - Whitelist

msr
Messages : 7
Inscription : mer. janv. 07, 2015 2:07 pm

Upload Files - Whitelist

Message par msr » ven. janv. 16, 2015 1:54 pm

Hello,

i want to change the attachment settings and extend the supported formats [like described in the installation guide 4.02].

Opened :
org.squashtest.csp.tm.web.uploadfilter.config.properties

and edited:
uploadfilter.fileExtensions.whitelist=txt, doc, xls, ppt, docx, xlsx, pptx, odt, ods, odp, pdf, jpg, jpeg, mp3, avi, png, mpg, mpeg, json, mp4, DOC, XLS, PPT, DOCX, XSLX, PPTX, ODT, ODS, ODP, PDF, JPG, JPEG, MP3, AVI, PNG, MPG, MPEG, JSON, MP4

After that I stopped the application over the console (by typing "stop 0") and started it again with the squash-tm launcher. Tried an upload and still getting the message that the format is not supported (for example: picture.png).

Any idea?
Do I need to delete the files in the felix-cache?
Restart the whole windows server?

Thanks in Advance.
Best regards.

Masłek
Messages : 2
Inscription : mer. févr. 11, 2015 7:53 am

Upload Files - Whitelist

Message par Masłek » mer. févr. 11, 2015 10:03 am

Hi msr.

We are having the same problem.
Our installation is on a Apache 2 server.

Did you manage to fix it?

Someone please respond.

msr
Messages : 7
Inscription : mer. janv. 07, 2015 2:07 pm

Upload Files - Whitelist

Message par msr » mer. févr. 11, 2015 1:04 pm

Hi,

no sorry. I dont have any solution.
The problem still exists.

Masłek
Messages : 2
Inscription : mer. févr. 11, 2015 7:53 am

Upload Files - Whitelist

Message par Masłek » mer. févr. 25, 2015 9:55 am

Hi msr.

We managed to resolve the problem.

The felix-cache folder was not deleted after saving changes to the whitelist.
Delete the folder /var/cache/squash-tm/felix-cache and restart the SquashTM.

Other suggestions from the Squash Team:
When a user cannot upload atachments, it's usually caused by :
* attachment size is larger than the limit configured in squash tm
* attachment size is larger than the limit configured in mysql
* config file was changed and `squash-tm/felix-cache` folder was not deleted
before squash is restarted.

cellard-p
Messages : 2
Inscription : mar. mai 05, 2015 11:17 am

Upload Files - Whitelist

Message par cellard-p » mer. mai 06, 2015 6:14 pm

Hi,

It may be trivial to say but, you have to destroy the cache having squashTM shutted down before.

Else, you could experiment some trouble.

Répondre