Bug 252921 - www/seahub: AttributeError: 'SeafileAPI' object has no attribute 'get_group_quota_usage'
Summary: www/seahub: AttributeError: 'SeafileAPI' object has no attribute 'get_group_q...
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Richard Gallamore
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-01-22 20:38 UTC by Ole
Modified: 2021-01-23 06:56 UTC (History)
0 users

See Also:
bugzilla: maintainer-feedback? (ultima)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ole 2021-01-22 20:38:12 UTC
Hello,

after upgrading to the latest version seahub throws errors, if something related to groups is accessed. Like "shared with my groups" 
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 = get_response(request)
  File "/usr/local/lib/python3.7/site-packages/django/core/handlers/base.py", line 249, in _legacy_get_response
    response = self._get_response(request)
  File "/usr/local/lib/python3.7/site-packages/django/core/handlers/base.py", line 187, in _get_response
    response = 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 = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "/usr/local/lib/python3.7/site-packages/django/views/decorators/csrf.py", line 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", line 505, in dispatch
    response = self.handle_exception(exc)
  File "/usr/local/lib/python3.7/site-packages/rest_framework/views.py", line 465, in handle_exception
    self.raise_uncaught_exception(exc)
  File "/usr/local/lib/python3.7/site-packages/rest_framework/views.py", line 476, in raise_uncaught_exception
    raise exc
  File "/usr/local/lib/python3.7/site-packages/rest_framework/views.py", line 502, in dispatch
    response = handler(request, *args, **kwargs)
  File "/usr/local/www/haiwen/seafile-server/seahub/seahub/api2/endpoints/groups.py", line 131, in get
    group_info = get_group_info(request, g.id, avatar_size)
  File "/usr/local/www/haiwen/seafile-server/seahub/seahub/api2/endpoints/groups.py", line 78, in get_group_info
    group_info['group_quota_usage'] = 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
Comment 1 Richard Gallamore freebsd_committer freebsd_triage 2021-01-23 06:56:57 UTC
This is a duplicate of bug #252715,