benoitc / benoitc/erica

Path normalization glitch if traversing beyond root

Open
#112 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
264
Forks
30
PR merge metrics
No merged PRs in 30d

Description

``` erlang
erica_util:normalize_path("/tmp/1/2/3/../../../../../..").
```

results in `"/../.."` where I would expect `"/"` when traversing up to or beyond the root folder.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by locating the erica_util:normalize_path/1 entry point and inspect how it handles absolute paths and parent-directory segments. Reproduce the shown input, then verify that traversing to or beyond the root returns "/" rather than a path containing leading parent segments.

Written by the indexing model from the issue text.

Assessment

Tech stack
erlang
Domain
tooling
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
50/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.