Opened 12 years ago
Closed 12 years ago
#99 closed (fixed)
organizations submitted via client have broken short name in database
Reported by: | chaos@bbn.com | Owned by: | somebody |
---|---|---|---|
Priority: | major | Milestone: | gmoc.py data submission debugging |
Component: | Database | Version: | |
Keywords: | Cc: | ||
Dependencies: |
Description (last modified by )
If you submit an Organization via the client the short name is truncated and broken. In particular, it's the first part of the URN and possibly all organizations will end up with the same short name.
The following in an example of what is not working...
The XML which has been submitted for the BBN organization is:
<organization location="urn:publicid:IDN+gmoc.geni.net+location+10_Moulton_St" name="urn:publicid:IDN+gmoc.geni.net+organization+BBN" primary_contact="urn:publicid:IDN+gmoc.geni.net+contact+gpo-infra_geni.net" type="campus"/>
The organizations table at https://gmoc-db2.grnoc.iu.edu/protected-openid/index.pl?method=organizations does not show the BBN organization at all.
The database organization
table contains a line which may be what resulted from this organization submission:
(56,'urn:publicid:IDN+gmo','urn:publicid:IDN+gmoc.geni.net+organization+BBN');
The BBN organization should show up in the organizations table.
Change History (4)
comment:1 Changed 12 years ago by
comment:2 Changed 12 years ago by
Description: | modified (diff) |
---|---|
Summary: | BBN organization has broken short name in database → organization's submitted via client have broken short name in database |
comment:3 Changed 12 years ago by
Summary: | organization's submitted via client have broken short name in database → organizations submitted via client have broken short name in database |
---|
comment:4 Changed 12 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
This is fixed. The code now strips the organization URN prefix off each organization URN, and uses that suffix as the short name.
For the record, those tables are:
based on that, i'm guessing that what's happening here is that
short_name
(which i think is the display name for the web UI) is being populated using the first 20 characters of thename
field reported in the XML. Instead, it should be populated using the part after the+organization+
in the URN.