Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 929355 Details for
Bug 1129660
[WebUI] Adding users to user group throws Internal server error.
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
git patch file (389-ds-base-1.2.11) -- backporting just the NULL idl checking in idl_common.c from the commit a71633d56951dd6c4d0368c790b85628f1598968
0001-Bug-1129660-Adding-users-to-user-group-throws-Intern.patch (text/plain), 1.92 KB, created by
Noriko Hosoi
on 2014-08-21 20:12:10 UTC
(
hide
)
Description:
git patch file (389-ds-base-1.2.11) -- backporting just the NULL idl checking in idl_common.c from the commit a71633d56951dd6c4d0368c790b85628f1598968
Filename:
MIME Type:
Creator:
Noriko Hosoi
Created:
2014-08-21 20:12:10 UTC
Size:
1.92 KB
patch
obsolete
>From 58296ee9a603b24efc66c18eb7f036c0360a0130 Mon Sep 17 00:00:00 2001 >From: Noriko Hosoi <nhosoi@redhat.com> >Date: Thu, 21 Aug 2014 13:01:30 -0700 >Subject: [PATCH] Bug 1129660 - Adding users to user group throws Internal > server error. > >Description: 389-ds-base-1.2.11 branch did not have the commit >a71633d56951dd6c4d0368c790b85628f1598968 (Ticket #47313 - Indexed >search with filter containing '&' and "!" with attribute subtypes >gives wrong result). > >This patch backporting just the NULL idl checking in idl_common.c >from the commit to the 389-ds-base-1.2.11 branch. >--- > ldap/servers/slapd/back-ldbm/idl_common.c | 17 ++++++++++++++++- > 1 file changed, 16 insertions(+), 1 deletion(-) > >diff --git a/ldap/servers/slapd/back-ldbm/idl_common.c b/ldap/servers/slapd/back-ldbm/idl_common.c >index 216bfb0..efac186 100644 >--- a/ldap/servers/slapd/back-ldbm/idl_common.c >+++ b/ldap/servers/slapd/back-ldbm/idl_common.c >@@ -46,16 +46,25 @@ > > size_t idl_sizeof(IDList *idl) > { >+ if (NULL == idl) { >+ return 0; >+ } > return (2 + idl->b_nmax) * sizeof(ID); > } > > NIDS idl_length(IDList *idl) > { >+ if (NULL == idl) { >+ return 0; >+ } > return (idl->b_nmax == ALLIDSBLOCK) ? UINT_MAX : idl->b_nids; > } > > int idl_is_allids(IDList *idl) > { >+ if (NULL == idl) { >+ return 0; >+ } > return (idl->b_nmax == ALLIDSBLOCK); > } > >@@ -110,6 +119,9 @@ idl_free( IDList **idl ) > int > idl_append( IDList *idl, ID id) > { >+ if (NULL == idl) { >+ return 2; >+ } > if ( ALLIDS( idl ) || ( (idl->b_nids) && (idl->b_ids[idl->b_nids - 1] == id)) ) { > return( 1 ); /* already there */ > } >@@ -321,7 +333,7 @@ idl_notin( > backend *be, > IDList *a, > IDList *b, >- IDList **new_result >+ IDList **new_result > ) > { > NIDS ni, ai, bi; >@@ -435,6 +447,9 @@ idl_nextid( IDList *idl, ID id ) > { > NIDS i; > >+ if (NULL == idl) { >+ return NOID; >+ } > if ( ALLIDS( idl ) ) { > return( ++id < idl->b_nids ? id : NOID ); > } >-- >1.8.1.4 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Flags:
nkinder
: review+
Actions:
View
|
Diff
Attachments on
bug 1129660
:
926405
|
926406
|
926445
|
926446
|
928759
| 929355