-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Username with space #8429
Comments
What you propose is not a solution. You need to be able to handle userID's with spaces. Because we can't migrate old user ids. What is the problem you are facing with userids with spaces? |
UserID : 123 456 <?xml version="1.0"?>
<d:searchrequest xmlns:d="DAV:" xmlns:oc="http://owncloud.org/ns" xmlns:nc="http://nextcloud.org/ns">
<d:basicsearch>
<d:select>
<d:prop>
<d:getlastmodified/>
<d:getetag/>
<d:getcontenttype/>
<d:resourcetype/>
<d:getcontentlength/>
<oc:fileid/>
<oc:id/>
<oc:permissions/>
<oc:size/>
<oc:favorite/>
<nc:is-encrypted/>
</d:prop>
</d:select>
<d:from>
<d:scope>
<d:href>/files/123%20456</d:href>
<d:depth>infinity</d:depth>
</d:scope>
</d:from>
<d:where>
<d:like>
<d:prop>
<d:displayname/>
</d:prop>
<d:literal>%Doc%</d:literal>
</d:like>
</d:where>
</d:basicsearch>
</d:searchrequest> return error 404 <?xml version="1.0"?>
<d:searchrequest xmlns:d="DAV:" xmlns:oc="http://owncloud.org/ns" xmlns:nc="http://nextcloud.org/ns">
<d:basicsearch>
<d:select>
<d:prop>
<d:getlastmodified/>
<d:getetag/>
<d:getcontenttype/>
<d:resourcetype/>
<d:getcontentlength/>
<oc:fileid/>
<oc:id/>
<oc:permissions/>
<oc:size/>
<oc:favorite/>
<nc:is-encrypted/>
</d:prop>
</d:select>
<d:from>
<d:scope>
<d:href>/files/123 456</d:href>
<d:depth>infinity</d:depth>
</d:scope>
</d:from>
<d:where>
<d:like>
<d:prop>
<d:displayname/>
</d:prop>
<d:literal>%Doc%</d:literal>
</d:like>
</d:where>
</d:basicsearch>
</d:searchrequest> return file not found |
Ok I'll look into it |
Your second example works just fine on master. I'll try stable13 tomorrow. |
My second works but .. don't return records ... (NC 13) |
It returns records just fine here. |
<?xml version="1.0"?>
<d:multistatus xmlns:d="DAV:" xmlns:s="http://sabredav.org/ns" xmlns:cal="urn:ietf:params:xml:ns:caldav" xmlns:cs="http://calendarserver.org/ns/" xmlns:card="urn:ietf:params:xml:ns:carddav" xmlns:oc="http://owncloud.org/ns" xmlns:nc="http://nextcloud.org/ns">
<d:response>
<d:href>/remote.php/dav/files/123%20456/doc/</d:href>
<d:propstat>
<d:prop>
<d:getlastmodified>Tue, 20 Feb 2018 20:51:20 GMT</d:getlastmodified>
<d:getetag>"5a8c8a4874555"</d:getetag>
<d:resourcetype>
<d:collection/>
</d:resourcetype>
<oc:fileid>110</oc:fileid>
<oc:id>00000110oc02qh89cd7d</oc:id>
<oc:permissions>RGDNVCK</oc:permissions>
<oc:size>0</oc:size>
<oc:favorite>0</oc:favorite>
<nc:is-encrypted>0</nc:is-encrypted>
</d:prop>
<d:status>HTTP/1.1 200 OK</d:status>
</d:propstat>
<d:propstat>
<d:prop>
<d:getcontenttype/>
<d:getcontentlength/>
</d:prop>
<d:status>HTTP/1.1 404 Not Found</d:status>
</d:propstat>
</d:response>
<d:response>
<d:href>/remote.php/dav/files/123%20456/a%20Doc%20A/</d:href>
<d:propstat>
<d:prop>
<d:getlastmodified>Tue, 20 Feb 2018 20:51:25 GMT</d:getlastmodified>
<d:getetag>"5a8c8a4d0895a"</d:getetag>
<d:resourcetype>
<d:collection/>
</d:resourcetype>
<oc:fileid>111</oc:fileid>
<oc:id>00000111oc02qh89cd7d</oc:id>
<oc:permissions>RGDNVCK</oc:permissions>
<oc:size>0</oc:size>
<oc:favorite>0</oc:favorite>
<nc:is-encrypted>0</nc:is-encrypted>
</d:prop>
<d:status>HTTP/1.1 200 OK</d:status>
</d:propstat>
<d:propstat>
<d:prop>
<d:getcontenttype/>
<d:getcontentlength/>
</d:prop>
<d:status>HTTP/1.1 404 Not Found</d:status>
</d:propstat>
</d:response>
</d:multistatus> |
ok @rullzer, I have found the issue on old driver ownCloud (iOS). thanks ! |
Steps to reproduce
Expected behaviour
Tell us what should happen
The UserdID : must be without space
Actual behaviour
Tell us what happens instead
The UserID is "marino faggiana"
Server configuration
Operating system:
Web server:
Database:
PHP version:
Nextcloud version: (see Nextcloud admin page)
Updated from an older Nextcloud/ownCloud or fresh install:
Where did you install Nextcloud from:
Signing status:
Signing status
List of activated apps:
App list
Nextcloud configuration:
Config report
Are you using external storage, if yes which one: local/smb/sftp/...
Are you using encryption: yes/no
Are you using an external user-backend, if yes which one: LDAP/ActiveDirectory/Webdav/...
LDAP configuration (delete this part if not used)
LDAP config
Client configuration
Browser:
Operating system:
Logs
Web server error log
Web server error log
Nextcloud log (data/nextcloud.log)
Nextcloud log
Browser log
Browser log
The text was updated successfully, but these errors were encountered: