Bug 127365 - Password prompt when opening files from SharePoint
Summary: Password prompt when opening files from SharePoint
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
6.4.0.0.alpha1+
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: bibisected, bisected, regression
Depends on:
Blocks: SharePoint
  Show dependency treegraph
 
Reported: 2019-09-05 10:51 UTC by NISZ LibreOffice Team
Modified: 2023-01-25 05:15 UTC (History)
6 users (show)

See Also:
Crash report or crash signature:


Attachments
Screenshot of the problem in Writer (32.91 KB, image/png)
2019-09-05 10:52 UTC, NISZ LibreOffice Team
Details

Note You need to log in before you can comment on or make changes to this bug.
Description NISZ LibreOffice Team 2019-09-05 10:51:06 UTC
Description:
When trying to open files from a SharePoint share mounted to Windows File manager as an UNC path (http://our-SP/Shared documents/foo.docx) LO started to pop up an authentication prompt. Pressing OK without entering credentials opens the file correctly, and selecting “Use system credentials” opens it correctly too. Earlier versions just opened the file without this window.

Steps to Reproduce:
Try to open files from a SharePoint share mounted to Windows File manager as an UNC path. 

Actual Results:
Authentication request is shown, but does not do much.

Expected Results:
No auth request


Reproducible: Always


User Profile Reset: No



Additional Info:
Bibisected using bibisect-win64-6.4 to:
URL: https://cgit.freedesktop.org/libreoffice/core/commit/?id=20b1e6440aacab043753e93be4499e939a80b05b
author	 Mike Kaganski <mike.kaganski@collabora.com>	2019-01-09 10:54:10 +0300
committer	Mike Kaganski <mike.kaganski@collabora.com>	2019-06-28 08:33:46 +0200
summary: tdf#126121: WebDAV redirection detection
Comment 1 NISZ LibreOffice Team 2019-09-05 10:52:28 UTC
Created attachment 153909 [details]
Screenshot of the problem in Writer
Comment 2 NISZ LibreOffice Team 2019-09-05 10:53:50 UTC
Adding CC to:  Mike Kaganski
Comment 3 Mike Kaganski 2019-09-05 11:01:22 UTC
Yes, that's expected ... because after that commit, LibreOffice detects the redirection, and uses WebDAV (and not Windows redirector that hides details from the software, and uses connection already established at system level). I don't know how to use the system logon here (and actually doubt it's possible at all) ... so I don't think I could solve this problem (without reverting that).

Do you have a suggestion?
Comment 4 NISZ LibreOffice Team 2019-10-08 11:09:39 UTC
I just noticed that setting the key org.openoffice.Office.Common/Passwords/TrySystemCredentialsFirst to true makes this annoying popup go away and file opening to "just work" like it used to.

Maybe the same magic behind that could be used? 
Maybe setting this key to true by default can be a viable option too (although it could have security implications... I'm not sure about that).
Comment 5 Dieter 2020-04-08 08:57:49 UTC
Mike, you've asked fo a solution. Is comment 4 helpful?
Comment 6 Xisco Faulí 2020-05-11 14:05:59 UTC
@Mike Kaganski, please check a reply to your comment on comment 4
Comment 7 Mike Kaganski 2020-05-11 14:48:35 UTC
(In reply to Xisco Faulí from comment #6)
> @Mike Kaganski, please check a reply to your comment on comment 4

Sorry, missed your previous call.

(In reply to NISZ LibreOffice Team from comment #4)
> I just noticed that setting the key
> org.openoffice.Office.Common/Passwords/TrySystemCredentialsFirst to true
> makes this annoying popup go away and file opening to "just work" like it
> used to.
> 
> Maybe the same magic behind that could be used? 
> Maybe setting this key to true by default can be a viable option too
> (although it could have security implications... I'm not sure about that).

That looks promising. I can't check that ATM; I suppose your team could explore that? I would be glad to review the patch - please CC me. Thanks!
Comment 8 Xisco Faulí 2020-05-11 14:50:21 UTC
let's move it to NEW meanwhile
Comment 9 AnthonyS 2021-01-22 14:08:34 UTC
Hi, I tested with every version higher than 6.3.6.2 and the problem's still present.
Even 7.1.0.1 the last I tested.
How can it be it has changed behavior from 6.3 to 6.4 ?
Regards.
Comment 10 QA Administrators 2023-01-23 03:22:11 UTC
Dear NISZ LibreOffice Team,

To make sure we're focusing on the bugs that affect our users today, LibreOffice QA is asking bug reporters and confirmers to retest open, confirmed bugs which have not been touched for over a year.

There have been thousands of bug fixes and commits since anyone checked on this bug report. During that time, it's possible that the bug has been fixed, or the details of the problem have changed. We'd really appreciate your help in getting confirmation that the bug is still present.

If you have time, please do the following:

Test to see if the bug is still present with the latest version of LibreOffice from https://www.libreoffice.org/download/

If the bug is present, please leave a comment that includes the information from Help - About LibreOffice.
 
If the bug is NOT present, please set the bug's Status field to RESOLVED-WORKSFORME and leave a comment that includes the information from Help - About LibreOffice.

Please DO NOT

Update the version field
Reply via email (please reply directly on the bug tracker)
Set the bug's Status field to RESOLVED - FIXED (this status has a particular meaning that is not 
appropriate in this case)


If you want to do more to help you can test to see if your issue is a REGRESSION. To do so:
1. Download and install oldest version of LibreOffice (usually 3.3 unless your bug pertains to a feature added after 3.3) from https://downloadarchive.documentfoundation.org/libreoffice/old/

2. Test your bug
3. Leave a comment with your results.
4a. If the bug was present with 3.3 - set version to 'inherited from OOo';
4b. If the bug was not present in 3.3 - add 'regression' to keyword


Feel free to come ask questions or to say hello in our QA chat: https://web.libera.chat/?settings=#libreoffice-qa

Thank you for helping us make LibreOffice even better for everyone!

Warm Regards,
QA Team

MassPing-UntouchedBug