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): getting error when clicked on property #3058

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

fix(jans-tui): getting error when clicked on property #3058

manojs1978 opened this issue Nov 23, 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
getting error when clicked on propery

To Reproduce
Steps to reproduce the behavior:

  1. launch jans-tui
  2. got to auth server then properties
  3. press enter on any propery
  4. 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_706842359d8ab7139ec28e58e967393be37225410cc8a13c3a1bb4b5af5b08a2/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_706842359d8ab7139ec28e58e967393be37225410cc8a13c3a1bb4b5af5b08a2/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_706842359d8ab7139ec28e58e967393be37225410cc8a13c3a1bb4b5af5b08a2/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_706842359d8ab7139ec28e58e967393be37225410cc8a13c3a1bb4b5af5b08a2/site-packages/prompt_toolkit/key_binding/key_processor.py", line 320, in _call_handler
    handler.call(event)
  File "/root/.shiv/config-cli-tui.pyz_706842359d8ab7139ec28e58e967393be37225410cc8a13c3a1bb4b5af5b08a2/site-packages/prompt_toolkit/key_binding/key_bindings.py", line 124, in call
    result = self.handler(event)
  File "/root/.shiv/config-cli-tui.pyz_706842359d8ab7139ec28e58e967393be37225410cc8a13c3a1bb4b5af5b08a2/site-packages/cli_tui/wui_components/jans_vetrical_nav.py", line 296, in _
    self.on_enter(passed=self.data[self.selectes], event=event, size=size, data=self.all_data[self.selectes], selected=self.selectes, jans_name=self.jans_name)
  File "/root/.shiv/config-cli-tui.pyz_706842359d8ab7139ec28e58e967393be37225410cc8a13c3a1bb4b5af5b08a2/site-packages/cli_tui/plugins/010_oxauth/main.py", line 555, in view_property
    dialog = ViewProperty(self.app, title=title, data=selected_line_data, get_properties= self.oauth_get_properties, search_properties=self.search_properties, search_text=self.search_text)

Exception 'Plugin' object has no attribute 'oauth_get_properties'

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: ubutnu
  • Browser [e.g. chrome, safari]
  • Version 20.04
  • 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.

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

Fixed in commit e2da3fd
image

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 <mbaser@mail.com>
Co-authored-by: AbdelwahabAdam <abdelwahabosama.1@gmail.com>
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