Description: When using the portal property webdav.servlet.https.required=true , Webdav should display the url for a file in https even if being accessed on http, it does not.
Steps to Reproduce:
1) Setup Liferay for SSL
2) Set the portal Property: webdav.servlet.https.required=true
3) Start Liferay 6.1 GA2
4) Add the Document and Media portlet.
5) Add an file or image.
6) Click on it using the http protocol and click get webdavurl
Expected: url should show https.
Actual: url still shows http.
Goal: Provide a fix. Tested in Trunk(Revision:131679) and 6.1.x(Revision:131180) and was able to reproduce.