Why can't the user browse the attachments using redhat-support-tool command line?
Issue
- Why can't the user upload attachments using the
redhat-support-tool? - Why can't the user browse the attachments using redhat-support-tool command line?
Command (? for help): listcases
Type the number of the case to view or 'e' to return to the previous menu.
1 [Waiting on Red Hat] Example case needs a sosreport attached
No more cases to display
Select a Case: 1
Type the number of the section to view or 'e' to return to the previous menu.
1 Case Details
2 Modify Case
3 Description
4 Case Discussion
5 Recommendations
6 Get Attachment
7 Add Attachment
8 Add Comment
End of options.
Option: 7
Please provide the full path to the file (or 'q' to exit): /tmp/sosreport-user.test-20140819084604-0a19.tar.xz
Please provide a description or enter to accept default (or 'q' to exit): requested sosreport
Unable to get attachment
Option: q
Select a Case: q
Command (? for help): q
- The following traceback appears in
~/.redhat-support-tool/logs/red_hat_support_tool.log
2014-08-26 12:56:50,603 - redhat-support-tool.rhhelp - Level 31 - Adding import ListKernelDebugs to plugin dictionary
2014-08-26 12:58:04,864 - redhat_support_tool.plugins.add_attachment - WARNING - Unable to get attachment
2014-08-26 12:58:04,864 - redhat_support_tool.helpers.launchhelper - ERROR - unknown URL type: /rs/cases/xxxxxxxxxx/attachments?public=True
Traceback (most recent call last):
File "/usr/lib/python2.6/site-packages/redhat_support_tool/helpers/launchhelper.py", line 106, in run
return cls.non_interactive_action()
File "/usr/lib/python2.6/site-packages/redhat_support_tool/plugins/add_attachment.py", line 263, in non_interactive_action
description=self._options['description'])
File "/usr/lib/python2.6/site-packages/redhat_support_lib/infrastructure/brokers.py", line 638, in add
description)[0]
File "/usr/lib/python2.6/site-packages/redhat_support_lib/infrastructure/proxy.py", line 83, in upload
response = conn.doUpload(url, fileName, description)
File "/usr/lib/python2.6/site-packages/redhat_support_lib/web/connection.py", line 121, in doUpload
self._doUpload(url, fileName, description)
File "/usr/lib/python2.6/site-packages/redhat_support_lib/web/connection.py", line 178, in _doUpload
skip_accept_encoding=1)
File "/usr/lib64/python2.6/site-packages/M2Crypto/httpslib.py", line 150, in putrequest
raise ValueError, "unknown URL type: %s" % url
ValueError: unknown URL type: /rs/cases/xxxxxxxxxx/attachments?public=True
Environment
- Red Hat Enterprise Linux (RHEL) 6.5
- Red Hat Enterprise Linux (RHEL) 6.6
- redhat-support-tool
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
