Bug 738963 - rhncfg-manager fails to "add" configuration file with permissions 000 to configuration channel.
Summary: rhncfg-manager fails to "add" configuration file with permissions 000 to conf...
Keywords:
Status: CLOSED DUPLICATE of bug 713098
Alias: None
Product: Red Hat Satellite 5
Classification: Red Hat
Component: Client
Version: 541
Hardware: Unspecified
OS: Unspecified
low
medium
Target Milestone: ---
Assignee: Michael Mráka
QA Contact: Red Hat Satellite QA List
URL:
Whiteboard:
Depends On:
Blocks: sat541-triage
TreeView+ depends on / blocked
 
Reported: 2011-09-16 07:26 UTC by Dimitar Yordanov
Modified: 2012-03-22 08:53 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-03-15 15:19:54 UTC


Attachments (Terms of Use)

Description Dimitar Yordanov 2011-09-16 07:26:38 UTC
Description of problem:
rhncfg-manager fails to "add" configuration file with permissions 000 to configuration channel.

Version-Release number of selected component (if applicable):
rhncfg-5.9.27-18

How reproducible:
100%

Steps to Reproduce:
1.Register system to Satellite and add  RHN-Tools channel
2.yum insall rhncfg*
3.rhncfg-manager create-channel  test_rhncfg_000_channel
4.echo 'File-Test_000' > /tmp/file_test_000
5.chmod 000 /tmp/file_test_000
6.ls -l /tmp/file_test_000
----------. 1 root root 14 Sep 15 12:15 /tmp/file_test_000
# rhncfg-manager add  -c test_rhncfg_000_channel --dest-file=/etc/file_test_000  /tmp/file_test_000

  
Actual results:
Pushing to channel test_rhncfg_000_channel:
Traceback (most recent call last):
  File "/usr/bin/rhncfg-manager", line 46, in <module>
    sys.exit(Main().main() or 0)
  File "/usr/share/rhn/config_common/rhn_main.py", line 187, in main
    handler.run()
  File "/usr/share/rhn/config_management/rhncfg_add.py", line 111, in run
    delim_end=delim_end)
  File "/usr/share/rhn/config_management/rpc_repository.py", line 145, in put_file
    delim_start=delim_start, delim_end=delim_end)
  File "/usr/share/rhn/config_common/repository.py", line 199, in _make_file_info
    params.update(self.make_stat_info(local_path, file_stat))
  File "/usr/share/rhn/config_common/repository.py", line 104, in make_stat_info
    ret['mode'] = deci_to_octal(ret['mode'] & 07777)
  File "/usr/share/rhn/config_common/repository.py", line 51, in deci_to_octal
    return int(oct_str)
ValueError: invalid literal for int() with base 10: ''

Expected results:
Success.

Additional info:

Comment 1 Jan Pazdziora 2012-03-15 15:19:54 UTC

*** This bug has been marked as a duplicate of bug 713098 ***


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