jenkins node names might break the service
- Dominant language
- Python
- Stars
- 4
- Forks
- 6
- PR merge metrics
- No merged PRs in 30d
Description
When the name looks like the mita naming conventions:
```
2016-04-11 11:04:49,182 [ERROR ] [mita.hooks.error][MainThread] unhandled error by controller: NodeController.idle
2016-04-11 11:04:49,183 [ERROR ] [mita.hooks.error][MainThread] request path /api/nodes/manual/idle
Traceback (most recent call last):
File "/opt/mita/local/lib/python2.7/site-packages/pecan/core.py", line 678, in __call__
self.invoke_controller(controller, args, kwargs, state)
File "/opt/mita/local/lib/python2.7/site-packages/pecan/core.py", line 572, in invoke_controller
result = controller(*args, **kwargs)
File "/opt/mita/src/mita/mita/controllers/nodes.py", line 48, in idle
abort(404, 'could not find UUID: %s' % self.identifier)
File "/opt/mita/local/lib/python2.7/site-packages/pecan/core.py", line 141, in abort
exec('raise webob_exception, None, traceback')
File "/opt/mita/local/lib/python2.7/site-packages/gunicorn/workers/sync.py", line 66, in run_for_one
self.accept(listener)
File "/opt/mita/local/lib/python2.7/site-packages/gunicorn/workers/sync.py", line 27, in accept
client, addr = listener.accept()
File "/usr/lib/python2.7/socket.py", line 202, in accept
sock, addr = self._sock.accept()
HTTPNotFound: could not find UUID: manual
```
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with mita/controllers/nodes.py and the NodeController.idle entry point shown in the traceback; reproduce the failure through /api/nodes/manual/idle using a Jenkins node name that matches the reported naming convention. Trace how the name becomes the identifier, then verify that valid node names no longer produce HTTPNotFound or break the service.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100