I am trying to do the following in a RESTful manner:

 I have a web service that accepts an id to deliver a particular
 record. Unfortunately, the id that the client will have is not the
 usual database sequence number. This mostly works, though, and the
url
 looks something like:

http://myservice.com/controller/the_id.xml

That is handled by the "show" action.

 Unfortunately, some of the ids that will be passed contain special
 characters. I can require that they be encrypted, but the period
seems
 to be having a problem. In other words, if the id is "the+id. value",
 the url should be:

http://myservice.com/controller/the%2bid%2e+value.xml

 where the plus, period and space are transformed. This works for the
 plus and space, but the period causes the rest of url to be
considered
 the "format" parameter.

 Actually, mostly.

 I've tried on two different servers, running the same version of
 rails. One accepts the above url and one doesn't.

 I've tried to figure out what is different about the servers. Could
 this be caused by an Apache configuration difference? Or a Passenger
 difference? I could use a hint about where the transformation of the
 %2e to period takes place.

 ---

 Alternately, what do you do in this situation? It would be trivial to
 do this non-RESTfully, by making a custom route, but I was attempting
 to be completely RESTful in my web service. Am I just making it hard
 on myself?

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to