airavata-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Marcus Christie (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (AIRAVATA-2788) SharingServiceDBEventHandler: new user is assigned a username of "firstname lastname" instead of username
Date Thu, 10 May 2018 15:01:00 GMT

     [ https://issues.apache.org/jira/browse/AIRAVATA-2788?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Marcus Christie updated AIRAVATA-2788:
--------------------------------------
    Description: 
TODO:
* org.apache.airavata.sharing.registry.utils.ThriftDataModelConversion#getUser sets the sharing
user 'userName' to 'firstname lastname', but should instead set it to the UserProfile.userId.
* The sharing user model has firstName and lastName fields so these should be used instead.
* However, SharingServiceDBEventHandler replaces UserProfile.userId with airavataInternalUserId
so this needs to be fixed too
* This will need a database migration to fix up these entries.

Workaround:
* for now to get the username one has to split the sharing User.userId on the "@" sign and
take the first bit. Care has to be taken though when the username itself contains a "@".

> SharingServiceDBEventHandler: new user is assigned a username of "firstname lastname"
instead of username
> ---------------------------------------------------------------------------------------------------------
>
>                 Key: AIRAVATA-2788
>                 URL: https://issues.apache.org/jira/browse/AIRAVATA-2788
>             Project: Airavata
>          Issue Type: Bug
>            Reporter: Marcus Christie
>            Priority: Major
>
> TODO:
> * org.apache.airavata.sharing.registry.utils.ThriftDataModelConversion#getUser sets the
sharing user 'userName' to 'firstname lastname', but should instead set it to the UserProfile.userId.
> * The sharing user model has firstName and lastName fields so these should be used instead.
> * However, SharingServiceDBEventHandler replaces UserProfile.userId with airavataInternalUserId
so this needs to be fixed too
> * This will need a database migration to fix up these entries.
> Workaround:
> * for now to get the username one has to split the sharing User.userId on the "@" sign
and take the first bit. Care has to be taken though when the username itself contains a "@".



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message