From owner-svn-ports-all@freebsd.org Sat Dec 14 15:00:28 2019 Return-Path: Delivered-To: svn-ports-all@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id D8E311D0118; Sat, 14 Dec 2019 15:00:28 +0000 (UTC) (envelope-from kai@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 47ZrLh57j7z4SG4; Sat, 14 Dec 2019 15:00:28 +0000 (UTC) (envelope-from kai@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 AB97E264FD; Sat, 14 Dec 2019 15:00:28 +0000 (UTC) (envelope-from kai@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id xBEF0SUV058330; Sat, 14 Dec 2019 15:00:28 GMT (envelope-from kai@FreeBSD.org) Received: (from kai@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id xBEF0SoY058327; Sat, 14 Dec 2019 15:00:28 GMT (envelope-from kai@FreeBSD.org) Message-Id: <201912141500.xBEF0SoY058327@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: kai set sender to kai@FreeBSD.org using -f From: Kai Knoblich Date: Sat, 14 Dec 2019 15:00:28 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-branches@freebsd.org Subject: svn commit: r520123 - in branches/2019Q4/net-mgmt/netbox: . files X-SVN-Group: ports-branches X-SVN-Commit-Author: kai X-SVN-Commit-Paths: in branches/2019Q4/net-mgmt/netbox: . files X-SVN-Commit-Revision: 520123 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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, 14 Dec 2019 15:00:28 -0000 Author: kai Date: Sat Dec 14 15:00:27 2019 New Revision: 520123 URL: https://svnweb.freebsd.org/changeset/ports/520123 Log: MFH: r519834 net-mgmt/netbox: Update to 2.6.8 * Backport a patch from upstream that fixes an exception on password change page for local users. Changelog: Enhancements: * Disable password change form for LDAP-authenticated users * Display cable colors on device view * Remove obsolete P3P policy header * Add query filters for created and last_updated fields * Allow the underscore character in IPAddress DNS names Bug Fixes: * Fix validation error when editing power cables in bulk * Fix exception when connecting a cable to a RearPort with no corresponding FrontPort * Include weight field in prefix/VLAN role form * Include comments on PowerFeed view * Fix link for assigned ipaddress in interface page * Prevent exception when importing an invalid cable definition * Correctly indicate power feed terminations on cable list * Fix API filtering of interfaces by more than one device name * Enforce client validation for minimum service port number https://github.com/netbox-community/netbox/releases/tag/v2.6.8 Approved by: ports-secteam (joneum) Added: branches/2019Q4/net-mgmt/netbox/files/patch-netbox_users_views.py - copied unchanged from r519834, head/net-mgmt/netbox/files/patch-netbox_users_views.py Modified: branches/2019Q4/net-mgmt/netbox/Makefile branches/2019Q4/net-mgmt/netbox/distinfo Directory Properties: branches/2019Q4/ (props changed) Modified: branches/2019Q4/net-mgmt/netbox/Makefile ============================================================================== --- branches/2019Q4/net-mgmt/netbox/Makefile Sat Dec 14 14:56:39 2019 (r520122) +++ branches/2019Q4/net-mgmt/netbox/Makefile Sat Dec 14 15:00:27 2019 (r520123) @@ -2,7 +2,7 @@ PORTNAME= netbox DISTVERSIONPREFIX= v -DISTVERSION= 2.6.7 +DISTVERSION= 2.6.8 CATEGORIES= net-mgmt MAINTAINER= kai@FreeBSD.org Modified: branches/2019Q4/net-mgmt/netbox/distinfo ============================================================================== --- branches/2019Q4/net-mgmt/netbox/distinfo Sat Dec 14 14:56:39 2019 (r520122) +++ branches/2019Q4/net-mgmt/netbox/distinfo Sat Dec 14 15:00:27 2019 (r520123) @@ -1,3 +1,3 @@ -TIMESTAMP = 1572671276 -SHA256 (netbox-community-netbox-v2.6.7_GH0.tar.gz) = 530d5f49df79ca9f0deab469d9a48349a6386751895188036f99aea16639fcda -SIZE (netbox-community-netbox-v2.6.7_GH0.tar.gz) = 2416096 +TIMESTAMP = 1575996489 +SHA256 (netbox-community-netbox-v2.6.8_GH0.tar.gz) = fb146bdb0369e59034f24b1523ec5025575b3fb9ad473896fd43fc9faffdc9b0 +SIZE (netbox-community-netbox-v2.6.8_GH0.tar.gz) = 2416523 Copied: branches/2019Q4/net-mgmt/netbox/files/patch-netbox_users_views.py (from r519834, head/net-mgmt/netbox/files/patch-netbox_users_views.py) ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ branches/2019Q4/net-mgmt/netbox/files/patch-netbox_users_views.py Sat Dec 14 15:00:27 2019 (r520123, copy of r519834, head/net-mgmt/netbox/files/patch-netbox_users_views.py) @@ -0,0 +1,16 @@ +Fix exception on password change page for local users + +Obtained from: +https://github.com/netbox-community/netbox/commit/3b03d68ac70be1b5b9912d0a4d2a5fecd25cede4 + +--- netbox/users/views.py.orig 2019-12-10 15:47:48 UTC ++++ netbox/users/views.py +@@ -96,7 +96,7 @@ class ChangePasswordView(LoginRequiredMixin, View): + + def get(self, request): + # LDAP users cannot change their password here +- if getattr(request.user, 'ldap_username'): ++ if getattr(request.user, 'ldap_username', None): + messages.warning(request, "LDAP-authenticated user credentials cannot be changed within NetBox.") + return redirect('user:profile') +