LPS-51930 Liferay doesn't send mail to the subscribed user if a file has been uploaded via WebDAV.

As discussed, currently, the portal fails to send notification email for document uploaded with WebDav due to 

1) Command in serviceContext is NULL.
2) EntryURL in workflowContext is NULL.

For entryURL, it is not possible to construct it in the way of adding document via DM portlet as the themeDisplay is missing if a document is added with WebDaV.

So we cannot figure out the where the DM portlet resides and where to display to document uploaded.

Hence, I construct a new EntryURL for documented uploaded with WebDav, which is a link to directly download it after authentication.

Let me know if you have any concerns

Thanks
John.