dotnet / dotnet/docfx

View Source link misinterprets leading decimals in path when using short style SSH URLs

Open
#7,258 0 comments 1 reaction 0 assignees View on GitHub
git
Dominant language
C#
Stars
4.4k
Forks
890
Avg merge
2h 11m
Merged PRs (30d)
10

Description

**Operating System**: `Windows`

**DocFX Version Used**: v2.52

**Template used**: `default`

**Steps to Reproduce**:

1. Host a docfx git repository at a URL with a path that begins with decimals. For example: `www.example.com/12example/MyRepo`
2. Configure your git origin using a short-style SSH URL as follows: `git@www.example.com:12example/MyRepo.git`
3. Build documentation for the repository

**Expected Behavior**:
View Source URL for source pages links to `www.example.com/12example/MyRepo`

**Actual Behavior**:
View Source URL instead links to `www.example.comexample/MyRepo`

**Note**:
Presumably these decimals are being interpreted as a port number instead (which I believe is not supported by this URL style) and ignored. This error can be worked around by using long style URLs (`ssh://git@www.example.com/12example/MyRepo.git`) instead.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.