Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 11 Dec 2019 19:30:22 +0000 (UTC)
From:      Kai Knoblich <kai@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r519834 - in head/net-mgmt/netbox: . files
Message-ID:  <201912111930.xBBJUMsW044413@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: kai
Date: Wed Dec 11 19:30:22 2019
New Revision: 519834
URL: https://svnweb.freebsd.org/changeset/ports/519834

Log:
  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
  
  MFH:		2019Q4

Added:
  head/net-mgmt/netbox/files/patch-netbox_users_views.py   (contents, props changed)
Modified:
  head/net-mgmt/netbox/Makefile
  head/net-mgmt/netbox/distinfo

Modified: head/net-mgmt/netbox/Makefile
==============================================================================
--- head/net-mgmt/netbox/Makefile	Wed Dec 11 19:28:50 2019	(r519833)
+++ head/net-mgmt/netbox/Makefile	Wed Dec 11 19:30:22 2019	(r519834)
@@ -2,7 +2,7 @@
 
 PORTNAME=	netbox
 DISTVERSIONPREFIX=	v
-DISTVERSION=	2.6.7
+DISTVERSION=	2.6.8
 CATEGORIES=	net-mgmt
 
 MAINTAINER=	kai@FreeBSD.org

Modified: head/net-mgmt/netbox/distinfo
==============================================================================
--- head/net-mgmt/netbox/distinfo	Wed Dec 11 19:28:50 2019	(r519833)
+++ head/net-mgmt/netbox/distinfo	Wed Dec 11 19:30:22 2019	(r519834)
@@ -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

Added: head/net-mgmt/netbox/files/patch-netbox_users_views.py
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/net-mgmt/netbox/files/patch-netbox_users_views.py	Wed Dec 11 19:30:22 2019	(r519834)
@@ -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')
+ 



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