Normalise lock tokens before comparison.

This commit is contained in:
Andrew McMillan 2006-12-06 15:38:25 +13:00
parent 25bffa6b06
commit a57c043163
3 changed files with 6 additions and 3 deletions

View File

@ -24,5 +24,8 @@ while( <STDIN> ) {
$_ = ""; $_ = "";
}; };
# Fix up any opaquelocktokens to something regular
s/opaquelocktoken:[[:xdigit:]]{8}-([[:xdigit:]]{4}-){3}[[:xdigit:]]{12}/opaquelocktoken:xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/;
print; print;
} }

View File

@ -1,6 +1,6 @@
HTTP/1.1 200 OK HTTP/1.1 200 OK
Date: Dow, 01 Jan 2000 00:00:00 GMT Date: Dow, 01 Jan 2000 00:00:00 GMT
Lock-Token: <opaquelocktoken:d18fcef9-bafa-7004-6989-67e7cfdca934> Lock-Token: <opaquelocktoken:xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx>
Content-Length: 473 Content-Length: 473
Content-Type: text/xml; charset="utf-8" Content-Type: text/xml; charset="utf-8"
@ -20,7 +20,7 @@ Content-Type: text/xml; charset="utf-8"
</owner> </owner>
<timeout>Second-8640000</timeout> <timeout>Second-8640000</timeout>
<locktoken> <locktoken>
<href>opaquelocktoken:d18fcef9-bafa-7004-6989-67e7cfdca934</href> <href>opaquelocktoken:xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx</href>
</locktoken> </locktoken>
</activelock> </activelock>
</lockdiscovery> </lockdiscovery>

View File

@ -19,7 +19,7 @@ Content-Type: text/xml; charset="utf-8"
</owner> </owner>
<timeout>Second-8640000</timeout> <timeout>Second-8640000</timeout>
<locktoken> <locktoken>
<href>opaquelocktoken:d18fcef9-bafa-7004-6989-67e7cfdca934</href> <href>opaquelocktoken:xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx</href>
</locktoken> </locktoken>
</activelock> </activelock>
</lockdiscovery> </lockdiscovery>