session_start shouldn't be called in CLI context
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 38/100
Research direction
Locate the session-check test and its controller or service entry point, then reproduce it in a CLI context. Review how the session is currently obtained and assess using RequestStack instead; done means CLI monitoring no longer calls session_start() and the check is ignored when no session is available.
Written by the indexing model from the issue text.
Description
I ran into an issue with a monitoring tool that checks all the routes. It is failing on the session check because it's calling session_start(), even though that won't work from the CLI.
https://github.com/Pierstoval/SmokeTesting/issues/14
I think better would be to inject the RequestStack and get the session from there, and ignore the test if it fails or isn't available.
I realize that test is specifically about testing the session, and this is an edge case (calling the controller from a service that doesn't have a browser context).
- Dominant language
- PHP
- Stars
- 7
- Forks
- 2
- PR merge metrics
- No merged PRs in 30d
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
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 OpenConext/Monitor-bundle
-
Difficulty 5/5 Over a week Newbie friendliness 30/100
OpenConext/Monitor-bundle#31 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 45/100
OpenConext/Monitor-bundle#26 ·
-
Support Symonfy 8Open
Difficulty 4/5 3-5 days Newbie friendliness 35/100
OpenConext/Monitor-bundle#25 · 1 comment ·
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
OpenConext/Monitor-bundle#20 · 10 comments ·
All issues in OpenConext/Monitor-bundle
Similar issues
-
Difficulty 1/5 Under an hour Newbie friendliness 84/100
-
area/import type/enhancement when/later
Difficulty 2/5 1-3 hours Newbie friendliness 83/100
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
parime/glpi-iso27001-management#1165 ·
Maintainers usually reply within 1 day
-
15.0
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
opnsense/plugins#5976 · 1 comment ·
Maintainers usually reply within 1 day