Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 832491

Summary: No text description of error 530
Product: Red Hat Enterprise Linux 7 Reporter: Branislav Náter <bnater>
Component: python-urlgrabberAssignee: James Antill <james.antill>
Status: CLOSED CURRENTRELEASE QA Contact: Branislav Náter <bnater>
Severity: low Docs Contact:
Priority: medium    
Version: 7.0CC: jzeleny
Target Milestone: rcKeywords: Regression
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: python-urlgrabber-3.9.1-28.el7 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-06-13 12:54:44 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:
Bug Depends On: 896025    
Bug Blocks:    

Description Branislav Náter 2012-06-15 14:24:54 UTC
Description of problem:
python-urlgrabber does not report text description of error. In this case, no error description is shown when trying to access file on ftp using invalid credentials. This is regression against RHEL5 & 6

Version-Release number of selected component (if applicable):
python-urlgrabber-3.9.1-11.el7

How reproducible:
always

Steps to Reproduce:
- easiest way si to run test from QA Whiteboard
/CoreOS/python-urlgrabber/Sanity/authentication
  
Actual results:
[Errno 14] FTP Error 530 : ftp://user:pass@localhost/file.txt

Expected results:
RHEL5:
  [Errno 4] IOError: [Errno ftp error] 530 Login incorrect.
RHEL6:
  [Errno 14] PYCURL ERROR 67 - "Access denied: 530"

Additional info:
We'd like to see message "Login incorrect" or "Access denied" as in RHEL5 or 6.

Comment 3 Zdeněk Pavlas 2013-01-16 13:11:05 UTC
Curl does not provide text descriptions, maybe it's a regression.  We translate HTTP errors via httplib.responses, but there's no similar table for FTP errors available.

When FTP login fails with response code 530, curl raises error 67 "Authentication failure".  I could add this to the error message.. Is "FTP Error 530 - Authentication failure" acceptable?

Comment 4 Branislav Náter 2013-01-16 13:32:21 UTC
Yes this is acceptable. We'd like to see any reasonable text descripton of error. Thanks

Comment 5 Branislav Náter 2013-11-06 19:55:15 UTC
Issue has been fixed in python-urlgrabber-3.10-1.el7. Reasonable message is printed instead of just error code 530. 

Test output:
<snip>
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:: [   LOG    ] :: ftp with invalid credentials
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

Traceback (most recent call last):
<snip>
urlgrabber.grabber.URLGrabError: [Errno 14] FTP Error 530 - Access denied: 530
:: [   PASS   ] :: Running './grab.py 'ftp://user:pass@localhost/file.txt' invalid.txt' (Expected 1, got 1)
urlgrabber.grabber.URLGrabError: [Errno 14] FTP Error 530 - Access denied: 530
:: [   PASS   ] :: File 'output' should contain 'Login incorrect|Access denied'

Comment 6 Ludek Smid 2014-06-13 12:54:44 UTC
This request was resolved in Red Hat Enterprise Linux 7.0.

Contact your manager or support representative in case you have further questions about the request.