Closed

Nuxeo / Java Fix

What we need is someone who has Nuxeo 5.x experience to change underlying code in a single file.

The issue I logged is as follows:

We are running Nuxeo 5.4.2 DM behind an SSL firewall which acts a little like a reverse proxy in that it appends an https address to a virtual URL so the user is running all communications to the SSL box within HTTPS and this then communicates to the relevant server behind the firewall which are running at HTTP.

We have a problem that the code in this update [url removed, login to view] works perfectly, however since the SSL box adds https at the last moment, an IE browser trying to download via a virtual https address is seen by this code as not running at https, hopefully that makes sense?

The HTTP header for this error is as follows:

HTTP/1.1 200 OK

Server: Apache-Coyote/1.1

Cache-Control: private, must-revalidate

Expires: Thu, 01 Jan 1970 00:00:00 GMT

X-Powered-By: JSF/1.2

Content-Disposition: attachment; filename=Morning%20and%20Evening%[url removed, login to view];

Pragma: no-cache

Content-Type: application/[url removed, login to view]

Content-Length: 11954

Date: Tue, 25 Oct 2011 08:38:54 GMT

Cache-control: no-store

We would like someone to change this code to make IE work.

/*

[url removed, login to view] + * Internet Explorer file downloads over SSL do not work with certain HTTP cache control headers

[url removed, login to view] + * See [url removed, login to view]

[url removed, login to view] + * What is not mentioned in the above Knowledge Base is that "Pragma: no-cache" also breaks download in MSIE over SSL

[url removed, login to view] + */

[url removed, login to view] + private static void addCacheControlHeaders(HttpServletRequest request,

[url removed, login to view] + HttpServletResponse response) {

[url removed, login to view] + String userAgent = [url removed, login to view]("User-Agent");

[url removed, login to view] + boolean secure = [url removed, login to view]();

[url removed, login to view] + if (!secure) {

[url removed, login to view] + String nvh = [url removed, login to view](VH_HEADER);

[url removed, login to view] + if (nvh != null) {

[url removed, login to view] + secure = [url removed, login to view]("https");

[url removed, login to view] + }

[url removed, login to view] + }

[url removed, login to view] + [url removed, login to view]("User-Agent: " + userAgent);

[url removed, login to view] + [url removed, login to view]("secure: " + secure);

[url removed, login to view] + if (secure && ([url removed, login to view]("MSIE") > -1)) {

[url removed, login to view] + [url removed, login to view]("Setting \"Cache-Control: max-age=15, must-revalidate\"");

[url removed, login to view] + [url removed, login to view]("Cache-Control", "max-age=15, must-revalidate");

[url removed, login to view] + } else {

[url removed, login to view] + [url removed, login to view]("Setting \"Cache-Control: private\" and \"Pragma: no-cache\"");

[url removed, login to view] + [url removed, login to view]("Cache-Control", "private");

[url removed, login to view] + [url removed, login to view]("Pragma", "no-cache");

[url removed, login to view] + [url removed, login to view]("Expires", 0);

[url removed, login to view] +

[url removed, login to view] + }

[url removed, login to view] + }

Any questions please contact me.

Skills: Java, Javascript, Linux, PHP, System Admin

See more: nuxeo cache control, nuxeo, nuxeo pragma cache, string problem, over rev, header error control, fix support, apache proxy server, void, user agent, update java code, ssl issue, reverse proxy, problem java, jsf, java reverse, java proxy, java problem, java debug, hg, dm, boolean, url fix, java proxy cache server, experience java

About the Employer:
( 3 reviews ) Winchfield, United Kingdom

Project ID: #1263644

3 freelancers are bidding on average £240 for this job

Fksolution

Hi, We are interested in this project and wish to pursue this project. We have extensive experience on required skills. Please check my PM for further details. Thanks, I A Rizvi

£250 GBP in 20 days
(1 Review)
3.0
jeffdavid

HELLO SIR PLEASE CHECK PMB

£220 GBP in 4 days
(0 Reviews)
0.0
martinsunk

PLEASE CHECK PMB

£250 GBP in 8 days
(0 Reviews)
0.0