Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(jans-tui): Error in Logout and exit jans-cli #3050

Closed
manojs1978 opened this issue Nov 22, 2022 · 1 comment
Closed

fix(jans-tui): Error in Logout and exit jans-cli #3050

manojs1978 opened this issue Nov 22, 2022 · 1 comment
Assignees
Labels
comp-jans-tui kind-bug Issue or PR is a bug in existing functionality

Comments

@manojs1978
Copy link
Contributor

Describe the bug
Error in Logout and exit jans-cli

To Reproduce
Steps to reproduce the behavior:

  1. launch jans-tui
  2. goto jans-cli then logout and exit jans-cli
  3. See error

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 "/root/.shiv/config-cli-tui.pyz_531d4bfdb541e134db7d69e87d05d1d2fa7cfd07cc654f6d21d2a61c86503c7d/site-packages/prompt_toolkit/input/vt100.py", line 173, in callback_wrapper
    callback()
  File "/root/.shiv/config-cli-tui.pyz_531d4bfdb541e134db7d69e87d05d1d2fa7cfd07cc654f6d21d2a61c86503c7d/site-packages/prompt_toolkit/application/application.py", line 707, in read_from_input
    self.key_processor.process_keys()
  File "/root/.shiv/config-cli-tui.pyz_531d4bfdb541e134db7d69e87d05d1d2fa7cfd07cc654f6d21d2a61c86503c7d/site-packages/prompt_toolkit/key_binding/key_processor.py", line 270, in process_keys
    self._process_coroutine.send(key_press)
  File "/root/.shiv/config-cli-tui.pyz_531d4bfdb541e134db7d69e87d05d1d2fa7cfd07cc654f6d21d2a61c86503c7d/site-packages/prompt_toolkit/key_binding/key_processor.py", line 185, in _process
    self._call_handler(matches[-1], key_sequence=buffer[:])
  File "/root/.shiv/config-cli-tui.pyz_531d4bfdb541e134db7d69e87d05d1d2fa7cfd07cc654f6d21d2a61c86503c7d/site-packages/prompt_toolkit/key_binding/key_processor.py", line 320, in _call_handler
    handler.call(event)
  File "/root/.shiv/config-cli-tui.pyz_531d4bfdb541e134db7d69e87d05d1d2fa7cfd07cc654f6d21d2a61c86503c7d/site-packages/prompt_toolkit/key_binding/key_bindings.py", line 124, in call
    result = self.handler(event)
  File "/root/.shiv/config-cli-tui.pyz_531d4bfdb541e134db7d69e87d05d1d2fa7cfd07cc654f6d21d2a61c86503c7d/site-packages/prompt_toolkit/widgets/base.py", line 466, in _
    self.handler()
  File "/root/.shiv/config-cli-tui.pyz_531d4bfdb541e134db7d69e87d05d1d2fa7cfd07cc654f6d21d2a61c86503c7d/site-packages/cli_tui/plugins/999_jans/main.py", line 77, in logout_exit_cli
    del config_cli.config['DEFAULT']['user_data']
  File "/usr/lib/python3.8/configparser.py", line 1264, in __delitem__
    raise KeyError(key)

Exception 'user_data'
Press ENTER to continue...

Expected behavior
should not get any error

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

Desktop (please complete the following information):

  • OS: ubuntu
  • Browser
  • Version 20.04

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.

@manojs1978 manojs1978 added kind-bug Issue or PR is a bug in existing functionality comp-jans-tui labels Nov 22, 2022
@devrimyatar
Copy link
Contributor

Fixed in commit b4b3c16

moabu added a commit that referenced this issue Nov 29, 2022
* refactor: remove jans-cli

* fix: jans-cli no need to get properties each time

* feat: jans-linux-setup tui installer

* fix: jans-linux-setup clean old cli user data

* fix: jans-linux-setup missing cli libraries

* fix: jans-cli code clean OrderedDict

* fix: jans-cli runtime plugins

* fix: jans-cli don't decode if access_token_enc is empty

* fix: jans-cli edit property (ref: #3058)

* fix: jans-cli screen hangs on scim save (ref: #3061)

* fix: jans-cli multiple device auth message on save creds (ref: #3059)

* fix:jans-cli remove unnecessary logs

* fix:jans-cli reviced all array type in properties (ref: #3062)

* fix:jans-cli fix move backword in auth server column (ref: #\3073)

* fix: jans-cli delete if jca_client_secret manually added to config.ini

* fix: jans-cli typo

* fix: jans-cli config-api move to asyncio

* fix: jans-cli save admin-ui roles

* feat: jans-cli display progressing text on status bar

* feat: jans-cli progressing texts for user plugin

* fix: jans-cli decode encrypted data if salt changed

* fix: jans-cli check existence of data when logout (ref: #3050)

* fix:jans-cli getting window too small error in edit user (ref: #3041)

* fix:jans-cli remove un-used scrollbar (ref: #3070 #3041)

* feat: jans-cli add User-inum to request headers

* fix: jans-cli check existence of inum in user info

* fix: jans-cli DocString (ref: #2572)

* fix: jans-cli DocString (ref: #2572)

* fix: jans-cli DocString and removing unused imports (ref: #2572)

* fix:jans-cli Ask on delete of scripts conf. properties (ref: #3105)

* fix: jans-cli Error on deleting Claims in scopes(ref:  #3106)

* fix: jans-cli Error on deleting without verification of deletion (ref: #3107)

Co-authored-by: Mustafa Baser <[email protected]>
Co-authored-by: AbdelwahabAdam <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
comp-jans-tui kind-bug Issue or PR is a bug in existing functionality
Projects
None yet
Development

No branches or pull requests

3 participants