Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.

Bug 1431035

Summary: coprs should check credentials before uploading source rpm
Product: [Fedora] Fedora Reporter: Andreas Schneider <asn>
Component: copr-cliAssignee: clime
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: asn, clime, jkadlcik, msuchy, praiskup
Target Milestone: ---Keywords: Reopened
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: copr-cli-1.63-1.fc26 copr-cli-1.63-1.fc25 copr-cli-1.63-1.fc27 copr-cli-1.64-1.el6 copr-cli-1.67-1.el7 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-04-09 19:00:10 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Andreas Schneider 2017-03-10 08:48:59 UTC
Description of problem:

coprs should check credentials before uploading source rpm!


copr build asn/samba_ad_dc krb5-1.15.1-2.fc25.src.rpm
Uploading package krb5-1.15.1-2.fc25.src.rpm
100% |################################| 10.8MB 122kB/s eta 0:00:00
Something went wrong:
Error: Login invalid/expired. Please visit https://copr.fedorainfracloud.org/api to get or renew your API token.


Version-Release number of selected component (if applicable):
copr-cli-1.58-1.fc25.noarch

Comment 1 Pavel Raiskup 2017-07-25 11:01:20 UTC
Alternative to 'koji hello' could be used as a first step.  Pseudo-code:

    rc = cli.hello()
    if rc == 403:
        error "not authorized"
    elif rc == 404:
        warning "Older frontend, try on blind ..."

    send_post_data

Btw., 'copr hello' command would be neat anyways ...

Comment 2 Fedora Update System 2017-09-15 11:53:02 UTC
copr-cli-1.63-1.el7 python-copr-1.81-1.el7 has been submitted as an update to Fedora EPEL 7. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2017-5e1f7e4fbd

Comment 3 Fedora Update System 2017-09-15 11:53:12 UTC
copr-cli-1.63-1.fc27 python-copr-1.81-1.fc27 has been submitted as an update to Fedora 27. https://bodhi.fedoraproject.org/updates/FEDORA-2017-33f6907a1c

Comment 4 Fedora Update System 2017-09-15 11:53:19 UTC
copr-cli-1.63-1.el6 python-copr-1.81-1.el6 has been submitted as an update to Fedora EPEL 6. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2017-e56e299528

Comment 5 Fedora Update System 2017-09-15 11:53:27 UTC
copr-cli-1.63-1.fc26 python-copr-1.81-1.fc26 has been submitted as an update to Fedora 26. https://bodhi.fedoraproject.org/updates/FEDORA-2017-7bc3cc141c

Comment 6 Fedora Update System 2017-09-15 11:53:33 UTC
copr-cli-1.63-1.fc25 python-copr-1.81-1.fc25 has been submitted as an update to Fedora 25. https://bodhi.fedoraproject.org/updates/FEDORA-2017-06039f0414

Comment 7 Fedora Update System 2017-09-15 16:55:52 UTC
copr-cli-1.63-1.fc27, python-copr-1.81-1.fc27 has been pushed to the Fedora 27 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-33f6907a1c

Comment 8 Fedora Update System 2017-09-16 04:25:34 UTC
copr-cli-1.63-1.fc26, python-copr-1.81-1.fc26 has been pushed to the Fedora 26 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-7bc3cc141c

Comment 9 Fedora Update System 2017-09-16 05:31:10 UTC
copr-cli-1.63-1.fc25, python-copr-1.81-1.fc25 has been pushed to the Fedora 25 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-06039f0414

Comment 10 Fedora Update System 2017-09-16 05:49:23 UTC
copr-cli-1.63-1.el6, python-copr-1.81-1.el6 has been pushed to the Fedora EPEL 6 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2017-e56e299528

Comment 11 Fedora Update System 2017-09-16 05:50:13 UTC
copr-cli-1.63-1.el7, python-copr-1.81-1.el7 has been pushed to the Fedora EPEL 7 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2017-5e1f7e4fbd

Comment 12 Fedora Update System 2017-09-26 23:54:46 UTC
copr-cli-1.63-1.fc26, python-copr-1.81-1.fc26 has been pushed to the Fedora 26 stable repository. If problems still persist, please make note of it in this bug report.

Comment 13 Fedora Update System 2017-09-27 05:27:22 UTC
copr-cli-1.63-1.fc25, python-copr-1.81-1.fc25 has been pushed to the Fedora 25 stable repository. If problems still persist, please make note of it in this bug report.

Comment 14 Fedora Update System 2017-09-30 06:34:41 UTC
copr-cli-1.63-1.fc27, python-copr-1.81-1.fc27 has been pushed to the Fedora 27 stable repository. If problems still persist, please make note of it in this bug report.

Comment 15 Fedora Update System 2017-10-18 15:41:19 UTC
copr-cli-1.64-1.el7 python-copr-1.82-1.el7 has been submitted as an update to Fedora EPEL 7. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2017-bf42b6c4ac

Comment 16 Fedora Update System 2017-10-18 15:41:28 UTC
copr-cli-1.64-1.el6 python-copr-1.82-1.el6 has been submitted as an update to Fedora EPEL 6. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2017-070e06cb43

Comment 17 Fedora Update System 2017-10-19 19:47:12 UTC
copr-cli-1.64-1.el7, python-copr-1.82-1.el7 has been pushed to the Fedora EPEL 7 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2017-bf42b6c4ac

Comment 18 Fedora Update System 2017-10-19 22:47:46 UTC
copr-cli-1.64-1.el6, python-copr-1.82-1.el6 has been pushed to the Fedora EPEL 6 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2017-070e06cb43

Comment 19 Fedora Update System 2017-11-09 01:33:17 UTC
copr-cli-1.64-1.el6, python-copr-1.82-1.el6 has been pushed to the Fedora EPEL 6 stable repository. If problems still persist, please make note of it in this bug report.

Comment 20 Fedora Update System 2017-11-09 13:02:13 UTC
copr-cli-1.65-1.el7 python-copr-1.83-1.el7 has been submitted as an update to Fedora EPEL 7. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2017-2db7688f69

Comment 21 Fedora Update System 2017-11-11 16:55:50 UTC
copr-cli-1.65-1.el7, python-copr-1.83-1.el7 has been pushed to the Fedora EPEL 7 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2017-2db7688f69

Comment 22 Fedora End Of Life 2017-11-16 19:02:28 UTC
This message is a reminder that Fedora 25 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 25. 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 Fedora  'version'
of '25'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version'
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not
able to fix it before Fedora 25 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, you are encouraged  change the 'version' to a later Fedora
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's
lifetime, sometimes those efforts are overtaken by events. Often a
more recent Fedora release includes newer upstream software that fixes
bugs or makes them obsolete.

Comment 23 Fedora Update System 2017-12-02 21:47:07 UTC
copr-cli-1.65-1.el7 has been pushed to the Fedora EPEL 7 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2017-2db7688f69

Comment 24 Fedora Update System 2018-02-23 21:17:07 UTC
copr-cli-1.67-1.el7 has been submitted as an update to Fedora EPEL 7. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2018-e25b4fc6da

Comment 25 Fedora Update System 2018-02-24 19:48:21 UTC
copr-cli-1.67-1.el7 has been pushed to the Fedora EPEL 7 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2018-e25b4fc6da

Comment 26 Fedora Update System 2018-04-09 19:00:10 UTC
copr-cli-1.67-1.el7 has been pushed to the Fedora EPEL 7 stable repository. If problems still persist, please make note of it in this bug report.