Commit 4e17ec5c authored by Gary Wong's avatar Gary Wong

Report slice creator (not speaker) to geni-get.

This affects the "user_urn" and "user_email" queries.  Whoever did
the speaking-for (if not the creator directly) seems irrelevant in
these cases.
parent 3bf38531
...@@ -12324,8 +12324,7 @@ static char *getgeniuserurn( tmcdreq_t *reqp ) { ...@@ -12324,8 +12324,7 @@ static char *getgeniuserurn( tmcdreq_t *reqp ) {
MYSQL_RES *res; MYSQL_RES *res;
char buf[MYBUFSIZE]; char buf[MYBUFSIZE];
res = mydb_query( "SELECT IFNULL( slice.speaksfor_urn, " res = mydb_query( "SELECT slice.creator_urn FROM "
"slice.creator_urn ) FROM "
"`geni-cm`.geni_slices AS slice, " "`geni-cm`.geni_slices AS slice, "
"`geni-cm`.geni_slivers AS sliver WHERE " "`geni-cm`.geni_slivers AS sliver WHERE "
"sliver.resource_uuid='%s' AND " "sliver.resource_uuid='%s' AND "
...@@ -12363,8 +12362,7 @@ static char *getgeniuseremail( tmcdreq_t *reqp ) { ...@@ -12363,8 +12362,7 @@ static char *getgeniuseremail( tmcdreq_t *reqp ) {
/* This is a big pain, because certificates for local users are /* This is a big pain, because certificates for local users are
stored differently than those for foreign users. First stored differently than those for foreign users. First
figure out who the user is... */ figure out who the user is... */
res = mydb_query( "SELECT IFNULL( slice.speaksfor_urn, " res = mydb_query( "SELECT slice.creator_urn FROM "
"slice.creator_urn ) FROM "
"`geni-cm`.geni_slices AS slice, " "`geni-cm`.geni_slices AS slice, "
"`geni-cm`.geni_slivers AS sliver WHERE " "`geni-cm`.geni_slivers AS sliver WHERE "
"sliver.resource_uuid='%s' AND " "sliver.resource_uuid='%s' AND "
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment