On Dec 17, 2012, at 9:29 AM, Kay Schenk wrote:

> On Sun, Dec 16, 2012 at 3:54 PM, Dave Fisher <dave2w...@comcast.net> wrote:
>> Hi Andrea,
>> 
>> On Dec 16, 2012, at 2:44 PM, Andrea Pescetti wrote:
>> 
>>> Dave Fisher wrote:
>>>> I think that we can purge these *.htm duplicates, but if we do it
>>>> will be a "sledgehammer" build.
>>> 
>>> It will also be a problem, unless we accompany it with other changes: for 
>>> example, http://www.openoffice.org/pt/ would completely break, and all 
>>> external sites that now link to some of our .htm files would break too.
>> 
>> Got it.
>> 
>>>> It was intentional. Before doing so we would need to make a group
>>>> decision about how to treat the two types of files.
>>> 
>>> Regardless of what templates we apply, the best solution should:
>>> 1) Allow a .htaccess redirect/rewrite from .htm to .html (to preserve 
>>> existing internal and external links)
>>> 2) Have the SVN file names match the URLs: editing a file named "news.htm" 
>>> in SVN should not result in a change in a page with URL ".../news.html". 
>>> The current handling confuses the CMS too (for example, no diff is 
>>> reported). So either we mass-rename files from .htm to .html and rely on 1) 
>>> above, or we don't change .htm to .html but publish .htm URLs.
>> 
>> We need only do (1) and I would do it within the httpd config like our 
>> existing redirects. Regardless if there are both file1.htm and file1.html in 
>> the source, one of these must be removed from the source svn.
> 
> Dave, Andrea --
> 
> Only ONE copy is in source, the "htm" file. The duplicate gets
> generated from CMS -- but the new "html" is the most recent copy (on
> the actual web tree) -- generated from "htm".
> 
> Could we fix our templating to just continue to allow for "htm"
> instead of combing them as we're doing now?

It can be tried on a local copy. The prospective changes are required in 
lib/view.pm, but exactly what these changes are I am "guessing" at this point.

It will be something about determining which type of page htm vs. html and then 
make the appropriate call here:

I think, but do not know. If someone wants to experiment on a local build then 
I'll give pointers, but I may not have time to check for a day or two.

> maybe that would work. The
> web server seems happy enough to server up "htm" in addition to "html"
> 
> I don't know what this would do to the "html" file now on the web
> server. maybe a  re-publish for say /pt/about would make this new
> "html" file go away once we fixed the templating.

Either way we need to republish those directories somehow to either remove the 
extra htm or the extra html files.

The redirect that has been requested will force all *.htm into *.html which I 
find to be simpler, but may be confusing to volunteers.

Regards,
Dave


> 
> Thoughts?
> 
>> 
>> See https://issues.apache.org/jira/browse/INFRA-5668 for this request along 
>> with a set to avoid an incubator redirect for certain links.
>> 
>> We do not need to do (2) because we already are making this change in the 
>> staging and publish. You see no diffs for the old htm files because they are 
>> not changed. I do see diffs in the html versions of the pages. Even with the 
>> redirect in place, it still makes sense to edit the pages to use *.html and 
>> not *.htm in links.
>> 
>>> 
>>>> There are two different procedures from view.pm used:  ...
>>>> There are several templates used from templates/.
>>> 
>>> To me, .htm and .html are not different file types and were never used as 
>>> such: I mean, volunteers historically committed .htm or .html according to 
>>> their habits, but it doesn't make sense to have different ways of handling 
>>> them now. So I would tend to rename all .htm to .html and put the .htaccess 
>>> redirect in place, and have only one "type" of HTML files to handle.
>> 
>> I think it is ok to force the pages to be *.html. We should have some 
>> consistency. Maybe soon it will be time to start switching openoffice.org to 
>> mdtext.
>> 
>> Regards,
>> Dave
>> 
>>> 
>>> Regards,
>>> Andrea.
>> 
> 
> 
> 
> -- 
> ----------------------------------------------------------------------------------------
> MzK
> 
> "No act of kindness, no matter how small, is ever wasted."
> 
>  -- Aesop

Reply via email to