apache / apache/buildstream

Using ".." allows loading elements from outside of `element-path`

Open
#2,178 5 comments 1 reaction 0 assignees View on GitHub
bug frontend newcomers
Dominant language
Python
Stars
140
Forks
45
Avg merge
1d 3h
Merged PRs (30d)
6

Description

If I have a project with the conventional `element-path: elements`, I can write an element in the root directory of the project (say `test.bst`) and bst will happily load it if I do `bst show ../test.bst` or `bst build ../test.bst`.

Contributor guide

Open the contributing guide

Research direction

Reproduce the issue in a project using the conventional element-path: elements setting, then run `bst show ../test.bst` and `bst build ../test.bst` with an element outside that directory. Trace the element-path validation for these commands and consider the issue done when both commands reject elements outside the configured path.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
build-system, cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
67/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.