From owner-svn-ports-all@freebsd.org Sat Mar 16 17:59:44 2019 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 74A4215375E9; Sat, 16 Mar 2019 17:59:44 +0000 (UTC) (envelope-from ultima@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 183336DDBF; Sat, 16 Mar 2019 17:59:44 +0000 (UTC) (envelope-from ultima@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 0DAD02581D; Sat, 16 Mar 2019 17:59:44 +0000 (UTC) (envelope-from ultima@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id x2GHxhRQ043333; Sat, 16 Mar 2019 17:59:43 GMT (envelope-from ultima@FreeBSD.org) Received: (from ultima@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id x2GHxg7R043241; Sat, 16 Mar 2019 17:59:42 GMT (envelope-from ultima@FreeBSD.org) Message-Id: <201903161759.x2GHxg7R043241@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: ultima set sender to ultima@FreeBSD.org using -f From: Richard Gallamore Date: Sat, 16 Mar 2019 17:59:42 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r495933 - in head: net-mgmt/seafile-server www/py-seafdav www/py-seafobj www/seahub www/seahub/files X-SVN-Group: ports-head X-SVN-Commit-Author: ultima X-SVN-Commit-Paths: in head: net-mgmt/seafile-server www/py-seafdav www/py-seafobj www/seahub www/seahub/files X-SVN-Commit-Revision: 495933 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 183336DDBF X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [-2.97 / 15.00]; local_wl_from(0.00)[FreeBSD.org]; NEURAL_HAM_MEDIUM(-1.00)[-0.998,0]; NEURAL_HAM_SHORT(-0.98)[-0.976,0]; ASN(0.00)[asn:11403, ipnet:2610:1c1:1::/48, country:US]; NEURAL_HAM_LONG(-1.00)[-1.000,0] X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 16 Mar 2019 17:59:44 -0000 Author: ultima Date: Sat Mar 16 17:59:42 2019 New Revision: 495933 URL: https://svnweb.freebsd.org/changeset/ports/495933 Log: * Updated to 6.3.13 * Added patch to SeaHub to revert regression The regression breaks the search_user function. More details about regression can be found at: https://github.com/haiwen/seahub/issues/3001 PR: 236047 Reported by: Martin Waschbüsch Added: head/www/seahub/files/patch-seahub_api2_endpoints_search__user.py (contents, props changed) Modified: head/net-mgmt/seafile-server/Makefile.include head/www/py-seafdav/distinfo head/www/py-seafobj/distinfo head/www/seahub/Makefile head/www/seahub/distinfo head/www/seahub/pkg-plist Modified: head/net-mgmt/seafile-server/Makefile.include ============================================================================== --- head/net-mgmt/seafile-server/Makefile.include Sat Mar 16 17:58:58 2019 (r495932) +++ head/net-mgmt/seafile-server/Makefile.include Sat Mar 16 17:59:42 2019 (r495933) @@ -1,7 +1,7 @@ # $FreeBSD$ SEAFILE_VER=6.3.4 -SEAHUB_VER=6.3.11 +SEAHUB_VER=6.3.13 # Various vars used in most/all the Makefiles Modified: head/www/py-seafdav/distinfo ============================================================================== --- head/www/py-seafdav/distinfo Sat Mar 16 17:58:58 2019 (r495932) +++ head/www/py-seafdav/distinfo Sat Mar 16 17:59:42 2019 (r495933) @@ -1,3 +1,3 @@ -TIMESTAMP = 1548441643 -SHA256 (haiwen-seafdav-v6.3.11-pro_GH0.tar.gz) = 8989d276354a8f6db90f7a2cb53a18b0851f28695f15e92706915e4365168d83 -SIZE (haiwen-seafdav-v6.3.11-pro_GH0.tar.gz) = 2556386 +TIMESTAMP = 1552690862 +SHA256 (haiwen-seafdav-v6.3.13-pro_GH0.tar.gz) = a46767919e68e84d75591eba413629ade9240eadb24000a4e3f81461853d9c42 +SIZE (haiwen-seafdav-v6.3.13-pro_GH0.tar.gz) = 2556426 Modified: head/www/py-seafobj/distinfo ============================================================================== --- head/www/py-seafobj/distinfo Sat Mar 16 17:58:58 2019 (r495932) +++ head/www/py-seafobj/distinfo Sat Mar 16 17:59:42 2019 (r495933) @@ -1,3 +1,3 @@ -TIMESTAMP = 1548441645 -SHA256 (haiwen-seafobj-v6.3.11-pro_GH0.tar.gz) = 3c384fd1bbef3a2ae3177d364a08bb442222648ba17852ae5341fef72e0dc418 -SIZE (haiwen-seafobj-v6.3.11-pro_GH0.tar.gz) = 10058043 +TIMESTAMP = 1552690865 +SHA256 (haiwen-seafobj-v6.3.13-pro_GH0.tar.gz) = 58090cdf6bec663ff7b56b1d31ba2f934af00487fb17ea0d7ffb3b6858dde2f9 +SIZE (haiwen-seafobj-v6.3.13-pro_GH0.tar.gz) = 10058140 Modified: head/www/seahub/Makefile ============================================================================== --- head/www/seahub/Makefile Sat Mar 16 17:58:58 2019 (r495932) +++ head/www/seahub/Makefile Sat Mar 16 17:59:42 2019 (r495933) @@ -67,8 +67,7 @@ USE_RC_SUBR= ${PORTNAME} SUB_FILES= pkg-message -do-patch: - echo "${WRKSRC}..." +post-patch: ${REINPLACE_CMD} -Ee "s|SEAFILE_VERSION = '[0-9]+\.[0-9]+\.[0-9]+'|SEAFILE_VERSION = '${SEAFILE_VER}'|" \ ${WRKSRC}/seahub/settings.py ${REINPLACE_CMD} -e 's|##FIX_WWWDIR##|${PREFIX}/${HAIWENDIR}|' ${WRKSRC}/*.template Modified: head/www/seahub/distinfo ============================================================================== --- head/www/seahub/distinfo Sat Mar 16 17:58:58 2019 (r495932) +++ head/www/seahub/distinfo Sat Mar 16 17:59:42 2019 (r495933) @@ -1,3 +1,3 @@ -TIMESTAMP = 1548441650 -SHA256 (haiwen-seahub-v6.3.11-pro_GH0.tar.gz) = 05e6a33302fdd09ce805fe32e30ace6f213b2052c16cc041a27bb4f8d2704541 -SIZE (haiwen-seahub-v6.3.11-pro_GH0.tar.gz) = 26061149 +TIMESTAMP = 1552690870 +SHA256 (haiwen-seahub-v6.3.13-pro_GH0.tar.gz) = 189e8a1b73db2ec164ff505e4bb52efe0401f8a01bae415667bedea4ade84e25 +SIZE (haiwen-seahub-v6.3.13-pro_GH0.tar.gz) = 26059355 Added: head/www/seahub/files/patch-seahub_api2_endpoints_search__user.py ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/www/seahub/files/patch-seahub_api2_endpoints_search__user.py Sat Mar 16 17:59:42 2019 (r495933) @@ -0,0 +1,76 @@ +--- seahub/api2/endpoints/search_user.py.orig 2019-03-13 07:50:12 UTC ++++ seahub/api2/endpoints/search_user.py +@@ -1,7 +1,6 @@ + # Copyright (c) 2012-2016 Seafile Ltd. + import os + import sys +-import json + import logging + + from django.db.models import Q +@@ -125,12 +124,13 @@ class SearchUser(APIView): + email_result = [] + + # remove nonexistent or inactive user +- email_list_json = json.dumps(email_list) +- user_obj_list = ccnet_api.get_emailusers_in_list('DB', email_list_json) + \ +- ccnet_api.get_emailusers_in_list('LDAP', email_list_json) +- for user_obj in user_obj_list: +- if user_obj.is_active: +- email_result.append(user_obj.email) ++ for email in email_list: ++ try: ++ user = User.objects.get(email=email) ++ if user.is_active: ++ email_result.append(email) ++ except User.DoesNotExist: ++ continue + + if django_settings.ENABLE_ADDRESSBOOK_OPT_IN: + # get users who has setted to show in address book +@@ -178,9 +178,6 @@ def format_searched_user_result(request, users, size): + return results + + def search_user_from_ccnet(q): +- """ Return 10 items at most. +- """ +- + users = [] + + db_users = ccnet_api.search_emailusers('DB', q, 0, 10) +@@ -204,12 +201,10 @@ def search_user_from_ccnet(q): + return email_list + + def search_user_from_profile(q): +- """ Return 10 items at most. +- """ + # 'nickname__icontains' for search by nickname + # 'contact_email__icontains' for search by contact email + users = Profile.objects.filter(Q(nickname__icontains=q) | \ +- Q(contact_email__icontains=q)).values('user')[:10] ++ Q(contact_email__icontains=q)).values('user') + + email_list = [] + for user in users: +@@ -218,11 +213,9 @@ def search_user_from_profile(q): + return email_list + + def search_user_from_profile_with_limits(q, limited_emails): +- """ Return 10 items at most. +- """ + # search within limited_emails + users = Profile.objects.filter(Q(user__in=limited_emails) & +- (Q(nickname__icontains=q) | Q(contact_email__icontains=q))).values('user')[:10] ++ (Q(nickname__icontains=q) | Q(contact_email__icontains=q))).values('user') + + email_list = [] + for user in users: +@@ -231,8 +224,6 @@ def search_user_from_profile_with_limits(q, limited_em + return email_list + + def search_user_when_global_address_book_disabled(request, q): +- """ Return 10 items at most. +- """ + + email_list = [] + username = request.user.username Modified: head/www/seahub/pkg-plist ============================================================================== --- head/www/seahub/pkg-plist Sat Mar 16 17:58:58 2019 (r495932) +++ head/www/seahub/pkg-plist Sat Mar 16 17:59:42 2019 (r495933) @@ -445,7 +445,7 @@ %%SEAHUBDIR%%/media/assets/scripts/app/views/file-comment.js %%SEAHUBDIR%%/media/assets/scripts/app/views/file-comments.7f3423873020.js %%SEAHUBDIR%%/media/assets/scripts/app/views/file-comments.js -%%SEAHUBDIR%%/media/assets/scripts/app/views/fileupload.cc2741e44499.js +%%SEAHUBDIR%%/media/assets/scripts/app/views/fileupload.88a6a8139191.js %%SEAHUBDIR%%/media/assets/scripts/app/views/fileupload.js %%SEAHUBDIR%%/media/assets/scripts/app/views/folder-perm.be46700663d0.js %%SEAHUBDIR%%/media/assets/scripts/app/views/folder-perm.js @@ -601,11 +601,11 @@ %%SEAHUBDIR%%/media/assets/scripts/dist/i18n/zh-tw/djangojs.js %%SEAHUBDIR%%/media/assets/scripts/dist/lib/require.ac5ad85d01a3.js %%SEAHUBDIR%%/media/assets/scripts/dist/lib/require.js -%%SEAHUBDIR%%/media/assets/scripts/dist/main.5897fed17daa.js +%%SEAHUBDIR%%/media/assets/scripts/dist/main.ab85388732be.js %%SEAHUBDIR%%/media/assets/scripts/dist/main.js %%SEAHUBDIR%%/media/assets/scripts/dist/orgadmin-main.706c264cbe87.js %%SEAHUBDIR%%/media/assets/scripts/dist/orgadmin-main.js -%%SEAHUBDIR%%/media/assets/scripts/dist/sysadmin-main.f2eb21ad4153.js +%%SEAHUBDIR%%/media/assets/scripts/dist/sysadmin-main.0595783a6bcf.js %%SEAHUBDIR%%/media/assets/scripts/dist/sysadmin-main.js %%SEAHUBDIR%%/media/assets/scripts/file-tree.ef19875b8f54.js %%SEAHUBDIR%%/media/assets/scripts/file-tree.js