Skip to Content.
Sympa Menu

en - RE: [sympa-users] generation of incorrect links in archive pages only

Subject: The mailing list for listmasters using Sympa

List archive

Chronological Thread  
  • From: "Vance, Michael" <address@concealed>
  • To: "address@concealed" <address@concealed>
  • Subject: RE: [sympa-users] generation of incorrect links in archive pages only
  • Date: Fri, 10 Feb 2017 20:55:41 +0000

Ah, my sprintf was obviously borked, changing to:

 

$param->{'base'} = sprintf "%s/arc/%s/%s/%s", &Conf::get_robot_conf($robot, 'wwsympa_url'), $param->{'list'}, $in{'month'}, $in{'arc_file'};

 

Seems to be working fine (e.g. remove the cgi path which was double appending a ‘wws’). Still not sure if this is canonical, though, would appreciate comment.

 

m.

 

From: Vance, Michael
Sent: Friday, February 10, 2017 3:03 PM
To: 'address@concealed' <address@concealed>
Subject: generation of incorrect links in archive pages only

 

Hello,

 

We have a Sympa 6.2.24~dfsg-1 install on an Ubuntu 16.04.1 LTS server (VM). The VM this lives on is setup as a forward on our main mail server, and we leverage wwsympa_url to achieve this. For the vast majority of the pages on our site this works correctly, however for Archive pages, we find that URLs through the page are replaced with the hostname of our VM instead of the wwsympa_url in our config. E.g.:

 

On page

 

http://foo.activision.com/wws/admin/bar

 

the link to our archives shows up as:

 

http://foo.activision.com/wws/arc/bar

 

However on the archive page itself, it shows up as:

 

http://foo-sympa/wws/arc/bar

 

I’ve spent some time looking through the various cgi-bin/Perl/etc. bits trying to get a good grasp on why this might be. I finally ended up in wwsympa.fcgi and am wondering if something is going wrong here in do_arc:

 

$param->{'base'} = sprintf "%s%s/arc/%s/%s/%s", $param->{'base_url'}, $param->{'path_cgi'}, $param->{'list'}, $in{'month'}, $in{'arc_file'};

 

As opposed to e.g. in do_viewmod where Conf::Get_robot_conf() is invoked as you’d expect:

 

$param->{'base'} = sprintf "%s/viewmod/%s/%s/", &Conf::get_robot_conf($robot, 'wwsympa_url'), $param->{'list'}, $in{'id'};

 

If I replace the param->base_url with the get_robot_conf, restart Apache, I do end up with correct bits on the menu list on the left, however I get mangled bits on the message links such as:

 

http://foo.activision.com/wwshttp://foo-sympa/arc//wws/bar/msg00000.html

 

I’ll keep looking at this but I imagine with some guidance from the list/devs it’s possible to get to a working solution faster here. Has anyone encountered anything similar previously, or have guidance on resolving?

 

Regards,

 

m.




Archive powered by MHonArc 2.6.19+.

Top of Page