Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 506001

Summary: Support for php zip extension
Product: Community Reporter: Roland Grunberg <rgrunber>
Component: ServersAssignee: Eclipse Webmaster <webmaster>
Status: RESOLVED WONTFIX QA Contact:
Severity: enhancement    
Priority: P3 CC: denis.roy
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
See Also: https://git.eclipse.org/r/c/orbit/orbit-recipes/+/199882
https://git.eclipse.org/c/orbit/orbit-recipes.git/commit/?id=27b15ffe0a27a6d5b01f9ea0af9669ab729d91c7
Whiteboard:

Description Roland Grunberg CLA 2016-10-14 11:32:05 EDT
On download.eclipse.org, I see 'Fatal error: Class 'XSLTProcessor' not found in ...'

I believe that ww.eclipse.org has support for php xsl but download.eclipse.org doesn't seem to. I would want this extension for a script located within download.eclipse.org/tools/orbit/ that would use content from some xml file(s) to populate an html web page.

The problem with using ww.eclipse.org for the script location is that errors don't seem to be logged directly to stdout of the php script (different server configuration ? ) and project locations are all under version control so it's difficult to make many quick changes. This has made it a little difficult to debug certain things.
Comment 1 Denis Roy CLA 2016-10-17 14:47:06 EDT
While we "tolerate" PHP scripts on download.e.o we don't necessarily accept the practice. download.e.o serves millions of hits every day, and we don't have the compute cycles for PHP scripts.

Best place to run this is on www.eclipse.org.
Comment 2 Roland Grunberg CLA 2016-10-17 15:06:10 EDT
(In reply to Denis Roy from comment #1)
> While we "tolerate" PHP scripts on download.e.o we don't necessarily accept
> the practice. download.e.o serves millions of hits every day, and we don't
> have the compute cycles for PHP scripts.
> 
> Best place to run this is on www.eclipse.org.

Understood, so if I'm running into issues with a particular script on www.eclipse.org, and seeing no output even with :

ini_set("display_errors", "true");
error_reporting (E_ALL);

Is there a standard error reporting location currently in use ? Do I need to override it with "error_log" ?
Comment 3 Denis Roy CLA 2016-10-17 15:08:20 EDT
That _should_ work, provided the script compiles with no syntax errors.

If you can include the URL on www I can post (or email you directly) what I see in the server log files.
Comment 4 Roland Grunberg CLA 2016-10-17 15:25:13 EDT
Sure.

The script is http://download.eclipse.org/tools/orbit/downloads/iplog.php .

$ cat compositeContent.xml | curl -v -o index.html -d @- http://www.eclipse.org/orbit/scripts/iplog.php?repoPath='tools/orbit/N-builds/N20161011180623'
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0*   Trying 198.41.30.198...
* Connected to www.eclipse.org (198.41.30.198) port 80 (#0)
> POST /orbit/scripts/iplog.php?repoPath=tools/orbit/N-builds/N20161011180623 HTTP/1.1
> Host: www.eclipse.org
> User-Agent: curl/7.47.1
> Accept: */*
> Content-Length: 549
> Content-Type: application/x-www-form-urlencoded
> 
} [549 bytes data]
* upload completely sent off: 549 out of 549 bytes
< HTTP/1.1 200 OK
< Date: Mon, 17 Oct 2016 19:13:50 GMT
< Server: Apache
< Cache-Control: max-age=86400
< Expires: Tue, 18 Oct 2016 19:13:50 GMT
< X-NodeID: www-vm1
< X-Frame-Options: SAMEORIGIN
< Vary: Accept-Encoding
< Content-Length: 0
< Content-Type: text/html; charset=utf-8
< 
100   549    0     0  100   549      0    541  0:00:01  0:00:01 --:--:--   541
* Connection #0 to host www.eclipse.org left intact

The only other thing I can think of now is that the script assumes includes are url-aware (allow_url_include). I'm guessing this isn't enabled, and I can always relocate the necessary scripts (currently on download.eclipse.org) but I figured there would be some error spit out.
Comment 5 Roland Grunberg CLA 2016-10-17 15:26:36 EDT
(In reply to Roland Grunberg from comment #4) 
> The script is http://download.eclipse.org/tools/orbit/downloads/iplog.php .

Typo. It's http://www.eclipse.org/orbit/scripts/iplog.php , but it's in the curl call above as well.
Comment 6 Denis Roy CLA 2016-10-17 16:44:40 EDT
I'm not seeing anything in the error log. In fact the page is terminating with a 200 OK (and 20 bytes sent to the browser).

Sorry I can't help more. I don't even know if an XSL processor is installed on www.
Comment 7 Roland Grunberg CLA 2016-10-18 13:27:22 EDT
(In reply to Denis Roy from comment #6)
> I'm not seeing anything in the error log. In fact the page is terminating
> with a 200 OK (and 20 bytes sent to the browser).
> 
> Sorry I can't help more. I don't even know if an XSL processor is installed
> on www.

It seems the XSL processor is installed as that segment of code I have is run. I've confirmed my issue was due to using fully qualified urls in include/require. Copying over the needed files and making the paths relative fixed the issue.

I'm now running into 'Fatal error: Call to undefined function zip_open()'. Is there any chance to enable the 'zip' extension ?
Comment 8 Denis Roy CLA 2016-10-18 16:22:32 EDT
I would like to check with Matt first.  Give me a few days. We try to limit the things we run on www.

If you have a workaround, that may be a quicker route.
Comment 9 Roland Grunberg CLA 2016-10-18 16:32:48 EDT
(In reply to Denis Roy from comment #8)
> I would like to check with Matt first.  Give me a few days. We try to limit
> the things we run on www.
> 
> If you have a workaround, that may be a quicker route.

Thanks again for looking into it. I'll try and see if there's some way to work around this.
Comment 10 Roland Grunberg CLA 2016-10-24 16:28:42 EDT
Just thought I'd mention I have a workaround for this so we could probably mark this as WONTFIX for the time being.
Comment 11 Denis Roy CLA 2019-12-09 09:40:17 EST
Resolving, as suggested.
Comment 12 Eclipse Genie CLA 2023-02-13 12:28:19 EST
New Gerrit change created: https://git.eclipse.org/r/c/orbit/orbit-recipes/+/199882