[BUG] Unable to access files when useDocker is true and SELinux is enabled
@kay-schecker ci sta già lavorando.
Dal 9/9/2025.
Valutazione
Questa issue non è ancora stata valutata.
Descrizione
🐛 Bug Report:
Describe the bug
The OCI container running the generator is unable to access the input files and output directory when they are in a home directory. The volume parameters are missing the :Z at the end of the parameter to enable access when SELinux is enabled. The build fails because the docker container cannot find the spec file, even though it is properly configured.
Steps to Reproduce
Steps to reproduce the behavior:
- Enable SELinux on your linux workstation
- Check out your project into your home directory.
- Don't override default SELinux tags on your work directory. Leave them marked as
unconfined_u:object_r:user_home_t, or however they are marked by default in your home directory. (Hint: usels -lZ to see the SELinux markings) The markings should NOT mentioncontainer`. This would imply that the whole directory was changed to use container-friendly marking. - Attempt to generate code from an api json file.
- See error. The build should complain that the spec file was not found.
Expected behavior
Code should be generated successfully.
Operation System (please complete the following information):
- OS: RHEL 9
- Version 9.6
Package System (please complete the following information):
- Node v22.12.0
Additional context
The volume mount parameters should have a :Z at the end of the mapping (-v "<source file>:/local/input-spec:Z"). All volume mappings need this parameter.
- Lingua principale
- TypeScript
- Stelle
- 2k
- Fork
- 208
- Merge medio
- 7h 12m
- PR unite (30g)
- 6
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di OpenAPITools/openapi-generator-cli
-
[FEATURE] consider using caret ranges instead of pinned exact versions for runtime dependencies Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
-
bug
OpenAPITools/openapi-generator-cli#1213 · 1 assegnatario ·
-
bug
OpenAPITools/openapi-generator-cli#1190 · 1 assegnatario ·
-
bug
OpenAPITools/openapi-generator-cli#1138 · 1 commento · 1 assegnatario ·
-
bug
OpenAPITools/openapi-generator-cli#1094 · 1 commento · 1 assegnatario ·
Tutte le issue di OpenAPITools/openapi-generator-cli
Issue simili
-
clawsweeper:fix-shape-clear clawsweeper:queueable-fix clawsweeper:source-repro impact:ux-friction issue-rating: 🦞 diamond lobster no-stale P3
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
-
community first-timers-only good first issue hacktoberfest help wanted low hanging fruit up-for-grabs
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 76/100
-
code-quality refactoring
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
github/gh-aw-firewall#8816 ·
-
integration:quickjs org:external priority:backlog topic:code-interpreter topic:middleware type:feature
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
langchain-ai/deepagents#6450 ·
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 88/100
vercel/react-tweet#225 ·