[
https://issues.apache.org/jira/browse/OPENMEETINGS-481?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13628013#comment-13628013
]
Andun Sameera Liyanagunawardana edited comment on OPENMEETINGS-481 at 4/10/13
5:51 PM:
---------------------------------------------------------------------------------------
Hi,
I have changed the Invitation generation
code(/singlewebapp/src/org/apache/openmeetings/remote/UserService.composeMail())
as follows and the logic worked fine. When the external user logs in his name
has shown as his email address as expected. Please comment on this solution. If
this is OK I can give a patch.
User to = userManager.getUserByEmail(email);
if (bookedRoom) {
if (to != null
&& !to.getUser_id().equals(from.getUser_id())) {
this.addAppointmentToUser(subject, message, to,
recipients, room, appointmentstart,
appointmentend, false, true,
sendJNameTimeZone);
}
Invitations invitation =null;
if (to != null) {
log.info("------------------------------------------------------------Internel
User"+to.getAdresses().getEmail());
invitation = invitationManager
.addInvitationLink(
new Long(2), // userlevel
to.getFirstname() + " "
+ to.getLastname(), //
username
message,
baseURL, // baseURl
to.getAdresses().getEmail(), //
email
subject, // subject
room_id, // room_id
"public",
false, // passwordprotected
"", // invitationpass
2, // valid type
appointmentstart, // valid from
appointmentend, // valid to
from.getUser_id(), // created by
baseURL, from.getUser_id(),
false, // really send mail sendMail
appointmentstart, appointmentend,
appointmentId, from.getFirstname()
+ " " + from.getLastname(),
from.getOmTimeZone());
}
else{
log.info("------------------------------------------------------------Externel
User :"+email);
invitation = invitationManager
.addInvitationLink(
new Long(2), // userlevel
"", // username
message,
baseURL, // baseURl
email, // email
subject, // subject
room_id, // room_id
"public",
false, // passwordprotected
"", // invitationpass
2, // valid type
appointmentstart, // valid from
appointmentend, // valid to
from.getUser_id(), // created by
baseURL, from.getUser_id(),
false, // really send mail sendMail
appointmentstart, appointmentend,
appointmentId, from.getFirstname()
+ " " + from.getLastname(),
from.getOmTimeZone());
}
invitation_link = baseURL + "?invitationHash="
+ invitation.getHash();
}
Thanks
AndunSLG
was (Author: andunslg):
Hi,
I have changed the Invitation generation
code(/singlewebapp/src/org/apache/openmeetings/remote/UserService.composeMail())
as follows and the logic worked fine. When the external user logs in his name
has shown as his email address as expected. Please comment on this solution. If
this is OK I can give a patch.
User to = userManager.getUserByEmail(email);
if (bookedRoom) {
if (to != null
&& !to.getUser_id().equals(from.getUser_id())) {
this.addAppointmentToUser(subject, message, to,
recipients, room, appointmentstart,
appointmentend, false, true,
sendJNameTimeZone);
}
Invitations invitation =null;
if (to != null) {
log.info("------------------------------------------------------------Internel
User"+to.getAdresses().getEmail());
invitation = invitationManager
.addInvitationLink(
new Long(2), // userlevel
to.getFirstname() + " "
+ to.getLastname(), //
username
message,
baseURL, // baseURl
to.getAdresses().getEmail(), //
email
subject, // subject
room_id, // room_id
"public",
false, // passwordprotected
"", // invitationpass
2, // valid type
appointmentstart, // valid from
appointmentend, // valid to
from.getUser_id(), // created by
baseURL, from.getUser_id(),
false, // really send mail sendMail
appointmentstart, appointmentend,
appointmentId, from.getFirstname()
+ " " + from.getLastname(),
from.getOmTimeZone());
}
else{
log.info("------------------------------------------------------------Externel
User :"+email);
invitation = invitationManager
.addInvitationLink(
new Long(2), // userlevel
email, // username
message,
baseURL, // baseURl
email, // email
subject, // subject
room_id, // room_id
"public",
false, // passwordprotected
"", // invitationpass
2, // valid type
appointmentstart, // valid from
appointmentend, // valid to
from.getUser_id(), // created by
baseURL, from.getUser_id(),
false, // really send mail sendMail
appointmentstart, appointmentend,
appointmentId, from.getFirstname()
+ " " + from.getLastname(),
from.getOmTimeZone());
}
invitation_link = baseURL + "?invitationHash="
+ invitation.getHash();
}
Thanks
AndunSLG
> When I reserve a room by sending an email, users who connected to this link
> from an email have the same email address as me
> ---------------------------------------------------------------------------------------------------------------------------
>
> Key: OPENMEETINGS-481
> URL: https://issues.apache.org/jira/browse/OPENMEETINGS-481
> Project: Openmeetings
> Issue Type: Bug
> Components: UI
> Affects Versions: 2.0.0 Apache Incubator Release
> Environment: Ubuntu Server 12.10 (3.5.0-17)
> Reporter: Yuriy
> Assignee: SebastianWagner
> Priority: Critical
> Labels: bug, reservations, room
> Attachments: Accessing the Room Via the button in Mail.png, Dashboard
> Displayed.png, New User in Conference.png, Received Email.png, Sending the
> Invitation Mail.png, The Conference.png
>
> Original Estimate: 612h
> Remaining Estimate: 612h
>
> When I reserve a room by sending an email, users who connected to this link
> from an email have the same email address as me
> I go to the messages section, select "new message", in block "destination" (i
> used russian version and not sure that in English it is called the same)
> write, for example "[email protected], [email protected], [email protected]" and
> point to the need for room reserve. In my profile my email address is
> "[email protected]". When the user clicks the link and enter the room, he is
> referred to my email, namely "[email protected]". 10 people in the room and
> they all have a name "[email protected]" in the block "participants". All of
> them.
> Please help
> P.S. I am really sorry for my terrible English!!!
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira