Custom Query (2447 matches)


Show under each result:

Results (226 - 228 of 2447)

Ticket Resolution Summary Owner Reporter
#3260 Fixed web ui reverse proxy crash ajslater

if you access deluge web UI with a reverse proxy header it crashes

web.Server Traceback (most recent call last):
builtins.TypeError: must be str, not bytes
/usr/lib/python3/dist-packages/twisted/web/ in process
189        try:
190            resrc =
191            if resource._IEncodingResource.providedBy(resrc):
/usr/lib/python3/dist-packages/twisted/web/ in getResourceFor
825        request.sitepath = copy.copy(request.prepath)
826        return resource.getChildForRequest(self.resource, request)
/usr/lib/python3/dist-packages/twisted/web/ in getChildForRequest
97        request.prepath.append(pathElement)
98        resource = resource.getChildWithDefault(pathElement, request)
99    return resource
/usr/lib/python3/dist-packages/deluge/ui/web/ in getChildWithDefault
579        if base[0] != '/':
580            base = '/' + base
builtins.TypeError: must be str, not bytes

the base variable type is bytes from the header and not a string which blows up.

When you retrieve the header contents here:

its returning bytes and not str. Bytes are what's what's specified in the twisted docs:

so it might be fixable with casting those bytes to a string or concatenating them another way.

This bug is new as of 2.x.x which makes sense since it looks like webui was refactored some.

#3261 Fixed web ui 'idna' codec failed Ilya Fedin

After setting base path, I getting this error:

01:37:40 [CRITICAL][twisted                    :154 ] Unhandled Error
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/twisted/protocols/", line 571, in dataReceived
    why = self.lineReceived(line)
  File "/usr/lib/python3/dist-packages/twisted/web/", line 2013, in lineReceived
  File "/usr/lib/python3/dist-packages/twisted/web/", line 2104, in allContentReceived
    req.requestReceived(command, path, version)
  File "/usr/lib/python3/dist-packages/twisted/web/", line 866, in requestReceived
--- <exception caught here> ---
  File "/usr/lib/python3/dist-packages/twisted/web/", line 190, in process
    resrc =
  File "/usr/lib/python3/dist-packages/twisted/web/", line 826, in getResourceFor
    return resource.getChildForRequest(self.resource, request)
  File "/usr/lib/python3/dist-packages/twisted/web/", line 98, in getChildForRequest
    resource = resource.getChildWithDefault(pathElement, request)
  File "/usr/lib/python3/dist-packages/deluge/ui/web/", line 585, in getChildWithDefault
    request.base = base.encode('idna')
builtins.UnicodeError: encoding with 'idna' codec failed (UnicodeError: label too long)
#3262 Fixed WebUI cannot change password rasistasian

i can't seem to change my webui password. The logs say

Error calling method `auth.change_password`: Unicode-objects must be encoded before hashing
Batch Modify
Note: See TracBatchModify for help on using batch modify.
Note: See TracQuery for help on using queries.