Docfx: Unable to process files with url-escaped symbols in names

Created on 24 Sep 2019  路  3Comments  路  Source: dotnet/docfx

Operation System: (Windows or Linux or MacOS)
tested on Windows

DocFX Version Used:
2.39.2.0 (reproducable at 2.45.1 as well)

Template used: (default or statictoc or contain custom template)
default

Steps to Reproduce:

  1. name the file with %2D or any other url-escape code, e.g. im%2Descaped.md (as azure devops wiki does)
  2. use "files": [ "*.md" ] in docfx.json
  3. try to build

Expected Behavior:
document builds

Actual Behavior:

Build failed.
[19-09-24 08:42:50.944]Error:System.IO.DirectoryNotFoundException: Unable to find part of path "D:\md\azurewiki2docfx\sources\im%2Aescaped.md".
   胁 System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)

Minimal reproducible example (ZIP).

bug help-wanted

All 3 comments

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in a week if no further activity occurs.

Hey, what is the point to close old issues? Neither stalebot, nor anyone else will fix it if it is closed.

Sorry for late response... There must be some bug in the logic to fetch the file. You could try to work around this issue by changing the file name first.

Was this page helpful?
0 / 5 - 0 ratings