Bugs: Browse | Submit New | Admin

[#18309] Invalid Id value in Timestamp Element

Date:
2008-02-23 03:24
Priority:
3
Submitted By:
Vance Heron (heron)
Assigned To:
Nobody (None)
Category:
None
State:
Open
Summary:
Invalid Id value in Timestamp Element

Detailed description
The Id attribute is set as the object_id, which is a number, but the
ID attribute is defined to be a NCName, which must start with either a letter or underscore (Regex \i)

I believe this can be fixed by changing the file wss4r/security/xml/timestamp.rb
from
  timestamp.add_attribute("wsu:Id", timestamp.object_id().to_s())
to
  timestamp.add_attribute("wsu:Id", "Timestamp-" + timestamp.object_id().to_s())

This is similar to how the ID field is generated for the UsernameToken

Add A Comment: Notepad

Please login


Followup

No Followups Have Been Posted

Attached Files:

Name Description Download
No Files Currently Attached

Changes:

No Changes Have Been Made to This Item