mil-ims-lti 1.2.1 → 1.2.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/ims/lti/outcome_response.rb +4 -0
- metadata +1 -1
@@ -105,6 +105,10 @@ module IMS::LTI
|
|
105
105
|
|
106
106
|
# Parse Outcome Response data from XML
|
107
107
|
def process_xml(xml)
|
108
|
+
if xml.include?('#<UUID:0x') # Blackboard bug!
|
109
|
+
m_id = xml.match('#<UUID:(\w+)>')[1].hex.to_i
|
110
|
+
xml = xml.sub(/#<UUID:\w+>/, m_id.to_s)
|
111
|
+
end
|
108
112
|
doc = REXML::Document.new xml
|
109
113
|
@message_identifier = doc.text('//imsx_statusInfo/imsx_messageIdentifier')
|
110
114
|
@message_identifier = doc.text('//imsx_messageIdentifier') if @message_identifier.nil?
|