Comma in filenames / foldernames

Good morning, I cant create with the webinterface or sync files/folders with the client for Android and Linux that contain a comma in its filename / foldername. Is this a bug or a feature?

I run nextcloud 9 and 10. And I do remind me that even in ownCloud there was this issue.

Thanks for answers!

Cloudguy

Works fine here using 10.0.1

It works for me too. Are you receiving any errors when you try to create the file? Anything in the nextcloud.log file?

Thank you guys for trying to help!

I have to admit, both of my installations were running 9.0.53, but I have upgraded one of them to 10.0.1. Still I have the issue with filenames when I try to add a comma or try to upload a file with comma.

{ncpath}/data/nextcloud.log doesnt show anything special. But I do get permission errors, when I try create for instance the plain text file “h,c.txt” even when I am logged in as admin?!

Here is my nc-installation - are there any permissions set incorrectly?

[mycloud@thanks cloud]$ ls -al
total 204
drwxr-xr-x 15 mycloud mycloud  4096 Oct 31 23:49 .
drwxr-xr-x  8 mycloud mycloud  4096 Oct 31 23:48 ..
drwxr-xr-x 28 mycloud mycloud  4096 Sep 28 15:32 3rdparty
drwxr-xr-x 38 mycloud mycloud  4096 Oct 31 23:53 apps
-rw-r--r--  1 mycloud mycloud  8868 Sep 28 15:30 AUTHORS
drwxr-xr-x  2 mycloud mycloud  4096 Jul  8 23:37 config
-rw-r--r--  1 mycloud mycloud  3601 Sep 28 15:30 console.php
-rw-r--r--  1 mycloud mycloud 34520 Sep 28 15:30 COPYING-AGPL
drwxr-xr-x 17 mycloud mycloud  4096 Sep 28 15:32 core
-rw-r--r--  1 mycloud mycloud  5008 Sep 28 15:30 cron.php
drwxrwx--- 21 mycloud mycloud  4096 Oct 31 23:50 data
-rw-r--r--  1 mycloud mycloud 39782 Sep 28 15:30 db_structure.xml
-rw-r--r--  1 mycloud mycloud  2496 Sep 28 15:30 .htaccess
-rw-r--r--  1 mycloud mycloud   179 Sep 28 15:30 index.html
-rw-r--r--  1 mycloud mycloud  2618 Sep 28 15:30 index.php
drwxr-xr-x  3 mycloud mycloud  4096 Sep 28 15:30 l10n
drwxr-xr-x  6 mycloud mycloud  4096 Sep 28 15:30 lib
-rw-r--r--  1 mycloud mycloud   283 Sep 28 15:30 occ
drwxr-xr-x  2 mycloud mycloud  4096 Sep 28 15:30 ocs
drwxr-xr-x  2 mycloud mycloud  4096 Sep 28 15:30 ocs-provider
-rw-r--r--  1 mycloud mycloud  3173 Sep 28 15:30 public.php
-rw-r--r--  1 mycloud mycloud  5420 Sep 28 15:30 remote.php
drwxr-xr-x  4 mycloud mycloud  4096 Sep 28 15:30 resources
-rw-r--r--  1 mycloud mycloud    26 Sep 28 15:30 robots.txt
drwxr-xr-x 12 mycloud mycloud  4096 Sep 28 15:30 settings
-rw-r--r--  1 mycloud mycloud  1908 Sep 28 15:30 status.php
drwxr-xr-x  3 mycloud mycloud  4096 Sep 28 15:30 themes
drwxr-xr-x  2 mycloud mycloud  4096 Sep 28 15:32 updater
-rw-r--r--  1 mycloud mycloud   163 Sep 28 15:30 .user.ini
-rw-r--r--  1 mycloud mycloud   257 Sep 28 15:31 version.php

Thank you for helping me!

This sounds like there is a server issue in regards to files with commas in them. Perhaps modsecurity, or a custom rule set by your web host. Have you brought this up to your hosting provider?

Can you create a file with a comma in it by any other means outside of Nextcloud?

Hi grouchysysadmin :smiley: When I am logged in on the server via ssh, I have no trouble creating files with a comma. Very strange :frowning:

Ok, that rules out a file system issue. I assume you can create files without a comma through the web interface, or synced by the client?

Where does the permission error show? Is it in a web server log, or from Nextcloud directly?

It still sounds like some type of wacky security policy on the part of the host. Perhaps something checking url strings and blocking anything with a comma in it. Have you brought this up to your hosting provider?

Hi @cloudguy
I have the same issue here on NC12 on a raspberry pi running raspbian stretch.
Did you find a solution?
I have hundreds of files with commas inside (e-books managed by calibre: author last name, author first name)