Skip to Content.
Sympa Menu

grouper-users - RE: [grouper-users] trying to work with new attribute framework

Subject: Grouper Users - Open Discussion List

List archive

RE: [grouper-users] trying to work with new attribute framework


Chronological Thread 
  • From: "Hyzer, Chris" <>
  • To: Jim Fox <>, grouper users list <>
  • Subject: RE: [grouper-users] trying to work with new attribute framework
  • Date: Wed, 10 May 2017 08:28:24 +0000
  • Accept-language: en-US
  • Authentication-results: washington.edu; dkim=none (message not signed) header.d=none;washington.edu; dmarc=none action=none header.from=isc.upenn.edu;
  • Ironport-phdr: 9a23:a/7qaREuLQuBpvy1a5hHHZ1GYnF86YWxBRYc798ds5kLTJ76p8y7bnLW6fgltlLVR4KTs6sC0LuJ9fi7EjRbqb+681k6OKRWUBEEjchE1ycBO+WiTXPBEfjxciYhF95DXlI2t1uyMExSBdqsLwaK+i764jEdAAjwOhRoLerpBIHSk9631+ev8JHPfglEnjSwbLdwIRmssQncuMYajZdsJ60s1hbHv3xEdvhMy2h1P1yThRH85smx/J5n7Stdvu8q+tBDX6vnYak2VKRUAzs6PW874s3rrgTDQhCU5nQASGUWkwFHDBbD4RrnQ5r+qCr6tu562CmHIc37SK0/VDq+46t3ThLjlTwKPCAl/m7JlsNwjbpboBO/qBx5347Ue5yeOP5ncq/AYd8WWW9NU8BMXCJDH4y8dZMCAeofM+hFs4nzqVgArRW8CgmtGOzhxTBHi2Tq3a0jz+gtDR3K0BA+E98IrX/arM/1NKAXUe2twqXGzzXCbvJI1jfn8ITDbw4sofGWXbJxasrdx1QkGgTAjlqMqYzkPzKU2foXs2WA7upgTv6gh3Q6qwFpvDevwMEshpPXiY0I11DJ7CN0y5s7K92/TU50e9+kEJ1IuiGbMYt2Xt0tQ3tuuCkk1r0Kp4S3czYXx5Q6wRPUdv+Jc5CQ7x79TumdPSp0iXd4dL6imhq/9Eagx+LgWsWo1VtHrDRKn9bSun0I0hHf9NSLR/Vl8ku81zuDyxrf5+VZLUwui6bXNposzqQtmpcRsEnOGDL9ll/sg6+MbEok//Cl6+T5bbXioZ+RL5d6hx35PKgyh8CzGPk1PQoQU2SC/uSzz6Ps8Vf+QLVXkv05ia7ZsI3cJcsGvKK5GxVV0oE/6xmhEzimzNUYnX4BLF5ffxKHkpTpO1XJIPD/DvezmUijkDBux/zeP73hBIvCLmTbnbv/Z7lx91NQxQ8uwdxC+p5ZD78BLf3vVkPtsdHVDAE2PgOqz+viDdhxyJ8SVGyXDq+cKqzSsFuI5uw1I+mLYY8YoDP9JOQl5//ujH42h0UdcLKo3ZsMdH+0BOlmI12HbnrqhNcNC3kFsRcjTODykl2NTSZTZ2quX6I7/jw7B5imDYDeRoC1nrOBxj63HoBNZm9YEFCMCmzld4GFW/cXdCKSOdFtniYFVbinV48uywuutAnkxLp7MObY4DMXuo/+1Is92+qGtxA3vRJzH4zJ3WadZ359hWMJQTAq26Y5rEBgnBPL3rJ/nuRVD5RO/P5TSU8+NIXAh7h1EdfvQg/bO8qSRUy9atSgHTwrSN8tmZkDb1srSPu4iRWWlQq7EbIP0/SgBIY16eiUi336J9dvxmzu1bIqyUQ+T81Jc2Cqm/gspEDoG4fVnhDBxO6RfqMG0XuIrT/bwA==
  • Spamdiagnosticmetadata: NSPM
  • Spamdiagnosticoutput: 1:99

> gsh 7% g.getAttributeDelegate().hasAttribute(stdname)
>
> returns 'true' as I expected
>
> gsh 8% g.getAttributeDelegate().hasAttribute(contact)
>
> returns 'false' Why is that on false when getAttributeValue found it
> OK?

Its not the group that has the contact attribute, it's the assignment of
stdname to group that has the contact attribute... Its an assignment on an
assignment, to contain it.

See this:

https://spaces.internet2.edu/display/Grouper/Grouper+-+Loader+LDAP#Grouper-LoaderLDAP-LDAP_SIMPLEtestcase

> Then if I try to set an attribute value
>
> gsh 12%
> g.getAttributeValueDelegate().assignValue("etc:legacy:attribute:legacyAttribute_contact",
> "jimfox")
>
> I get an error.
>
> // Error: unable to evaluate command: Sourced file: inline evaluation of:
> ``g.getAttributeValueDelegate().assignValue("etc:legacy:attribute:legacyAttribute_
> . . . '' : Method Invocation assignValue
> // See error log for full stacktrace
> // caused by:
> edu.internet2.middleware.grouper.exception.AttributeOwnerNotInScopeException:
> // Cant find a scope definition that fits this assignment:
> AttributeDef[name=etc:legacy:attribute:legacyAttributeDef_uwstd,uuid=8f2f24ef41fe4d8bbeda94f72a9f90d4],
>
> Group[name=u:fox:browser6,uuid=a1681c3fcba3f54f759e6c9432004381]
>
> What's a scope definition? What steps am I missing?

Scope says where the attribute can be assigned so you don't put it in the
wrong place.

https://spaces.internet2.edu/display/Grouper/v1.6+Grouper+attribute+scoping




Archive powered by MHonArc 2.6.19.

Top of Page