|
Re: By way of example.: msg#00615network.syndication.atom.protocol
Ok, first, it would seriously help the conversation if you just simply stopped using the term "URI collision". Second, what's the problem? So different users get different results when calling the same URI. Happens all the time. If you navigate to the URI http://www.google.com/ig?hl=en, you'll see a different result than what I see. No big deal. One you know which user is invoking the service, the rest is really quite simple. For instance, you can dynamically generate the returned entity based on the user id or you can do a permanent redirect to a user specific URI. - James Eric J. Bowman wrote: > Bear in mind, for these examples example.com serves only one MIME type, > application/atomserv+xml. > > User requests: > > http://example.com/service > > Server returns representation of available collections, at /service, no prob. > > User 2 requests: > > http://example.com/service > > Server returns representation of available collections, at /service, which is > not (necessarily) the same document the first user received, is it? > > So if you parameterize the URL in the returned Content-Location like so: > > http://example.com/service?user=1 > http://example.com/service?user=2 > > Then you are serving two resources at the same URI but at least subsequent > requests don't renegotiate /service. > > I am returning /userid.atomsrv, an entirely different take on implementing > the spec which still results in the same collision condition. > > User 1 requests: > > http://example.com/index.atomsrv > > Server returns /user1.atomsrv > > User 2 requests: > > http://example.com/user2.atomsrv > > Server returns /user2.atomsrv > > I'm serving two different resources, user1.atomsrv and user2.atomsrv, at the > same URI index.atomsrv. So please, show me how to implement this for > multiple users without it resulting in a URI collision. > > -EJB > >> -----Original Message----- >> From: Tim Bray [mailto:Tim.Bray-UdXhSnd/wVw@xxxxxxxxxxxxxxxx] >> Sent: Friday, August 18, 2006 03:08 PM >> To: eric-MkmoNbc1SAncr/OS1auqaA@xxxxxxxxxxxxxxxx >> Cc: 'Thomas Broyer', atom-protocol-O6w3ZxSwtmQ@xxxxxxxxxxxxxxxx >> Subject: Re: By way of example. >> >> On Aug 18, 2006, at 2:42 PM, Eric J. Bowman wrote: >> >>> Which is all entirely irrelevant -- don't you see that whether or >>> not I >>> locate the service document at http://example.com/index.atomsrv - >>> or- if I >>> locate it at http://example.com/introspection... >>> >>> It is still a URI collision for ANYONE who implements it. >> No, I don't see. Please explain the URI collision. If you have two >> URIs for your service doc, so what? I believe that there's a great >> big hairy problem that is plain as day to you, but I'm really having >> trouble understanding it. >> >>> Again, what are YOU GUYS returning in your Content-Location which >>> does not >>> constitute the same exact URI collision I see in my implementation? >> Content-location on which APP operation? >> >> I'm really trying to figure this out. -Tim >> >> > > > |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: Why MD5 Headers are Imperative: 00615, Bill de hÓra |
|---|---|
| Next by Date: | Re: Re: Why MD5 Headers are Imperative: 00615, Robert Sayre |
| Previous by Thread: | Re: By way of example.i: 00615, Eric J. Bowman |
| Next by Thread: | Re: By way of example.: 00615, Eric J. Bowman |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |