---
id: change/bcapps/14002
type: change
title: '#14002 External File Storage: reject "." and ".." path segments'
summary: External File Storage now rejects any path where a whole segment is "." or "..", for all operations and connectors, so calls like DeleteDirectory('A/B/..') no longer act on folder A. Dots inside names stay valid. Callers that pass relative segments now get an error.
tier: official
language: en
tags:
  - fix
  - main
  - bc30
  - codeunit external file storage impl.
system: platform
review:
  state: reviewed
  by: opus
  at: "2026-11-17T00:58:47.718Z"
  flags: []
generated:
  at: "2026-11-30T10:37:49.603Z"
  pipeline: 0.2.0
  prompts:
    extract-change: 1
  input_hash: 02be9cd835b447de496db7e9fc407f3aa14f08ea
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/pull/14002
    title: 'microsoft/BCApps#14002: External File Storage: reject "." and ".." path segments'
    date: "2026-11-16"
    commit: 02be9cd835b447de496db7e9fc407f3aa14f08ea
    t: null
    quote: Rejects a path when a whole segment is "." or "..", with a clear error.
links:
  learn: []
  objects:
    - object/codeunit/9455
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes: []
  related:
    - to: https://learn.microsoft.com/dynamics365/business-central/across-store-document-attachments-externally
      title: Store Document Attachments in External File Storage
      label: possibly related
      why: Documents external file storage configuration for document attachments, covering file path handling and security.
      by: model
number: 14002
repo: microsoft/BCApps
source_id: bcapps-prs
url: https://github.com/microsoft/BCApps/pull/14002
kind: pr
base_branch: main
major: "30"
merged_at: "2026-11-16T15:05:40Z"
author: jorisvanduyse
author_type: User
community_contribution: true
labels:
  - "ADO: Sync"
  - "AL: System Application"
  - From Fork
  - "Team: Integrations"
change_class: code
change_kind: fix
behavior_change: true
breaking: true
files:
  count: 2
  additions: 96
  deletions: 0
  al: 1
apps:
  - System Application
objects_touched:
  - key: codeunit/9455
    page: codeunit/9455
    type: codeunit
    id: 9455
    name: External File Storage Impl.
    app: System Application
    status: modified
objects_unjoined: []
obsoletions: []
backports: []
fixes_issues:
  - 12611
work_items:
  - 659509
systems:
  - platform
quote: Rejects a path when a whole segment is "." or "..", with a clear error.
joined_against:
  major: "30"
  commit: d2abc1d2ceae394331716c8183ef60e1534c2ce0
---

# #14002 External File Storage: reject "." and ".." path segments

> External File Storage now rejects any path where a whole segment is "." or "..", for all operations and connectors, so calls like DeleteDirectory('A/B/..') no longer act on folder A. Dots inside names stay valid. Callers that pass relative segments now get an error.

[Pull request](https://github.com/microsoft/BCApps/pull/14002) · merged into `main` (BC30) on 2026-11-16 by jorisvanduyse (community contribution) · 2 files (+96 -0), 1 AL · fix · tier official · reviewed (checked by Opus)

## What changed

- CheckPath in External File Storage Impl. rejects whole "." or ".." segments with a new error
- Stops connectors such as SharePoint from resolving relative segments and acting on the wrong folder
- Dots inside names, such as v1..2.pdf, ..hidden or a., remain valid
- Public API behavior change: try functions return false for such paths, so outside callers must pass normalized paths
- New test codeunit 134754 File Storage Path Test covers the rejected and allowed cases
- Breaking: existing extensions can stop compiling or working.

## AL objects touched

- [Codeunit 9455 "External File Storage Impl."](../../objects/codeunit/9455.md), System Application: modified

## Context

- Fixes: [#12611 [Bug]: External File Storage - Delete in Storage Browser on ".." entry deletes the whole base folder](https://github.com/microsoft/BCApps/issues/12611) (closed)
- Work items: AB#659509
- Labels: ADO: Sync, AL: System Application, From Fork, Team: Integrations
- Systems: platform
- From the description: "Rejects a path when a whole segment is "." or "..", with a clear error."

## Possibly related

No source states these links: they share an object, a model read them, or a person found the same subject.

- [Store Document Attachments in External File Storage](https://learn.microsoft.com/dynamics365/business-central/across-store-document-attachments-externally) — possibly related: Documents external file storage configuration for document attachments, covering file path handling and security. (model-linked)

Source: metadata of a merged pull request in microsoft/BCApps (bcapps): title, labels, changed paths and counts, with a summary in our words. No source text and no description beyond one short quote (D10, D61).
