Bug 2322227 - business card tool tracebacks after login info is provided
Summary: business card tool tracebacks after login info is provided
Keywords:
Status: CLOSED EOL
Alias: None
Product: Fedora
Classification: Fedora
Component: python-fedora
Version: 41
Hardware: Unspecified
OS: Linux
unspecified
high
Target Milestone: ---
Assignee: Orphan Owner
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-10-28 21:16 UTC by Matthew Miller
Modified: 2025-12-16 17:18 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2025-12-16 17:18:39 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Matthew Miller 2024-10-28 21:16:03 UTC
Here is said traceback:

```
Traceback (most recent call last):
  File "/usr/bin/fedora-business-cards", line 33, in <module>
    sys.exit(load_entry_point('fedora-business-cards==2.3', 'console_scripts', 'fedora-business-cards')())
             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
  File "/usr/lib/python3.13/site-packages/fedora_business_cards/frontend/cmdline.py", line 106, in main
    gen.collect_information()
    ~~~~~~~~~~~~~~~~~~~~~~~^^
  File "/usr/lib/python3.13/site-packages/fedora_business_cards/generators/fedora.py", line 51, in collect_information
    userinfo = self.collect_fas_information()
  File "/usr/lib/python3.13/site-packages/fedora_business_cards/generators/__init__.py", line 86, in collect_fas_information
    return fas.person_by_username(username)
           ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^
  File "/usr/lib/python3.13/site-packages/fedora/client/fas2.py", line 442, in person_by_username
    request = self.send_request(
        'json/person_by_username',
        auth=True,
        req_params=params)
  File "/usr/lib/python3.13/site-packages/fedora/client/baseclient.py", line 365, in send_request
    session_id, data = super(BaseClient, self).send_request(
                       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
        method, req_params=req_params, file_params=file_params,
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        auth_params=auth_params, retries=retries, timeout=timeout)
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.13/site-packages/fedora/client/proxyclient.py", line 478, in send_request
    raise ServerError(url, http_status, msg)
fedora.client.ServerError: ServerError(https://admin.fedoraproject.org/accounts/json/person_by_username, 404, Not Found)

```

Reproducible: Always

Steps to Reproduce:
1. run tool
2. enter username and password
Actual Results:  
traceback

Expected Results:  
business card!

This is "high priority" in the context of this application, the overall priority of which I will leave for now. :)

Comment 1 Gerald Cox 2024-10-30 05:22:20 UTC
Looks like a problem with python-fedora in that there is a server error.  
  File "/usr/lib/python3.13/site-packages/fedora/client/proxyclient.py", line 478, in send_request
    raise ServerError(url, http_status, msg)
fedora.client.ServerError: ServerError(https://admin.fedoraproject.org/accounts/json/person_by_username, 404, Not Found)



Asking them for assistance.

Comment 2 Kevin Fenzi 2024-11-02 23:50:31 UTC
This is trying to query the old, now retired account system. 

The new way is to query fasjson, but that will also need authentication... 

something like: 

curl -L --negotiate -u : https://fasjson.fedoraproject.org//v1/users/kevin
(while you have a valid kerberos ticket).

I think we are wanting to retire python-fedora...

Comment 3 Daniel Milnes 2024-12-07 21:16:57 UTC
I've had a go at porting this over to FASJSON on https://pagure.io/fedora-business-cards/pull-request/20, feedback welcome and I'm happy to take ownership of the package (fedora-business-cards) in dist-git if needed.

Comment 4 Adam Williamson 2025-12-02 01:23:51 UTC
This message is a reminder that Fedora Linux 41 is nearing its end of life.
Fedora will stop maintaining and issuing updates for Fedora Linux 41 on 2025-12-15.
It is Fedora's policy to close all bug reports from releases that are no longer
maintained. At that time this bug will be closed as EOL if it remains open with a
'version' of '41'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, change the 'version' 
to a later Fedora Linux version. Note that the version field may be hidden.
Click the "Show advanced fields" button if you do not see it.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora Linux 41 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora Linux, you are encouraged to change the 'version' to a later version
prior to this bug being closed.

Comment 5 Fedora Admin user for bugzilla script actions 2025-12-16 02:21:10 UTC
This package has changed maintainer in Fedora. Reassigning to the new maintainer of this component.

Comment 6 Samyak Jain (RedHat) 2025-12-16 17:18:39 UTC
Fedora Linux 41 entered end-of-life (EOL) status on 2025-12-15.

Fedora Linux 41 is no longer maintained, which means that it
will not receive any further security or bug fix updates. As a result we
are closing this bug.

If you can reproduce this bug against a currently maintained version of Fedora Linux
please feel free to reopen this bug against that version. Note that the version
field may be hidden. Click the "Show advanced fields" button if you do not see
the version field.

If you are unable to reopen this bug, please file a new report against an
active release.

Thank you for reporting this bug and we are sorry it could not be fixed.


Note You need to log in before you can comment on or make changes to this bug.