Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 22 Jan 2021 20:38:12 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 252921] www/seahub: AttributeError: 'SeafileAPI' object has no attribute 'get_group_quota_usage'
Message-ID:  <bug-252921-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D252921

            Bug ID: 252921
           Summary: www/seahub: AttributeError: 'SeafileAPI' object has no
                    attribute 'get_group_quota_usage'
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: ultima@freebsd.org
          Reporter: ole@free.de
             Flags: maintainer-feedback?(ultima@freebsd.org)
          Assignee: ultima@freebsd.org

Hello,

after upgrading to the latest version seahub throws errors, if something
related to groups is accessed. Like "shared with my groups"=20
Log and some information are below.

regards
Ole



2021-01-22 20:28:24,442 [ERROR] django.request:135 handle_uncaught_exception
Internal Server Error: /api/v2.1/groups/
Traceback (most recent call last):
  File
"/usr/local/lib/python3.7/site-packages/django/core/handlers/exception.py",
line 41, in inner
    response =3D get_response(request)
  File "/usr/local/lib/python3.7/site-packages/django/core/handlers/base.py=
",
line 249, in _legacy_get_response
    response =3D self._get_response(request)
  File "/usr/local/lib/python3.7/site-packages/django/core/handlers/base.py=
",
line 187, in _get_response
    response =3D self.process_exception_by_middleware(e, request)
  File "/usr/local/lib/python3.7/site-packages/django/core/handlers/base.py=
",
line 185, in _get_response
    response =3D wrapped_callback(request, *callback_args, **callback_kwarg=
s)
  File
"/usr/local/lib/python3.7/site-packages/django/views/decorators/csrf.py", l=
ine
58, in wrapped_view
    return view_func(*args, **kwargs)
  File "/usr/local/lib/python3.7/site-packages/django/views/generic/base.py=
",
line 68, in view
    return self.dispatch(request, *args, **kwargs)
  File "/usr/local/lib/python3.7/site-packages/rest_framework/views.py", li=
ne
505, in dispatch
    response =3D self.handle_exception(exc)
  File "/usr/local/lib/python3.7/site-packages/rest_framework/views.py", li=
ne
465, in handle_exception
    self.raise_uncaught_exception(exc)
  File "/usr/local/lib/python3.7/site-packages/rest_framework/views.py", li=
ne
476, in raise_uncaught_exception
    raise exc
  File "/usr/local/lib/python3.7/site-packages/rest_framework/views.py", li=
ne
502, in dispatch
    response =3D handler(request, *args, **kwargs)
  File
"/usr/local/www/haiwen/seafile-server/seahub/seahub/api2/endpoints/groups.p=
y",
line 131, in get
    group_info =3D get_group_info(request, g.id, avatar_size)
  File
"/usr/local/www/haiwen/seafile-server/seahub/seahub/api2/endpoints/groups.p=
y",
line 78, in get_group_info
    group_info['group_quota_usage'] =3D
seafile_api.get_group_quota_usage(group_id)
AttributeError: 'SeafileAPI' object has no attribute 'get_group_quota_usage'


seahub-7.1.9
Name           : seahub
Version        : 7.1.9
Installed on   : Tue Jan 12 19:53:03 2021 CET
Origin         : www/seahub
Architecture   : FreeBSD:12:*
Prefix         : /usr/local
Categories     : www
Licenses       : APACHE20
Maintainer     : ultima@FreeBSD.org
WWW            : https://github.com/haiwen/seahub
Comment        : Web frontend for Seafile
Options        :
        NLS            : on
        SEAFDAV        : on
        SEAFOBJ        : on
Annotations    :
        repo_type      : binary
        repository     : FreeBSD
Flat size      : 70.3MiB
Description    :
Seahub is the web frontend for seafile-server.

WWW: https://github.com/haiwen/seahub




root@seafile:/usr/local/www/haiwen # pkg info seafile-server
seafile-server-7.1.5_1
Name           : seafile-server
Version        : 7.1.5_1
Installed on   : Tue Jan 12 19:52:48 2021 CET
Origin         : net-mgmt/seafile-server
Architecture   : FreeBSD:12:amd64
Prefix         : /usr/local
Categories     : net-mgmt
Licenses       : GPLv3
Maintainer     : ultima@FreeBSD.org
WWW            : https://github.com/haiwen/seafile-server
Comment        : Open Source Cloud Storage (Server)
Options        :
        FUSE           : on
        NLS            : on
Shared Libs required:
        libglib-2.0.so.0
        libarchive.so.13
        libgobject-2.0.so.0
        libfuse.so.2
        libmysqlclient.so.20
        libsqlite3.so.0
        libuuid.so.1
        libonig.so.5
        libsearpc.so.1
        libintl.so.8
        libccnet.so.0
        libiconv.so.2
        libevent-2.1.so.7
        libgio-2.0.so.0
        libevhtp.so.0
        libjansson.so.4
Annotations    :
        FreeBSD_version: 1201000
        repo_type      : binary
        repository     : FreeBSD
Flat size      : 2.25MiB
Description    :
Seafile is an open source cloud storage system with features on privacy
protection and teamwork. Collections of files are called libraries, and
each library can be synced separately. A library can also be encrypted
with a user chosen password. Seafile also allows users to create groups
and easily sharing files into groups.

This is the core component of Seafile server. It provides RPC to the web
front-end (Seahub) to access files, and provides HTTP APIs to the desktop
clients for syncing files.

WWW: https://github.com/haiwen/seafile-server




root@seafile:/usr/local/www/haiwen # uname -r
12.2-RELEASE-p1

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-252921-7788>