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

pylero fails with "normId is invalid: /default/${Project}'" when missing default project argument #161

Open
KwisatzHaderach opened this issue Nov 21, 2023 · 0 comments

Comments

@KwisatzHaderach
Copy link

Running pylero with defined env variables POLARION_PASSWORD, POLARION_USERNAME, POLARION_REPO and POLARION_URL fails with nasty exception:

[0 13:07:48 pmatyas@pmatyas-fedora ~]$ pylero
Traceback (most recent call last):
...
During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pmatyas/.local/bin/pylero", line 85, in <module>
    main()
  File "/home/pmatyas/.local/bin/pylero", line 75, in main
    imp_mod = __import__("pylero.{0}".format(the_mod), fromlist=[""])
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/pmatyas/.local/lib/python3.11/site-packages/pylero/build.py", line 8, in <module>
    from pylero.build_linked_work_item import ArrayOfBuildLinkedWorkItem
  File "/home/pmatyas/.local/lib/python3.11/site-packages/pylero/build_linked_work_item.py", line 9, in <module>
    from pylero.work_item import _WorkItem
  File "/home/pmatyas/.local/lib/python3.11/site-packages/pylero/work_item.py", line 1582, in <module>
    vals = bp.get_valid_field_values("workitem-type")
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/pmatyas/.local/lib/python3.11/site-packages/pylero/base_polarion.py", line 1052, in get_valid_field_values
    enums = self.session.tracker_client.service.getEnumOptionsForIdWithControl(
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/pmatyas/.local/lib/python3.11/site-packages/suds/client.py", line 586, in __call__
    return client.invoke(args, kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/pmatyas/.local/lib/python3.11/site-packages/suds/client.py", line 728, in invoke
    result = self.send(soapenv, timeout=timeout)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/pmatyas/.local/lib/python3.11/site-packages/suds/client.py", line 776, in send
    return self.process_reply(content, e.httpcode, tostr(e))
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/pmatyas/.local/lib/python3.11/site-packages/suds/client.py", line 840, in process_reply
    raise WebFault(fault, replyroot)
suds.WebFault: Server raised fault: 'java.lang.IllegalArgumentException: normId is invalid: /default/${Project}'

Instead of clean fail mentioning missing POLARION_PROJECT

Same behaviour when missing default_project argument from .pylero config

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant