Skip to Content.
Sympa Menu

grouper-users - [grouper-users] RE: General Grouper question SMTP related stuff

Subject: Grouper Users - Open Discussion List

List archive

[grouper-users] RE: General Grouper question SMTP related stuff


Chronological Thread 
  • From: "Black, Carey M." <>
  • To: "Hyzer, Chris" <>, "" <>
  • Subject: [grouper-users] RE: General Grouper question SMTP related stuff
  • Date: Tue, 6 Jun 2017 21:02:02 +0000
  • Accept-language: en-US
  • Authentication-results: spf=pass (sender IP is 128.146.138.9) smtp.mailfrom=osu.edu; internet2.edu; dkim=none (message not signed) header.d=none;internet2.edu; dmarc=pass action=none header.from=osu.edu;
  • Ironport-phdr: 9a23:0ftp5BV2t9RZ/fUPet4x1S5XM+fV8LGtZVwlr6E/grcLSJyIuqrYZRSHtKdThVPEFb/W9+hDw7KP9fuxBipdsN3Y7S1KWacPfidNsd8RkQ0kDZzNImzAB9muURYHGt9fXkRu5XCxPBsdMs//Y1rPvi/6tmZKSV3wOgVvO+v6BJPZgdip2OCu4Z3TZBhDiCagbb9oIhi7qQfcutMWjIZmJao91xvEr3tVcOlK2G1kIk6ekQzh7cmq5p5j9CpQu/Ml98FeVKjxYro1Q79FAjk4Km45/MLkuwXNQguJ/XscT34ZkgFUDAjf7RH1RYn+vy3nvedgwiaaPMn2TbcpWTS+6qpgVRHlhDsbOzM/7WrajNF7gqBGrxK7vxFxw5DabpyJNPRwfa3dc9EVRWtdUcleTCFOGJ+wYo8VAuYdIepUsY/wrEYOoxukAgmsAfvixjFVi3/yx6I1z+chHRnb1wE+Bd0OqmrbrdXoP6kVS+y5wrTDwDLYYPNSwzjy9IvIfgo8rf2SU799as3RyVIyFw/fkFqftJHlMiqT2+8QvWab6O9gWviui24hswxxoz6vxtsyhYnTgIIa1EzE+TtjzIkrONK4VVZ3YdijEJtWqS6bOJN2TdkkQ251pik116cKuZu7fSUM1Z8pxAbfZuSaf4SU7R/vTumcLDViiH9qZb6znRK//VW4xuHhSMW500xGojdKn9TNrHwA0xPe5tKaRvZ/4kutwTiP2B7Q5+1YJE05kKrWJII9zb4+k5cfr0vOEy7rl0jzg6Kbdkcp9+at5uv7ebrpvYWTOolpgQ/kKKsugNawAeEgPwgOQWeb/eO82aX780DlR7tGkvM7nrDXvp7dK8kXv6m5DBRL3Yo57Ba/Eium388fnXkaKlJKZQiLj5DzO1HJPPD3E+uwg0itkDdswfDKJLrhAojRLnjHl7fherV951RAxwo0yNBT/5NUCrcfL/LvQkL9qcDUAxAjPwG7wevrEtpw2p4EVW+LH6OVKKbSvkWJ5uIrLemMfogVuDPlJvc+4/7hl2M2mVwHcaW0w5caZmu1HvN9I0WEe3bjnMoOEXoSsgokUOPqkEGCUSJUZ3uqUKI8/DY7CJ++DYjdXIChmaGB3DylEZ1MfWBLEVSMEXbzd4WYQPcAdjieIs5nkjwYS7ehUYkh2g+ytAPk0bZoMPfb+jBL/a7kgZJV9v/ej1V63jxuDt/XmzWIRGFljG4Sbz4t1+ZiuUF7zBGO3bUux7QSGsZU+utESEInLpPG1MR7Dcz/QATMYo3PRVq7CJ3yDis2U8o82ZoTeEtnAP2jiAzOxSynH+VTmrCWUs8a6KXZijLbI892yDKO/6A7gkhuZ40FfTmsgqd09E6KXdXhlF6E0aumaPJPj2b26G6fwD/W7wljWwlqXPCdUA==
  • Spamdiagnosticmetadata: NSPM
  • Spamdiagnosticoutput: 1:99

Thank you Chris.

                Once again you have produced a quick turnaround on a “bug” (apparently) report. J

 

 

 

For the record… (anyone reading this email/archive later…)

 

Adding this to my grouper-ui.properties (for the Group UI web app) fixed the display issue.

 

                subject2.attributes.order.nonexpanded.MY-SUBJECT-ID-VALUE=subjectId,mail,name,description

 

 

NOTE: Your “MY-SUBJECT-ID-VALUE” string may need encoded due to java properties file format constraints.

            So pick values that are simple for these strings. ( Stick to upper, lower, underscores and you should be fine. Other chars may be welcome too…)

 

 

NOTE: I really don’t know how a “sort order” could suppress the display of a value, but I guess it can.  Adding that configuration item for the UI is a minor concern. J

 

--

Carey Matthew

 

From: Hyzer, Chris [mailto:]
Sent: Tuesday, June 6, 2017 3:17 PM
To: Black, Carey M. <>;
Subject: RE: General Grouper question SMTP related stuff

 

Fixed in patch or workaround (see below)

 

Ok, I figured out what the problem is.

 

There is a default source config in grouper-ui.base.properties

 

## To control the order in which subject attributes are listed in the New UI without expanding the attribute list.

subject2.attributes.order.nonexpanded.default=subjectId,email,name,description

 

You don’t have a subject attribute "email".

 

Workaround:

