Windows: existing UNC paths are denied by content exclusion on 1.0.114 (regression from 1.0.108)
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 48/100
- Tipo de issue
- Error
- Claridad
- Bastante claro
- Estado de actividad
- Activo
- Área
- security
Línea de trabajo
The report identifies content exclusion preflight as the failing area, but names no source files or tests. Start by tracing how Copilot CLI classifies paths for content exclusion on Windows, then compare handling of the drive-letter and existing UNC forms and review related issue #5521. Done when unmatched UNC paths receive the same exclusion decision as the equivalent drive-letter path, with regression coverage for the reported cases.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Describe the bug
On Windows, Copilot CLI 1.0.114 rejects shell tool calls that reference an existing UNC path during preflight, with:
Access denied: "\\localhost\C$\Temp\plain" is excluded by organization content policy. Do not attempt to access this file.
No configured exclusion rule matches these paths. The same folder accessed via its drive-letter path (C:\Temp\plain) is allowed in the same session. A UNC path to a non-existent host is also allowed. The denial happens before PowerShell starts (no shell ID or exit code is recorded), so Windows/SMB permissions are never involved. The user can open the same network folders in File Explorer.
The same organization policy did not produce these denials on 1.0.108. This looks like a regression in how 1.0.114 classifies Windows UNC paths for content exclusion, and it may be related to #5521 (Perforce //depot/... paths misclassified as UNC paths on Linux, also 1.0.114).
Affected version
GitHub Copilot CLI 1.0.114-unstable.r45286541461.g05667ac (via VS Code 1.148.0, Windows x64)
Not reproduced on 1.0.108-0 (also via VS Code, Windows x64).
Steps to reproduce the behavior
- Use Windows with an organization account that has content exclusions enabled. Both machines below log
[ContentExclusionService] Loaded 2 exclusion rule(s) for 1 repo(s), and the rules are for an unrelated repository. - Create a local folder:
New-Item -ItemType Directory -Force C:\Temp\plain - Ask Copilot to run each command below through its PowerShell tool, as separate tool calls:
| Command | 1.0.114 result |
|---|---|
Test-Path -LiteralPath 'C:\Temp\plain' |
allowed (True) |
Test-Path -LiteralPath '\\localhost\C$\Temp\plain' (same folder via UNC) |
denied (code denied) |
Test-Path -LiteralPath '\\nonexistent-host.invalid\share\plain' |
allowed (False) |
Test-Path -LiteralPath 'C:\Temp\SAV\x' (local control) |
allowed (True) |
On 1.0.114, an existing directory on a corporate DFS share and its parent folder were both denied with the same message. The user can open both in File Explorer.
On 1.0.108-0, a different machine using the same organization policy could list that same corporate share directory through the PowerShell tool. Test-Path '\\localhost\C$\Temp', Test-Path '\\nonexistent-host.invalid\share\plain' and Test-Path 'C:\Temp\SAV\x' were also allowed. Caveat: on 1.0.108 the PowerShell sandbox was disabled for these runs. With it enabled, every command failed earlier with an unrelated Invalid sandbox host rule error. The sandbox state of the 1.0.114 machine was not recorded.
Expected behavior
UNC paths that don't match any configured exclusion rule should not be denied. The same folder should get the same decision regardless of whether it's referenced by drive letter or UNC path.
Additional context
- In the session log, the
preToolUsehook completes without a decision or output before each denial. The tool result carries error codedenied. - In the 1.0.114 process log, no
ContentExclusion,rt_git, ordeniedlines appear around the local, allowed calls. Process log lines around the denied UNC calls have not been collected yet. git -C '\\localhost\C$\Temp' rev-parse --show-toplevel(and the\\?\UNC\localhost\C$\Tempform) returns the normalnot a git repositoryresult, the same as forC:\Temp, so repository discovery via git does not appear to fail on these paths.
- Lenguaje dominante
- Python
- Estrellas
- 11.5k
- Forks
- 2k
- Merge medio
- 6 h 34 min
- PR fusionados (30 d)
- 3
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de github/copilot-cli
-
area:plugins
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
github/copilot-cli#5567 ·
-
Dificultad 1/5 1-3 horas Aptitud para principiantes 78/100
github/copilot-cli#5489 ·
-
Built-in functions.view returns no content for large files despite documenting automatic truncationAbiertoarea:tools
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
github/copilot-cli#5476 ·
-
triage
Dificultad 1/5 Menos de una hora Aptitud para principiantes 74/100
github/copilot-cli#5377 ·
-
area:platform-windows area:tools
Dificultad 1/5 Menos de una hora Aptitud para principiantes 74/100
github/copilot-cli#5340 ·
Todos los issues de github/copilot-cli
Issues similares
-
marketing
Dificultad 2/5 1-3 horas Aptitud para principiantes 85/100
Los mantenedores suelen responder en 1 día
-
Status: Triage Suggestion
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
GTNewHorizons/GT-New-Horizons-Modpack#27957 ·
Los mantenedores suelen responder en 1 día
-
[Suggestion]: NoParrotAbierto
Dificultad 1/5 Menos de una hora Aptitud para principiantes 92/100
collabnix/awesome-mcp-lists#515 ·
Los mantenedores suelen responder en 1 día
-
Look-ahead bias via resample('1min').interpolate(method='time') in CCIStrategy and ReinforcedQuickieAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
-
documentation good first issue
Dificultad 1/5 1-3 horas Aptitud para principiantes 90/100
Los mantenedores suelen responder en 1 día