Skip to content

fix(jans-cli-tui): tui breaking while creating property #11044

@manojs1978

Description

@manojs1978

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:

  1. install jans nightly
  2. create new property with acrmapings
  3. See error

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: ubuntu20
  • Browser [e.g. chrome, safari]
  • Version [e.g. 20]
  • DB mysql

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.


Unhandled exception in event loop:
  File "/usr/lib/python3.8/asyncio/events.py", line 81, in _run
    self._context.run(self._callback, *self._args)
  File "/opt/jans/jans-cli/cli/pylib/prompt_toolkit/input/vt100.py", line 173, in callback_wrapper
    callback()
  File "/opt/jans/jans-cli/cli/pylib/prompt_toolkit/application/application.py", line 707, in read_from_input
    self.key_processor.process_keys()
  File "/opt/jans/jans-cli/cli/pylib/prompt_toolkit/key_binding/key_processor.py", line 270, in process_keys
    self._process_coroutine.send(key_press)
  File "/opt/jans/jans-cli/cli/pylib/prompt_toolkit/key_binding/key_processor.py", line 185, in _process
    self._call_handler(matches[-1], key_sequence=buffer[:])
  File "/opt/jans/jans-cli/cli/pylib/prompt_toolkit/key_binding/key_processor.py", line 320, in _call_handler
    handler.call(event)
  File "/opt/jans/jans-cli/cli/pylib/prompt_toolkit/key_binding/key_bindings.py", line 124, in call
    result = self.handler(event)
  File "/opt/jans/jans-cli/wui_components/jans_vetrical_nav.py", line 382, in _
    self.on_enter(passed=self.data[self.selectes], event=event, size=size,
  File "/opt/jans/jans-cli/plugins/010_auth_server/main.py", line 590, in add_property
    self.view_property(passed=passed, op_type='add')
  File "/opt/jans/jans-cli/plugins/010_auth_server/main.py", line 725, in view_property
    dialog = ViewProperty(app=self.app, parent=self, title=title, data=selected_line_data, op_type=params.get('op_type', 'replace'))
  File "/opt/jans/jans-cli/plugins/010_auth_server/view_property.py", line 54, in __init__
    self.prepare_properties()
  File "/opt/jans/jans-cli/plugins/010_auth_server/view_property.py", line 372, in prepare_properties
    self.widgets = self.get_widgets({properties['title']: {'type': 'string'}}, values={properties['title']: self.value})
  File "/usr/lib/python3/dist-packages/ruamel/yaml/comments.py", line 747, in __getitem__
    return ordereddict.__getitem__(self, key)

Exception 'title'
Press ENTER to continue...

Metadata

Metadata

Assignees

Labels

comp-jans-cli-tuiComponent affected by issue or PRkind-bugIssue or PR is a bug in existing functionality

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions