retspen / webvirtcloud

WebVirtCloud is virtualization web interface for admins and users
1.63k stars 362 forks source link

Base64 issue in docker image with latest Dockerfile #525

Closed 5he1n closed 1 year ago

5he1n commented 1 year ago

Due to usage of phusion/baseimage:jammy-1.0.0 for Dockerfile (de-facto Ubuntu 22.04) - default python version is 3.10 which causes problems for SSH key addition in profile page:

AttributeError at /accounts/ssh_key/create/

module 'base64' has no attribute 'decodestring'

In base64 module decodestring & encodestring functions are available for python < 3.9.

catborise commented 1 year ago

i convert decodestring to decodebytes because of depreciation. it should be worked. i tested. it is working.