Page MenuHomeFeedback Tracker

Linux DS is handling squad xml differently compared to Windows, missing capability
Feedback, NormalPublic

Description

Linux DS is handling squad-xml differently compared to windows DS. The main issue with this is that Linux DS seems unable to handle personalized profiles, for example: http://domain.com/squad/squad.php?RAU. There are no errors logged into RPT but the tag doesn't show up.

Here's an example what a squad.php could contain:

<?PHP
	header("Content-Type: application/xhtml+xml");
	$file = file_get_contents("squad.xml");
	$uri = $_SERVER['REQUEST_URI'];
	$ltr = strtoupper(substr($uri, strrpos($uri, '?')+1));
	$file = str_replace('default.paa', 'squad_'.$ltr.'.paa',$file);
	echo $file;
?>

Using curl, this returns a proper squad XML-file with a customized squad logo (for example with player's initials). Works on Windows DS, not on Linux DS.

Details

Severity
Minor
Resolution
Open
Reproducibility
Always
Operating System
Linux x64
Operating System Version
Ubuntu Server 18.04.4 LTS
Category
Server
Steps To Reproduce
  1. Setup squad XML files on a remote server. The XML file needs to contain your real player id (and nick?).
  2. Set the tailored squad url into your Arma 3 profile. E.g. http://my.domain.com/arma/squad.php?XXX
  3. Connect a Linux DS Arma 3 server.
  4. Notice how your name [tag] is missing.
  5. Compare to Windows DS server where the tag is shown.

Here are example squad files you can use for testing:
Example XML URL
squad.php
squad_arma3.xml
squad_arma3.xsl
squad_arma3.dtd
squad_arma.css
default.paa
squad_RAU.paa

Additional Information

Another example how the handling is different is that Linux DS can't handle 301 (moved permanently) returned by the xml-url. For example if the domain is domain.com, but the given xml url is www.domain.com, Windows DS redirects to domain.com, but Linux DS does not, and instead produces an (rpt) error about how it can't read the 301 page. This seems to indicate that Linux DS is using curl to fetch the xml, as it behaves similarly. Here's some discussion about 301 with Linux DS

We've been using this method of setting squad urls in LDD Kyllikki since Armed Assault.

Event Timeline

dedmen claimed this task.May 18 2020, 10:40 AM
dedmen added a subscriber: dedmen.

Already fixed probably, on perf/prof/dev branch soon.

dedmen changed the task status from New to Feedback.Jul 15 2020, 12:21 PM

v146824 perf/prof branch - Issue still ongoing.

Currently running a server on CentOS 7, both Units and Squad xml do not load on the server.

Pi added a subscriber: Pi.Jun 12 2021, 4:27 PM

Hi, is the issue still happening @brysondev ?

In T150414#2200865, @Pi wrote:

Hi, is the issue still happening @brysondev ?

Hello Pi,

Yes this is still happening. Now moved to Fedora 33 as Centos 7 is EOL. I have changed permissions, firewall settings and fresh installs all failing to load squad xml and Units.