pfumagalli / couldit-autoexport

Automatically exported from code.google.com/p/couldit-autoexport
Other
0 stars 1 forks source link

AutoExported HTML pages have Confluence images still pointing to Confluence server. #11

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
When autoexported, Confluence images ( bullets, icons, etc). 

The autoexport plugin have also some issues when specifiying images in the 
template 
autoexport.vm. For instance when trying to add an image in the template and 
point to relative 
URL 

<img src="images/icons/notep_16.gif"> or <img src="/images/icons/notep_16.gif"> 

instead of 

<img src="http://server_name/images/icons/notep_16.gif"> 

The HTML autogenerated when usin relative URLs ends up pointing to some 
nonexisting 
confluence server URL resulting in a broken link or missing image. 

As a workaround I forcer absolute URL for all these kind of links/ resources 
but this forces me to 
have those resources available on a different server. This becomes a bigger 
issue when I try to 
provide the autoexported directory as a separate download. 

Thanks for the plugin, it's a very nice tool :-) 

Cheers! 
Hernan 

Original issue reported on code.google.com by ian...@gmail.com on 29 Nov 2007 at 12:43

GoogleCodeExporter commented 9 years ago
See also: https://issues.apache.org/jira/browse/INFRA-1315

Original comment by ian...@gmail.com on 29 Nov 2007 at 12:44

GoogleCodeExporter commented 9 years ago
Ted Husted opened a thread to discuss this issue on the AutoExport Google Group 

http://groups.google.com/group/couldit-autoexport/browse_thread/thread/4f48c0df7
df206e2/#

Original comment by ian...@gmail.com on 29 Nov 2007 at 12:45

GoogleCodeExporter commented 9 years ago
I hacked around this by running on the static webserver:

cd /var/www/localhost/htdocs
find . -name "*.html" -exec grep -H "dev.schibstedsok.no" {} \; | gawk
-F"dev.schibstedsok.no" '{print $2}' | gawk -F\" '{print $1}' | gawk -F\' 
'{print
$1}' | gawk -F""" '{print "https://dev.schibstedsok.no"$1}' | grep
".png\|.gif\|.jpeg" > protected-images.txt
wget --no-check-certificate -x -nH -i protected-images.txt
find . -name "*.html" | xargs sed -i 
's\https://dev.schibstedsok.no\http://sesat.no\g'

ofcourse you'll have to change the domain names (dev.schibstedsok.no is the 
original
confluence server, sesat.no the static webserver), and you need proper access 
to the
original confluence when running the wget command.

Original comment by michaels...@gmail.com on 14 Mar 2008 at 9:12