abdera-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Helen Beeken <HAWKI...@uk.ibm.com>
Subject Question about trailing slashes
Date Tue, 03 Apr 2012 10:21:37 GMT


I have an Abdera webservice and see different behaviour depending on
whether or not there is a trailing slash in the URL that I access with a
GET. The behaviour I'm seeing is as follows:

1. http://localhost.localdomain:9080/my.webservice
(note - url without the "/" at the end ) returns HTTP 404 not found

2. http://localhost.localdomain:9080/my.webservice/
(note - url with the ending "/")
 returns the service document which contains
 <collection href="/my.webservice/feed">
(note no trailing slash)

3. http://localhost.localdomain:9080/my.webservice/feed
 returns the feed but with blank hrefs:
 <?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="text">My Web Service</title>
	<link href=""></link>
	<link href="" rel="self"></link>

4. http://localhost.localdomain:9080my.webservice/feed/
 (with an ending /) return 404 - which is just the opposite behaviour
 to what the root url does w.r.t. to the ending "/"

The blank hrefs mentioned in (3) I believe is a bug in my code, however, my
question is about the existence or absence of trailing slashes - is this
the expected behaviour?

Thanks for your help,


View raw message