bugJailkit - Bugs: bug #60452, jk_update: has_key unavailable in...

 
 

bug #60452: jk_update: has_key unavailable in python3

Submitter:  None
Submitted:  Sat 24 Apr 2021 02:45:55 PM UTC
   
 
Category:  None Severity:  3 - Normal
Item Group:  None Status:  Fixed
Privacy:  Public Assigned to:  None
Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

Wed 28 Apr 2021 07:52:11 AM UTC, comment #1: 

thanks for reporting. This was fixed in revision 1.17 already but I didn't release this fix. So I will release a new version soon.

Olivier Sessink <oli4>
Group administrator
Sat 24 Apr 2021 02:45:55 PM UTC, original submission:  

Hi,

jk_update uses has_key which is not available anymore in python3.

Error message:
AttributeError: 'dict' object has no attribute 'has_key'

has_key is used in 2 lines in jk_update:
    $ grep -n has_key /usr/sbin/jk_update
    263:            if (not config.has_key('hardlink') and cfg.has_option(configsection,'hardlink')):
    272:    if (not config.has_key('hardlink')):

Easy fix: s/config.has_key('hardlink')/'hardlink' in config/

Regards
Matthias Ferdinand

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by oli4 (Posted a comment)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2021-04-28 oli4 StatusNone Fixed
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code