Cannot retrieve document library document of group A via webdav if group B has a name that is equal to the friendly url of group A minus the / prefix
Description
Activity
Show:

Cynthia Wilburn March 12, 2012 at 2:10 PM
Reopening to add 6.1.1 CE GA2. Close as Fixed.

ginson.ren February 16, 2012 at 6:19 PM
PASSED Manual Testing following steps in description.
Reproduced on:
Tomcat 7.0.25 + MySQL 5. 6.2.x GIT ID: 71ce8e940ae12bae24e2a5e14cf3f836bb291915.
User will not be able to download this file.
Fixed on:
Tomcat 7.0.25 + MySQL 5. 6.1.x GIT ID: 42f543b72841f5012e3453741a83c43521ee9dfd.
Tomcat 7.0.25 + MySQL 5. 6.2.x GIT ID: dd665fe4dce10233d0f25035c5e9a81233ab65ff.
User will be able to download this file.

Michael Saechang February 13, 2012 at 2:52 PM
Committed on:
6.1.x GIT ID: 42291fe552159e08fec8da3b2c1ed94c6b37237b.
6.2.x GIT ID: 709c49fc6a98f9e3362bd3744d4612b32f26a2f0.

MikaM February 8, 2012 at 1:25 PM
Thanks Jelmer. I changed WebDAVUtil to use the group friendly url as that is how the webdav url is generated through out the portal.
Fixed
Details
Assignee
ginson.renginson.ren(Deactivated)Reporter
Jelmer JelmerJelmer JelmerLabels
Branch Version/s
6.1.xBackported to Branch
CommittedGit Pull Request
Components
Fix versions
Affects versions
Priority
Medium
Details
Details
Assignee

Reporter

Labels
Branch Version/s
6.1.x
Backported to Branch
Committed
Git Pull Request
Components
Fix versions
Affects versions
Priority
Zendesk Support
Linked Tickets
Zendesk Support
Linked Tickets
Zendesk Support

Linked Tickets
Created September 13, 2011 at 6:26 AM
Updated June 24, 2023 at 3:38 PM
Resolved October 3, 2012 at 5:56 PM
Steps to reproduce :
1) As an administrator create a community called test
2) Change the friendly url of the test community to /test1 (it will be /test by default)
3) Add a document library portlet to the test community
4) Upload a document called Doc1.doc
5) Go to the file details and copy and paste the webdav url in another browser window (eg. : http://localhost:8080/tunnel-web/secure/webdav/test1/document_library/Doc1.doc) You should be able to download this file
6) As an administrator create another group called test1
7) Open the webdav url from step 5 again and try to download the document. You will not be able to
The problem is depending on your viewpoint in the getGroupId method of com.liferay.portal.kernel.webdav.WebDAVUtil or in view_file_entry.jsp
Basically if the url is http://localhost:8080/tunnel-web/secure/webdav/test1/...
It will first check if test1 is a groupname. If this is the case it will look for the file in that group. Only when it finds no group that has a matching name will it look at the friendly url
Unfortunately view_file_entry.jsp uses the friendly url path in the url, never the name