Skip to content

Chained symlink gets into an infinite loop going from blob to tree in the url

Created by: topebali

  • Sourcegraph version: 3.33.0
  • Platform information: Docker-Composeissue -->

Steps to reproduce:

  1. :touch first.md
  2. ln -s first.md second.md
  3. ln -s second.md third.md
  4. ln -s third.md fourth.md
  5. index on sourcegraph
  6. visit all of the symlinks to see strange behavior, including symlinks resolving in the wrong direction, or resolving into infinite render loops

Expected behavior:

Sourcegraph should be able to show the content of the file.

Actual behavior:

whenever I try to get the content it gets into an infinite loop going from blob to tree in the URL.

If would like immediate help on this, please email [email protected] (you can still create the issue, but there are not SLAs on issues like there are for support requests).