Problem with ie8 - pdf download

classic Classic list List threaded Threaded
11 messages Options
Reply | Threaded
Open this post in threaded view
|

Problem with ie8 - pdf download

Lomobob
Hi,

We have a problem with a functionality that works with chrome and firefox: it's about downloading a pdf that resume an answer.

To do that, we have this code in the form.xhtml:

<xf:submission id="xslfo" serialization="none" method="get" resource="/service/xslfo" replace="all">               
     <xf:message ev:event="xforms-submit-error" level="modal">PDF error</xf:message>
</xf:submission>


And the file xslfo.xpl in a directory "service"

<?xml version="1.0" encoding="UTF-8"?>
<p:config xmlns:p="http://www.orbeon.com/oxf/pipeline" xmlns:oxf="http://www.orbeon.com/oxf/processors" xmlns:xforms="http://www.w3.org/2002/xforms"
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:xhtml="http://www.w3.org/1999/xhtml"  xmlns:xxf="http://orbeon.org/oxf/xml/xforms" xmlns:xs="http://www.w3.org/2001/XMLSchema">

    <p:param name="data" type="input"/>

    <p:processor name="oxf:xforms-submission">
        <p:input name="submission">

            <xforms:submission method="get"
                resource="http://user:password@some_ip:port/exist/rest/db/apps/survey/data_collection/answer.xml"/>
        </p:input>
        <p:input name="request">
            <empty/>
        </p:input>
        <p:output name="response" id="data-xml"/>
    </p:processor>

    <p:processor name="oxf:xslt">
        <p:input name="data" href="#data-xml"/>
        <p:input name="pays" href="oxf:iso-enum.xsd"/>
        <p:input name="config" href="resume.xsl"/>
        <p:output name="data" id="document"/>
    </p:processor>

    <p:processor name="oxf:xslfo-converter">
        <p:input name="config">
            <config>
                <content-type>application/pdf</content-type>
            </config>
        </p:input>
        <p:input name="data" href="#document"> </p:input>
        <p:output name="data" id="fo"/>
    </p:processor>

    <p:processor name="oxf:http-serializer">
        <p:input name="config">
            <config/>
        </p:input>
        <p:input name="data" href="#fo"/>
    </p:processor>


</p:config>


The problem is that with ie8, when we click on the button to launch xf:submission id="xslfo", we have a windows that shows up, asking if we want to open or download the file; and neither of the two option gives us the pdf file...

Have you any idea about it ?

Thanks,

Lomobob

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
 
 
Reply | Threaded
Open this post in threaded view
|

Re: Problem with ie8 - pdf download

Alessandro  Vernet
Administrator
Hi Lomobob,

Instead of using a submission, try using a simple link. I think that should solve your problem. In your case, since your submission uses serialization="none" method="get", this should be straightforward:

<xh:a href="/service/xslfo">download PDF</xh:a>

You'll let us know if this solves your problem.

Alex
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
Reply | Threaded
Open this post in threaded view
|

Re: Problem with ie8 - pdf download

Lomobob
Hi,

We tried this way, but it didn't work either.

We access the form with a "https" adress, do you think it's related ?

Lomobob


On Tue, Aug 6, 2013 at 8:17 PM, Alessandro Vernet <[hidden email]> wrote:
Hi Lomobob,

Instead of using a submission, try using a simple link. I think that should
solve your problem. In your case, since your submission uses
serialization="none" method="get", this should be straightforward:

<xh:a href="/service/xslfo">download PDF</xh:a>

You'll let us know if this solves your problem.

Alex

-----
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
--
View this message in context: http://discuss.orbeon.com/Problem-with-ie8-pdf-download-tp4657050p4657107.html
Sent from the Orbeon Forms community mailing list mailing list archive at Nabble.com.

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].



--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Reply | Threaded
Open this post in threaded view
|

Re: Problem with ie8 - pdf download

Hank Ratzesberger-3
Hi,

