[Trac] HTTP GET methods for wiki changed recently?

Christopher Lenz cmlenz at gmx.de
Fri Mar 4 03:49:37 EST 2005


> I noticed that a Trac wiki page version diff was, until recently,
> written like this:
> 
>     <http://projects.edgewall.com/trac/wiki/TracGuide?
version=2&diff=yes>
> 
> But Trac now silently fails when the information is requested in
> that manner, serving the version of the page specified in the URI,
> but without the requested diff.
> 
> Apparently this is now correct:
> 
> <http://projects.edgewall.com/trac/wiki/TracGuide?action=diff&version=2>

Just to clarify, this change is in trunk and would appear in releases 
starting at Trac 0.9.

> Is this change documented anywhere?  A quick search of Trac
> project tickets didn't turn up anything relevant.  It's an
> unfortunately non-backwards-compatible change.

The query string parameters were cleaned up because they were a mess and 
not consistent with other modules in Trac.

So yeah, this does break existing links to wiki diffs and such. I wonder 
how much of a problem that really presents? For example, the diff pages 
actually exclude indexing with <meta name="robots">, so search engine 
results shouldn't be affected too much. What kind of links do you have 
lying around that would get broken by this change?

If it's a real problem, I guess we could try to detect the old parameter 
style and redirect to the corresponding page using the new parameter 
style.

Cheers,
Chris

-- 
Christopher Lenz
  cmlenz at gmx.de
  http://www.cmlenz.net/


More information about the Trac mailing list