Inconsistent path resolution with symbolic links between display editor and display runtime
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 48/100
Research direction
Start by reproducing the issue on Linux with the directory and symlink setup in the report. Compare how the display editor and display runtime resolve the Embedded Display's relative path. Done means the runtime finds and opens test-target.bob at the location selected in the editor when the source display is accessed through the symlink.
Written by the indexing model from the issue text.
Description
My realization of the week: at least on Linux, when symbolic links are at play, a/b/../c doesn't necessarily means a/c (b can be a symbolic link, so a/b/.. means the parent of the target directory of b).
When using symbolic linked directories, it seems the display editor and the display runtime doesn't resolve relative paths the same way.
How to reproduce:
-
In a given directory, run:
mkdir -p test/a/b ln -sfn ./a/b test/c -
Open Phoebus, and:
- create a display
test-target.bobin the newly createdtestfolder, - create a display
test-source.bobin thetest/c/folder (through the symbolic link), - in
test-source.bob, create an Embedded Display, and using the Phoebus interface, make it point totest-target.bob, - run the display, and observe Phoebus saying that it can't find the file
- create a display
Created structure:
.
└── test
├── a
│ └── b
│ └── test-source.bob
├── c -> ./a/b
└── test-target.bob
The created Embedded Display points to ../../test-target.bob which correct: relative to the display this is test/c/../../test-target.bob which resolves to test/a/b/../../test-target.bob -> test/test-target.bob (and not test-target.bob).
For us, this happened because we develop some of our displays in different Git repositories, and have a different structure to present to the operators in production. For development, we created that structure using symbolic links so that modifying displays in that structure modifies the displays in our Git repositories:
dev-bundle
├── sources
│ └── our-internal-gitlab.example.com
│ ├── git-repo1
│ ├── git-repo2
│ └── etc.
└── views
├── LCS
│ └── LLRF -> ../../sources/our-internal-gitlab.example.com/LLRF-views
└── MCS -> ../sources/our-internal-gitlab.example.com/MCS-views
- Dominant language
- Java
- Stars
- 130
- Forks
- 132
- Avg merge
- 2d 11h
- Merged PRs (30d)
- 23
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- No contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from ControlSystemStudio/phoebus
-
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
ControlSystemStudio/phoebus#3983 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
ControlSystemStudio/phoebus#3979 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 80/100
ControlSystemStudio/phoebus#3962 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
ControlSystemStudio/phoebus#3865 · 1 comment ·
Maintainers usually reply within 1 day
-
Audio annunciator unable to use audio files which have a space in their pathPossibly taken @LordIdra claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 35/100
ControlSystemStudio/phoebus#3992 ·
Maintainers usually reply within 1 day
All issues in ControlSystemStudio/phoebus
Similar issues
-
Good First Issue
Difficulty 1/5 Under an hour Newbie friendliness 75/100
hiero-ledger/hiero-sdk-java#3025 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 80/100
-
DogFooding
Difficulty 1/5 Under an hour Newbie friendliness 88/100
OpenAEV-Platform/openaev#8768 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
federicoiosue/Omni-Notes#1039 ·
-
type: bug
Difficulty 2/5 1-3 hours Newbie friendliness 64/100
micronaut-projects/micronaut-core#14179 ·
Maintainers usually reply within 1 day