If you configure this in grouper-ui.properties, it will fix it (note, put the sourceId in place of <sourceId>:

 

subject2.attributes.order.nonexpanded.<sourceId>=subjectId,email,name,description

 

Fix:

If you get 2.3.0 patch UI patch 28 then it will also be fixed

 

I reproduced this by using the cmu directory source:

https://spaces.internet2.edu/display/Grouper/Grouper+Loader+LDAP+examples

 

https://bugs.internet2.edu/jira/browse/GRP-1558

 

Thanks

Chris

 

-----Original Message-----
From: Black, Carey M. []
Sent: Tuesday, June 06, 2017 9:51 AM
To: Hyzer, Chris <>;
Subject: RE: General Grouper question SMTP related stuff

 

Login to the New UI.

 

Click on the link in the upper right for your "Logged in as ...".

The header on the user that is displayed includes a "email:" that is blank for all Subjects.

Sample URL: .../grouper/grouperUi/app/UiV2Main.index?operation=UiV2Subject.viewSubject&subjectId=ID_VALUE&sourceId=SOURCE_ID_NAME

 

And when I expand the "More v" section I do not see email or mail in there at all.

 

 

Just in case this is some kind of "Grouper cached data issue" I also looked up Subjects (users) that I have not used before (recently created in the data source with known good "mail" value) still no values in the New UI.

The Admin UI does show a "mail" value.

 

--

Carey Matthew

 

 

-----Original Message-----

From: Hyzer, Chris []

Sent: Tuesday, June 6, 2017 8:57 AM

To: Black, Carey M. <>;

Subject: RE: General Grouper question SMTP related stuff

 

Sorry, what specifically is not working when looking at the subject?

 

-----Original Message-----

From: Black, Carey M. []

Sent: Tuesday, June 06, 2017 12:10 AM

To: Hyzer, Chris <>;

Subject: RE: General Grouper question SMTP related stuff

 

Chris,

 

Thanks for the push in the right direction. I think we are getting somewhere.

 

Your snip did not work in GSH for me.

"

if (StringUtils.isBlank(emailAttributeName)) { System.out.println("Cant find email attribute name");} return System.out.println("Email address: " + subject.getAttributeValue(emailAttributeName);

// Error: unable to evaluate command: Sourced file: inline evaluation of: ``if (StringUtils.isBlank(emailAttributeName)) { System.out.println("Cant find ema . . . '' : Attempt to resolve method: isBlank() on undefined variable or class name: StringUtils "

--> I have no idea why "StringUtils" is not resolvable. ( I was running

--> this from the API bin dir. Missing dependency jar ?)

 

 

 

So I modified it a bit...

"

rootSession = GrouperSession.startRootSession();

me = findSubject("black.123");

String emailAttributeName = GrouperEmailUtils.emailAttributeNameForSource(me.getSourceId());

if (emailAttributeName == null) { System.out.println("Can not find email attribute name"); }else{System.out.println("emailAttributeName: " + emailAttributeName);} "

And was rewarded with this output:

 

emailAttributeName: mail

 

 

 

So it looks like the source think's that "mail" should be the attribute for the email address for the user. (Which is correct for the data source.)

 

Oh... and look at that... If I look at the Admin UI I see the value in it's table for my Subject. Interesting....

 

URL: .../grouper/populateSubjectSummary.do?sourceId=MYSOURCE&returnToLinkKey=subject.action.return-results&nameOverride=&returnTo=%2FdoSearchSubjects.do&name=MY_NAME&typeName=person&description=MYDESCRIPTION&descriptionOverride=&id=MY_SUBJECT_UNIQUEID&subjectType=person&subjectId= MY_SUBJECT_UNIQUEID "

mail       

"

 

 

Maybe it is a bug in the "New UI"?

                Subject Diagnostics is working

                Admin UI is working.

                New UI not working when looking at the subject.

 

 

--

Carey Matthew

 

-----Original Message-----

From: Hyzer, Chris []

Sent: Monday, June 5, 2017 10:48 PM

To: Black, Carey M. <>;

Subject: RE: General Grouper question SMTP related stuff

 

 

...snip...

 

> 2) On a related note...

>             I am still not seeing "email" values on subjects that are resolved by a GrouperJndiSourceAdapter.

>             I did add these settings. (found kind of randomly in various WIKI/list archives) but still no love.

> "

> <init-param>

>        <param-name>Email_AttributeType</param-name>

>        <param-value>mail</param-value>

>      </init-param>

>      <init-param>

>        <param-name>emailAttributeName</param-name>

>        <param-value>mail</param-value>

>      </init-param>

> .....

> <attribute>mail</attribute>

> "

>

> The subject API diagnostics page does show this:

>

> "

> Subject attribute 'mail' has 1 value: ''

>   - with subject.getAttributeValue("mail") "

 

What does this print?

 

    String emailAttributeName = GrouperEmailUtils.emailAttributeNameForSource(subject.getSourceId());

    if (StringUtils.isBlank(emailAttributeName)) {

      System.out.println("Cant find email attribute name");

    }

    return System.out.println("Email address: " + subject.getAttributeValue(emailAttributeName);

 

 

>

>

> So the SubjectAPI can retrieve the attribute but it is not "using it".

> ( Is this a bug or am I doing something wrong? Could it be an bug in

> the UI? )

 

 

First it needs to know which attribute is the email attribute

 

>

> Attached is screen capture of the header of my Subject being displayed in the UI.

>

> Thanks in advance.

>

> 

-----Original Message-----

From: [] On Behalf Of Black, Carey M.

Sent: Monday, June 05, 2017 9:47 AM

To:

Subject: [grouper-users] General Grouper question SMTP related stuff

 

1) Is there a list of the emails that can be generated by the Grouper components?

                What triggers each email?

                Who the email is sent to?

                How to modify the text? (localization for branding/signing)

                etc.. etc...

 

Basically I would like to know what should be expected after the SMTP server is configured in the UI/WS/(other components?)

 

 

 

 

 

2) On a related note...

                I am still not seeing "email" values on subjects that are resolved by a GrouperJndiSourceAdapter.

                I did add these settings. (found kind of randomly in various WIKI/list archives) but still no love.

"

<init-param>

       <param-name>Email_AttributeType</param-name>

       <param-value>mail</param-value>

     </init-param>

     <init-param>

       <param-name>emailAttributeName</param-name>

       <param-value>mail</param-value>

     </init-param>

.....

<attribute>mail</attribute>

"

 

The subject API diagnostics page does show this:

 

"

Subject attribute 'mail' has 1 value: ''

  - with subject.getAttributeValue("mail") "

 

 

So the SubjectAPI can retrieve the attribute but it is not "using it". ( Is this a bug or am I doing something wrong? Could it be an bug in the UI? )

 

Attached is screen capture of the header of my Subject being displayed in the UI.

 

Thanks in advance.

 

--

Carey Matthew




Archive powered by MHonArc 2.6.19.

Top of Page