OJS OCS OMP OHS

You are viewing the PKP Support Forum | PKP Home Wiki



Lingering https issue

Are you an Editor, Author, or Journal Manager in need of help? Want to talk to us about workflow issues? This is your forum.

Moderators: jmacgreg, michael, vgabler, John

Forum rules
This forum is meant for general questions about the usability of OJS from an everyday user's perspective: journal managers, authors, and editors are welcome to post questions here, as are librarians and other support staff. We welcome general questions about the role of OJS and how the workflow works, as well as specific function- or user-related questions.

What to do if you have general, workflow or usability questions about OJS:

1. Read the documentation. We've written documentation to cover from OJS basics to system administration and code development, and we encourage you to read it.

2. take a look at the tutorials. We will continue to add tutorials covering OJS basics as time goes on.

3. Post a question. Questions are always welcome here, but if it's a technical question you should probably post to the OJS Technical Support subforum; if you have a development question, try the OJS Development subforum.

Lingering https issue

Postby jfenton » Wed Jun 16, 2004 10:50 am

I'm currently working with 1.1.6 and have successfully applied the patch to get https working properly.

My lingering problem involves downloading submitted documents, but it is only a problem when using https: instead of http:, and only in IE 6(works fine in Netscape/Mozilla/Firefox).

A url such as https://www.myjournal.edu//admin/includ ... .php?id=34 just doesn't seem to work in IE !

P.S. -- after applying the https patch there is still a "//" after the hostname for dynamically generated OJS links, but changing the link to a single slash doesn't help the problem I'm describing here.
jfenton
 
Posts: 6
Joined: Tue Jan 13, 2004 4:53 pm
Location: Emory University Libraries

Re: Lingering https issue

Postby kevin » Wed Jun 16, 2004 10:43 pm

My lingering problem involves downloading submitted documents, but it is only a problem when using https: instead of http:, and only in IE 6(works fine in Netscape/Mozilla/Firefox).


I have not done any extensive testing, but this patch with some additional HTTP headers appears to appease the IE gods:

Code: Select all
Index: include/getdoc.php
===================================================================
RCS file: /cvs/ojs/include/getdoc.php,v
retrieving revision 1.28
diff -u -r1.28 getdoc.php
--- include/getdoc.php  17 Feb 2004 03:29:42 -0000      1.28
+++ include/getdoc.php  17 Jun 2004 05:35:18 -0000
@@ -61,6 +61,7 @@
        header("Content-Type: $chFileType");
        header("Content-Disposition: attachment; filename=\"$chFileName\"");
        header("Content-Length: " . @filesize($filepath.$chFilePath));
+       header("Pragma: public");
        readfile($filepath.$chFilePath);
 //} else {
 //     echo "Wrong permissions.";
Index: admin/include/getdoc.php
===================================================================
RCS file: /cvs/ojs/admin/include/getdoc.php,v
retrieving revision 1.15
diff -u -r1.15 getdoc.php
--- admin/include/getdoc.php    17 Feb 2004 03:29:41 -0000      1.15
+++ admin/include/getdoc.php    17 Jun 2004 05:35:18 -0000
@@ -37,6 +37,8 @@
 header("Cache-Control: private"); // work-around for IE
 header("Content-Type: $chFileType");
 header("Content-Disposition: attachment; filename=\"$chFileName\"");
+header("Content-Length: " . @filesize($filepath.$chFilePath));
+header("Pragma: public");
 
 readfile($filepath.$chFilePath);


There's actually a lot of discussion regarding this IE bug on the Internet if this workaround does not work for you (see here for example, among many other places).

P.S. -- after applying the https patch there is still a "//" after the hostname for dynamically generated OJS links, but changing the link to a single slash doesn't help the problem I'm describing here.


That's odd, I never saw that behaviour with dual slashes anywhere. You may try the revised fix for the dynamically generated URLs from OJS 1.1.7, via here.
kevin
 
Posts: 338
Joined: Tue Oct 14, 2003 8:23 pm


Return to OJS Editorial Support and Discussion

Who is online

Users browsing this forum: No registered users and 5 guests

cron