Skip to Content.
Sympa Menu

grouper-dev - [grouper-dev] possible HSSQL related bug in attrDef.getAttributeDelegate().hasAttributeOrAncestorHasAttribute( AttrName, false);

Subject: Grouper Developers Forum

List archive

[grouper-dev] possible HSSQL related bug in attrDef.getAttributeDelegate().hasAttributeOrAncestorHasAttribute( AttrName, false);


Chronological Thread 
  • From: "Black, Carey M." <>
  • To: "" <>
  • Subject: [grouper-dev] possible HSSQL related bug in attrDef.getAttributeDelegate().hasAttributeOrAncestorHasAttribute( AttrName, false);
  • Date: Thu, 24 Jan 2019 04:45:37 +0000
  • Accept-language: en-US
  • Authentication-results: spf=pass (sender IP is 128.146.163.17) smtp.mailfrom=osu.edu; internet2.edu; dkim=pass (signature was verified) header.d=osu.edu;internet2.edu; dmarc=pass action=none header.from=osu.edu;
  • Authentication-results-original: spf=none (sender IP is ) ;
  • Ironport-phdr: 9a23:hzhayxDLI4B7Hc4WbCrBUyQJP3N1i/DPJgcQr6AfoPdwSPX6oMbcNUDSrc9gkEXOFd2Cra4c26yO6+jJYi8p2d65qncMcZhBBVcuqP49uEgeOvODElDxN/XwbiY3T4xoXV5h+GynYwAOQJ6tL1LdrWev4jEMBx7xKRR6JvjvGo7Vks+7y/2+94fcbglUhzexe69+IAmrpgjNq8cahpdvJLwswRXTuHtIfOpWxWJsJV2Nmhv3+9m98p1+/SlOovwt78FPX7n0cKQ+VrxYES8pM3sp683xtBnMVhWA630BWWgLiBVIAgzF7BbnXpfttybxq+Rw1DWGMcDwULs5Xymp4aV2Rx/ykCoJNyA3/nzLisJ+j6xboQ6uqRNwzIPPfIGVLeZycr/Bcd8GW2ZMWNtaWSxbAoO7aosCF+QNMPtcr4bnu1QOrgOyDhSyCez10D9HmH/31rA93eg7Hw3NwQstEMkKsHvOsNr1N70eXf2rwKTG1jjDaOhW2Srn5IfWbx8hvOiBULRtesTS0UkiDx3JgU+MpYD4Oj6Zy/kBv3We4upuWu+jl3IrpgR/ojexycojkIzEi4cXx1zY+yh12Jg5KNKiREJlfdKpE4Fcuz+EO4Z4WM8uXmNltSUixr0Ip5G2fzQGxZEiyhHCaPGKcpKH7xf+WOmNOjh0mXdodbO8ihuy/0itz+P8W8e03VtEqCdOj8PCuWoX1xPJ78iKUvt98Vml2TaIzw3d8v1JL0comafVMpIs37w/moQKvUTEBSD5hl/6jKiLdkU44eeo7PnnYrP7qZOGL490kAb+MrgwlcOjHeQ4Mw8OX26B9eS7yb3j4Un5QLJNjv01iKXWrJfaJcEDqq64BQ9azJoj5g6hAzi8zNgUgHwKIE9YdB6aioXpNV7DLOzkAfq6jVSjjjhmyOrDM7DkAJjBMnbOnK/kfbln6k5czAQzzcpY55JRErwOO/bzVVXtu9zbFBM1LhK4zuj8BdV6zYMeRHiDDbGEP6PPqVOI/P4gI/GQZI8JvzbwM/cl5+TpjX8kgV8SY7Op0YIKZ3+mAPRrOEGZYXv3gtcdCmcGoBAyTO3siF2eTzFTfXCyULwg5j0lEo6pE5rMRp3+yICGiW20BJpLfm1cT1yBD1/pcZmJQfEBdHjUL8N82HRQWqKmVpcsz1SiuRHSyrx7I/DS9zFC85/vyY4myffUkER43zh9BMfZm0qEVWxl1kZODXdi1qR2qk87kw3Y+a9jnrpVGcEFtKABaRszKZOJl78yMNv1QA+UJo3TGl+7XtWrBy0wRdstwtgIJlxwAMimkguajnP4GKcbwqSCH4d8srnR2XT8PY5c8z7Hz+F41QlgG5cRczT43egmqEm2ZcbSllmB0aOjdKASxinIoWCY0CyDsFwLGA92TajfW30DPA3bocmqrk/BTrr7Eb08KUMB0s+NLKJWd8fkxUpPX7/9Nc7fbWO8lybVZ16Iy7qAYZCsdzAaxzibBUQZwAEV4XucMwUiXGGsr3+NRDBrHEjkNlvl6vI2oXinT0gymgeNaUAp17e89hMPw/KGTPZG2akZ/iottmZ5
  • Spamdiagnosticmetadata: NSPM
  • Spamdiagnosticoutput: 1:99

Grouper 2.3 ( latest patches)
Clean local VM spun up just for testing/dev work. ( using hssql )


I am trying to check an attribute definition to see if it has an
attributeName assigned to it (or an Ancestor of the attribute definition ).

rsess = GrouperSession.startRootSession();
MAll = AttributeDefNameFinder.findByName("etc:attribute:bla:bla", true);

attrDef = AttributeDefFinder.findByName("etc:attribute:bla:Foo-Def", true);

hasAttribute =
attrDef.getAttributeDelegate().hasAttributeOrAncestorHasAttribute(MAll.getName(),
false);

ERROR java.lang.RuntimeException:
Bad query
at
edu.internet2.middleware.grouper.attr.finder.AttributeAssignFinder.findAttributeAssigns
(AttributeAssignFinder.java:329)
at
edu.internet2.middleware.grouper.attr.assign.AttributeAssignBaseDelegate.getAttributeOrAncestorAttributeHelper
(AttributeAssignBaseDelegate.java:1161)
at
edu.internet2.middleware.grouper.attr.assign.AttributeAssignBaseDelegate.access$100
(AttributeAssignBaseDelegate.java:56)
at
edu.internet2.middleware.grouper.attr.assign.AttributeAssignBaseDelegate$3.callback
(AttributeAssignBaseDelegate.java:1214)
at
edu.internet2.middleware.grouper.GrouperSession.callbackGrouperSession
(GrouperSession.java:974)
at
edu.internet2.middleware.grouper.GrouperSession.internal_callbackRootGrouperSession
(GrouperSession.java:1022)
at
edu.internet2.middleware.grouper.attr.assign.AttributeAssignBaseDelegate.hasAttributeOrAncestorHasAttribute
(AttributeAssignBaseDelegate.java:1211)
at
edu.internet2.middleware.grouper.attr.assign.AttributeAssignBaseDelegate$hasAttributeOrAncestorHasAttribute.call
(Unknown Source)


NOTE: When I do the above gsh commands on a Grouper 2.3 using MYSQL, it works.


( back on HSSQL)
If I approach it as a direct assignment then I find the attributeName and
it's value.

attrDef.getAttributeValueDelegate().retrieveValuesString(MAll.getName());
==> [the value assigned]


Thought you might want to know.
If there are any ideas/"try this" then feel free to let me know.

--
Carey Matthew





  • [grouper-dev] possible HSSQL related bug in attrDef.getAttributeDelegate().hasAttributeOrAncestorHasAttribute( AttrName, false);, Black, Carey M., 01/24/2019

Archive powered by MHonArc 2.6.19.

Top of Page