(If the simple link isn't working)

For earlier versions of IE, I recall writing a service that used the
http serializer so that files would be downloaded, and not opened in
the same or another window.  I thought the behavior had been agreed
upon by the browsers now - open a tab for pdf files.

<config>
    <content-type>application/pdf</content-type>
   <force-content-type>true</force-content-type>
    <header>
        <name>Content-Disposition</name>
        <value>attachment; filename=name.pdf</value>
    </header>
</config>

I don't think Tomcat automatically handles these things the way that
Apache or Nginx can through filename extension mappings.

Regards,
Hank



On Wed, Sep 4, 2013 at 8:43 AM, L'omobob <[hidden email]> wrote:

> Hi,
>
> We tried this way, but it didn't work either.
>
> We access the form with a "https" adress, do you think it's related ?
>
> Lomobob
>
>
> On Tue, Aug 6, 2013 at 8:17 PM, Alessandro Vernet <[hidden email]>
> wrote:
>>
>> Hi Lomobob,
>>
>> Instead of using a submission, try using a simple link. I think that
>> should
>> solve your problem. In your case, since your submission uses
>> serialization="none" method="get", this should be straightforward:
>>
>> <xh:a href="/service/xslfo">download PDF</xh:a>
>>
>> You'll let us know if this solves your problem.
>>
>> Alex
>>
>> -----
>> --
>> Follow Orbeon on Twitter: @orbeon
>> Follow me on Twitter: @avernet
>> --
>> View this message in context:
>> http://discuss.orbeon.com/Problem-with-ie8-pdf-download-tp4657050p4657107.html
>> Sent from the Orbeon Forms community mailing list mailing list archive at
>> Nabble.com.
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Orbeon Forms" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to [hidden email].
>> To post to this group, send email to [hidden email].
>>
>>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Orbeon Forms" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [hidden email].
> To post to this group, send email to [hidden email].



--
Hank Ratzesberger
XMLWerks.com

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Reply | Threaded
Open this post in threaded view
|

Re: Problem with ie8 - pdf download

Lomobob
Thanks a lot, I will take a look at your solution, and let you know if it works.

Lomobob




On Thu, Sep 5, 2013 at 6:13 AM, Hank Ratzesberger <[hidden email]> wrote:
Hi,

(If the simple link isn't working)

For earlier versions of IE, I recall writing a service that used the
http serializer so that files would be downloaded, and not opened in
the same or another window.  I thought the behavior had been agreed
upon by the browsers now - open a tab for pdf files.

<config>
    <content-type>application/pdf</content-type>
   <force-content-type>true</force-content-type>
    <header>
        <name>Content-Disposition</name>
        <value>attachment; filename=name.pdf</value>
    </header>
</config>

I don't think Tomcat automatically handles these things the way that
Apache or Nginx can through filename extension mappings.

Regards,
Hank



On Wed, Sep 4, 2013 at 8:43 AM, L'omobob <[hidden email]> wrote:
> Hi,
>
> We tried this way, but it didn't work either.
>
> We access the form with a "https" adress, do you think it's related ?
>
> Lomobob
>
>
> On Tue, Aug 6, 2013 at 8:17 PM, Alessandro Vernet <[hidden email]>
> wrote:
>>
>> Hi Lomobob,
>>
>> Instead of using a submission, try using a simple link. I think that
>> should
>> solve your problem. In your case, since your submission uses
>> serialization="none" method="get", this should be straightforward:
>>
>> <xh:a href="/service/xslfo">download PDF</xh:a>
>>
>> You'll let us know if this solves your problem.
>>
>> Alex
>>
>> -----
>> --
>> Follow Orbeon on Twitter: @orbeon
>> Follow me on Twitter: @avernet
>> --
>> View this message in context:
>> http://discuss.orbeon.com/Problem-with-ie8-pdf-download-tp4657050p4657107.html
>> Sent from the Orbeon Forms community mailing list mailing list archive at
>> Nabble.com.
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Orbeon Forms" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to [hidden email].
>> To post to this group, send email to [hidden email].
>>
>>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Orbeon Forms" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [hidden email].
> To post to this group, send email to [hidden email].



--
Hank Ratzesberger
XMLWerks.com

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Reply | Threaded
Open this post in threaded view
|

Re: Problem with ie8 - pdf download

Lomobob
Hi,

I tried to replace this part

<config>
    <content-type>application/pdf</content-type>
</config>


with the code you suggested:

<config>
    <content-type>application/pdf</content-type>
    <force-content-type>true</force-content-type>
    <header>
        <name>Content-Disposition</name>
        <value>attachment; filename=name.pdf</value>
    </header>
</config>

But it didn't work, I have an orbeon error when I click to call the service.

Maybe I misunderstood your solution ? Anyway thanks.

Lomobob



On Thu, Sep 5, 2013 at 9:43 AM, L'omobob <[hidden email]> wrote:
Thanks a lot, I will take a look at your solution, and let you know if it works.

Lomobob




On Thu, Sep 5, 2013 at 6:13 AM, Hank Ratzesberger <[hidden email]> wrote:
Hi,

(If the simple link isn't working)

For earlier versions of IE, I recall writing a service that used the
http serializer so that files would be downloaded, and not opened in
the same or another window.  I thought the behavior had been agreed
upon by the browsers now - open a tab for pdf files.

<config>
    <content-type>application/pdf</content-type>
   <force-content-type>true</force-content-type>
    <header>
        <name>Content-Disposition</name>
        <value>attachment; filename=name.pdf</value>
    </header>
</config>

I don't think Tomcat automatically handles these things the way that
Apache or Nginx can through filename extension mappings.

Regards,
Hank



On Wed, Sep 4, 2013 at 8:43 AM, L'omobob <[hidden email]> wrote:
> Hi,
>
> We tried this way, but it didn't work either.
>
> We access the form with a "https" adress, do you think it's related ?
>
> Lomobob
>
>
> On Tue, Aug 6, 2013 at 8:17 PM, Alessandro Vernet <[hidden email]>
> wrote:
>>
>> Hi Lomobob,
>>
>> Instead of using a submission, try using a simple link. I think that
>> should
>> solve your problem. In your case, since your submission uses
>> serialization="none" method="get", this should be straightforward:
>>
>> <xh:a href="/service/xslfo">download PDF</xh:a>
>>
>> You'll let us know if this solves your problem.
>>
>> Alex
>>
>> -----
>> --
>> Follow Orbeon on Twitter: @orbeon
>> Follow me on Twitter: @avernet
>> --
>> View this message in context:
>> http://discuss.orbeon.com/Problem-with-ie8-pdf-download-tp4657050p4657107.html
>> Sent from the Orbeon Forms community mailing list mailing list archive at
>> Nabble.com.
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Orbeon Forms" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to [hidden email].
>> To post to this group, send email to [hidden email].
>>
>>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Orbeon Forms" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [hidden email].
> To post to this group, send email to [hidden email].



--
Hank Ratzesberger
XMLWerks.com

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].


--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Reply | Threaded
Open this post in threaded view
|

Re: Problem with ie8 - pdf download

Hank Ratzesberger-3
Lomobob,

What is the error?

That should work for the http-serializer .

--Hank


On Wed, Sep 11, 2013 at 2:15 AM, L'omobob <[hidden email]> wrote:

> Hi,
>
> I tried to replace this part
>
> <config>
>     <content-type>application/pdf</content-type>
> </config>
>
> with the code you suggested:
>
>
> <config>
>     <content-type>application/pdf</content-type>
>     <force-content-type>true</force-content-type>
>     <header>
>         <name>Content-Disposition</name>
>         <value>attachment; filename=name.pdf</value>
>     </header>
> </config>
>
> But it didn't work, I have an orbeon error when I click to call the service.
>
> Maybe I misunderstood your solution ? Anyway thanks.
>
> Lomobob
>
>
>
> On Thu, Sep 5, 2013 at 9:43 AM, L'omobob <[hidden email]> wrote:
>>
>> Thanks a lot, I will take a look at your solution, and let you know if it
>> works.
>>
>> Lomobob
>>
>>
>>
>>
>> On Thu, Sep 5, 2013 at 6:13 AM, Hank Ratzesberger <[hidden email]>
>> wrote:
>>>
>>> Hi,
>>>
>>> (If the simple link isn't working)
>>>
>>> For earlier versions of IE, I recall writing a service that used the
>>> http serializer so that files would be downloaded, and not opened in
>>> the same or another window.  I thought the behavior had been agreed
>>> upon by the browsers now - open a tab for pdf files.
>>>
>>> <config>
>>>     <content-type>application/pdf</content-type>
>>>    <force-content-type>true</force-content-type>
>>>     <header>
>>>         <name>Content-Disposition</name>
>>>         <value>attachment; filename=name.pdf</value>
>>>     </header>
>>> </config>
>>>
>>> I don't think Tomcat automatically handles these things the way that
>>> Apache or Nginx can through filename extension mappings.
>>>
>>> Regards,
>>> Hank
>>>
>>>
>>>
>>> On Wed, Sep 4, 2013 at 8:43 AM, L'omobob <[hidden email]> wrote:
>>> > Hi,
>>> >
>>> > We tried this way, but it didn't work either.
>>> >
>>> > We access the form with a "https" adress, do you think it's related ?
>>> >
>>> > Lomobob
>>> >
>>> >
>>> > On Tue, Aug 6, 2013 at 8:17 PM, Alessandro Vernet <[hidden email]>
>>> > wrote:
>>> >>
>>> >> Hi Lomobob,
>>> >>
>>> >> Instead of using a submission, try using a simple link. I think that
>>> >> should
>>> >> solve your problem. In your case, since your submission uses
>>> >> serialization="none" method="get", this should be straightforward:
>>> >>
>>> >> <xh:a href="/service/xslfo">download PDF</xh:a>
>>> >>
>>> >> You'll let us know if this solves your problem.
>>> >>
>>> >> Alex
>>> >>
>>> >> -----
>>> >> --
>>> >> Follow Orbeon on Twitter: @orbeon
>>> >> Follow me on Twitter: @avernet
>>> >> --
>>> >> View this message in context:
>>> >>
>>> >> http://discuss.orbeon.com/Problem-with-ie8-pdf-download-tp4657050p4657107.html
>>> >> Sent from the Orbeon Forms community mailing list mailing list archive
>>> >> at
>>> >> Nabble.com.
>>> >>
>>> >> --
>>> >> You received this message because you are subscribed to the Google
>>> >> Groups
>>> >> "Orbeon Forms" group.
>>> >> To unsubscribe from this group and stop receiving emails from it, send
>>> >> an
>>> >> email to [hidden email].
>>> >> To post to this group, send email to [hidden email].
>>> >>
>>> >>
>>> >
>>> > --
>>> > You received this message because you are subscribed to the Google
>>> > Groups
>>> > "Orbeon Forms" group.
>>> > To unsubscribe from this group and stop receiving emails from it, send
>>> > an
>>> > email to [hidden email].
>>> > To post to this group, send email to [hidden email].
>>>
>>>
>>>
>>> --
>>> Hank Ratzesberger
>>> XMLWerks.com
>>>
>>> --
>>> You received this message because you are subscribed to the Google Groups
>>> "Orbeon Forms" group.
>>> To unsubscribe from this group and stop receiving emails from it, send an
>>> email to [hidden email].
>>> To post to this group, send email to [hidden email].
>>
>>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Orbeon Forms" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [hidden email].
> To post to this group, send email to [hidden email].



--
Hank Ratzesberger
XMLWerks.com

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Reply | Threaded
Open this post in threaded view
|

Re: Problem with ie8 - pdf download

Lomobob
Hi,

I'm back with this after a while; we found the issue about the PDF downloading: http://support.microsoft.com/kb/812935/en-us

"This issue may occur if any one or more of the following conditions are true:
  • The Do not save encrypted pages to disk check box is selected in Internet Explorer 6.0 SP1.
  • The server sends the "Cache-Control: No Store" header.
  • The server sends the "Cache-Control: No Cache" header."

Witch is our case, because we have those in properties-local.xml:

<property as="xs:string"
        name="oxf.http.page.cache-headers"
        value="Cache-Control:no-cache,max-age=0, no-store; pragma:no-cache; Expires:0"/>
<property as="xs:string"
        name="oxf.http.resource.cache-headers"
        value="Cache-Control: no-cache,max-age=0, no-store; pragma:no-cache; Expires:0"/>

It came to me that those properties were important to avoid missing some update in the data... So is there a solution or do we have to choose between those 2 ?

Thanks,
Lomobob






On Wed, Sep 11, 2013 at 5:17 PM, Hank Ratzesberger <[hidden email]> wrote:
Lomobob,

What is the error?

That should work for the http-serializer .

--Hank


On Wed, Sep 11, 2013 at 2:15 AM, L'omobob <[hidden email]> wrote:
> Hi,
>
> I tried to replace this part
>
> <config>
>     <content-type>application/pdf</content-type>
> </config>
>
> with the code you suggested:
>
>
> <config>
>     <content-type>application/pdf</content-type>
>     <force-content-type>true</force-content-type>
>     <header>
>         <name>Content-Disposition</name>
>         <value>attachment; filename=name.pdf</value>
>     </header>
> </config>
>
> But it didn't work, I have an orbeon error when I click to call the service.
>
> Maybe I misunderstood your solution ? Anyway thanks.
>
> Lomobob
>
>
>
> On Thu, Sep 5, 2013 at 9:43 AM, L'omobob <[hidden email]> wrote:
>>
>> Thanks a lot, I will take a look at your solution, and let you know if it
>> works.
>>
>> Lomobob
>>
>>
>>
>>
>> On Thu, Sep 5, 2013 at 6:13 AM, Hank Ratzesberger <[hidden email]>
>> wrote:
>>>
>>> Hi,
>>>
>>> (If the simple link isn't working)
>>>
>>> For earlier versions of IE, I recall writing a service that used the
>>> http serializer so that files would be downloaded, and not opened in
>>> the same or another window.  I thought the behavior had been agreed
>>> upon by the browsers now - open a tab for pdf files.
>>>
>>> <config>
>>>     <content-type>application/pdf</content-type>
>>>    <force-content-type>true</force-content-type>
>>>     <header>
>>>         <name>Content-Disposition</name>
>>>         <value>attachment; filename=name.pdf</value>
>>>     </header>
>>> </config>
>>>
>>> I don't think Tomcat automatically handles these things the way that
>>> Apache or Nginx can through filename extension mappings.
>>>
>>> Regards,
>>> Hank
>>>
>>>
>>>
>>> On Wed, Sep 4, 2013 at 8:43 AM, L'omobob <[hidden email]> wrote:
>>> > Hi,
>>> >
>>> > We tried this way, but it didn't work either.
>>> >
>>> > We access the form with a "https" adress, do you think it's related ?
>>> >
>>> > Lomobob
>>> >
>>> >
>>> > On Tue, Aug 6, 2013 at 8:17 PM, Alessandro Vernet <[hidden email]>
>>> > wrote:
>>> >>
>>> >> Hi Lomobob,
>>> >>
>>> >> Instead of using a submission, try using a simple link. I think that
>>> >> should
>>> >> solve your problem. In your case, since your submission uses
>>> >> serialization="none" method="get", this should be straightforward:
>>> >>
>>> >> <xh:a href="/service/xslfo">download PDF</xh:a>
>>> >>
>>> >> You'll let us know if this solves your problem.
>>> >>
>>> >> Alex
>>> >>
>>> >> -----
>>> >> --
>>> >> Follow Orbeon on Twitter: @orbeon
>>> >> Follow me on Twitter: @avernet
>>> >> --
>>> >> View this message in context:
>>> >>
>>> >> http://discuss.orbeon.com/Problem-with-ie8-pdf-download-tp4657050p4657107.html
>>> >> Sent from the Orbeon Forms community mailing list mailing list archive
>>> >> at
>>> >> Nabble.com.
>>> >>
>>> >> --
>>> >> You received this message because you are subscribed to the Google
>>> >> Groups
>>> >> "Orbeon Forms" group.
>>> >> To unsubscribe from this group and stop receiving emails from it, send
>>> >> an
>>> >> email to [hidden email].
>>> >> To post to this group, send email to [hidden email].
>>> >>
>>> >>
>>> >
>>> > --
>>> > You received this message because you are subscribed to the Google
>>> > Groups
>>> > "Orbeon Forms" group.
>>> > To unsubscribe from this group and stop receiving emails from it, send
>>> > an
>>> > email to [hidden email].
>>> > To post to this group, send email to [hidden email].
>>>
>>>
>>>
>>> --
>>> Hank Ratzesberger
>>> XMLWerks.com
>>>
>>> --
>>> You received this message because you are subscribed to the Google Groups
>>> "Orbeon Forms" group.
>>> To unsubscribe from this group and stop receiving emails from it, send an
>>> email to [hidden email].
>>> To post to this group, send email to [hidden email].
>>
>>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Orbeon Forms" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [hidden email].
> To post to this group, send email to [hidden email].



--
Hank Ratzesberger
XMLWerks.com

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Reply | Threaded
Open this post in threaded view
|

Re: Problem with ie8 - pdf download

Alessandro  Vernet
Administrator
Hi Lomobob,

Two things come to mind:

1. I am not sure why you would need to change those properties. Would it work if you leave them to their default value? You can see the default in properties-base.xml:

https://github.com/orbeon/orbeon-forms/blob/master/src/resources-packaged/config/properties-base.xml

2. Microsoft seems to have a fix for this, so if you really need those properties set (but per #1, I am not convinced you do), would installing the fix be a possible solution?

Alex
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
Reply | Threaded
Open this post in threaded view
|

Re: Problem with ie8 - pdf download

Lomobob
Hi,
About the hotfix, it's a client side patch, so sadly it's not very helpful.

We tried to leave the properties to their default value, it fixes the PDF downloading issue, but we have another problem instead; we use a system of authentication, and the disable properties are necessary for the log-off to work properly...

Thanks,
Lomobob



On Wed, Nov 27, 2013 at 7:42 AM, Alessandro Vernet <[hidden email]> wrote:
Hi Lomobob,

Two things come to mind:

1. I am not sure why you would need to change those properties. Would it
work if you leave them to their default value? You can see the default in
properties-base.xml:

https://github.com/orbeon/orbeon-forms/blob/master/src/resources-packaged/config/properties-base.xml

2. Microsoft seems to have a fix for this, so if you really need those
properties set (but per #1, I am not convinced you do), would installing the
fix be a possible solution?

Alex

-----
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
--
View this message in context: http://discuss.orbeon.com/Problem-with-ie8-pdf-download-tp4657050p4657720.html
Sent from the Orbeon Forms community mailing list mailing list archive at Nabble.com.

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Reply | Threaded
Open this post in threaded view
|

Re: Problem with ie8 - pdf download

Alessandro  Vernet
Administrator
Hi Lomobob,

Lomobob wrote
We tried to leave the properties to their default value, it fixes the PDF
downloading issue, but we have another problem instead; we use a system of
authentication, and the disable properties are necessary for the log-off to
work properly...
Could you elaborate on that?

For reference:

For oxf.http.page.cache-headers:
Default: Cache-Control: private, max-age=0; Pragma:
Your value: Cache-Control:no-cache,max-age=0, no-store; pragma:no-cache; Expires:0

For oxf.http.resource.cache-headers:
Default: Cache-Control: public; Pragma:
Your value: Cache-Control: no-cache,max-age=0, no-store; pragma:no-cache; Expires:0

The default values seem correct. I.e. for pages, we always want the browser to revalidate, but we don't want to prevent it from using a value it cached after it checked that it hasn't changed. And for resources, preventing caching seems *very* wasteful, as resources rarely change, or even never change with PE and versioned resources.

Alex
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet