notepad-plus-plus / notepad-plus-plus/notepad-plus-plus

Opening files from mapped drives fails when launching Notepad++ in Administrator mode.

Open
#9,215 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C++
Stars
29.4k
Forks
5.4k
PR merge metrics
No merged PRs in 30d

Description

Description of the Issue

Notepad++ is unable to open files from mapped drives when it has been launched in Administrator mode.

Steps to Reproduce the Issue
  1. Map a network drive to a network share; i.e. J:\ to \server\share
  2. Open Notepad++
  3. Open a file such as C:\Windows\System32\drivers\etc\hosts
  4. Make a change to the hosts file. Notepad++ will ask if you want to "launch Notepad++ in Administrator mode?"
  5. Click Yes.
  6. Open File Explorer and try to open any file in your network drive; i.e. J:\readme.txt
Expected Behavior

I expected Notepad++ to be able to open the file.

Actual Behavior

Notepad++ gives the error: "J:\files\readme.txt" cannot be opened: Folder "J:\files" doesn't exist.

Debug Information

Notepad++ v7.9 (64-bit)
Build time : Sep 22 2020 - 03:19:04
Path : C:\Program Files\Notepad++\notepad++.exe
Admin mode : ON
Local Conf mode : OFF
OS Name : Windows 10 Pro (64-bit)
OS Version : 1909
OS Build : 18363.1198
Current ANSI codepage : 1252
Plugins : mimeTools.dll NppConverter.dll NppExport.dll

Screenshots
Snag_1b2f79 Snag_1b7c22

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the mapped-drive failure using the listed Windows 10 steps, including relaunching Notepad++ in Administrator mode. Verify that a file on the mapped drive opens normally before elevation and fails afterward; done means the same file opens successfully in Administrator mode.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
desktop, operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.