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.

/*

1.37 + * Internet Explorer file downloads over SSL do not work with certain HTTP cache control headers

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

1.39 + * What is not mentioned in the above Knowledge Base is that "Pragma: no-cache" also breaks download in MSIE over SSL

1.40 + */

1.41 + private static void addCacheControlHeaders(HttpServletRequest request,

1.42 + HttpServletResponse response) {

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

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

1.45 + if (!secure) {

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

1.47 + if (nvh != null) {

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

1.49 + }

1.50 + }

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

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

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

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

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

1.56 + } else {

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

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

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

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

1.61 +

1.62 + }

1.63 + }

Any questions please contact me.

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

See more: nuxeo cache control, nuxeo, nuxeo pragma cache, work for rev com, what is the fix, string problem, over rev, max.sense, hg-x, header error control, fix support, coyote com, what is java for, apache proxy server, VOID, user agent, update java code, ssl issue, reverse proxy, problem in java, jsf, java reverse, java proxy, java problem, java debug

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