Bug: DocumentManager does not emit Content-Disposition header

Good afternoon,
I have a process with an output variable of type Document: this document has a defined filename. When invoking the process, instead of downloading the file with the defined filename, I was receiving a file with a name that looks like an MD5 hash.
The fault for this lies with the DocumentManager application: it does not emit the content disposition header that would suggest to the browser what the real name of the octet-stream is. As such, without this header, the user agent will assume that the file-name is the endpoint name.
The trace of the HTTP exchange is below:
GET http://HOST:8080/rest/services/APP/SERVICE:1.0?q=83
Cache-Control     no-cache, must-revalidate
Date              Wed, 17 Nov 2010 12:54:29 GMT
Pragma            no-cache
Transfer-Encoding chunked
Location          http://HOST:8080/DocumentManager/docm$(NUMBER)/$(HASH)?type=$(TYPE)
X-Powered-By      Servlet/2.5 JSP/2.1
GET http://HOST:8080/DocumentManager/docm$(NUMBER)/$(HASH)?type=$(TYPE)
Date              Wed, 17 Nov 2010 12:54:35 GMT
Transfer-Encoding chunked
Content-Type      application/vnd.ms-excel
X-Powered-By      Servlet/2.5 JSP/2.1
The 2nd HTTP request should have included the specified header, like so:
Content-Disposition: attachment; filename=MyExcel.xls
RFC 2183: The Content-Disposition Header Field
Best regards,

Hi Robert,
thanks for the reply. This is certainly a different aspect of the problem. The HTTP response that serves the dynamic portion (the one with the timestamp) has the response headers:
HTTP/1.1 200 OK
Date: Wed, 21 Jan 2015 18:05:53 GMT
Server: Apache/2.2.29 (Unix)
X-Powered-By: PHP/5.3.29
Cache-Control: max-age=100000, public
Keep-Alive: timeout=3, max=95
Connection: Keep-Alive
Transfer-Encoding: chunked
Content-Type: application/xml
So it is marked as cacheable. 
My expectation now is this:
- when clicking the "refresh" link in the markup, there should be no new timestamp. Reason is that the dynamic part should have been cached and I would expect the XSLT engine to use the browser's caching layer when fetching fragments
- when hitting "F5" I would expect a revalidation request to be send to the server (e.g. max-age=0 or if-modified-since). Then the server can revalidate the fragment. In my example case the fragment would be served in any case, so I would expect a
new timestamp
- when hitting "CTRL+F5" I would expect a request with "cache-control: no-cache" that enforces the server side caches to always return new content. I would expect a new timestamp in this case.
What I observe is that:
- Chrome and FF work as expected
- IE (10/11) will always fetch the dynamic fragment, so I will even see a new timestamp when clicking the refresh link. Also the "if-none-match" header in the "F5" case is NOT forwarded to the dynamic fragment (potentially because it is
not cached in the browser at all)
Carsten

Similar Messages

  • SSRS 2008 R2 report does not print the page header for a html content displaying on multiple pages

    Hi
    I need to display the html content from the database. The html content are quite long and can have content of 3-5 pages. Issue I  am facing is f the record has html content of 3-5 pages, then it does not print the page header (which is a separate tablix) on
    second page onwards.
    Nikesh Shah
    Nikesh Shah

    Hi Nikesh,
    According to your description, I’m not sure the meaning of Page header in your scenario. In Reporting Services, a page header that run along the top of each page, respectively. Headers can contain static text, images, lines, rectangles, borders, background
    color, background images, and expressions. But we couldn’t add tablix in the page header.
    If you are saying report header, a report header consists of the report items that are placed at the top of the report body on the report design surface. They appear only once as the first content in the report. So it cannot repeat in other pages.
    If you are saying tablix header, freezing column headers are different in table and matrix. For more details, please refer to the following thread:
    http://social.technet.microsoft.com/Forums/sharepoint/en-US/c8ddc1af-1bdf-4e72-8aab-0353c7cc848a/ssrs-report-freezing-row-and-column-while-scrolling-issue?forum=sqlreportingservices
    If there are any misunderstanding, please elaborate the issue for further investigation.
    Regards,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • Problem with non-ASCII file name in content disposition header

    Hi All,
    I am facing some problems with the non-ASCII file name incase of content-disposition header. I read from the RFC 2183 that if the file name contains non-ASCII characters then the same should be encoded before sending to browser. I did the same but realized 2 problems:
    1. The name of the file is truncated in case the file name is slightly long for e.g. �����������j�b�g��������������������������.txt
    2. Also when the same file is opened in notepad, the title is showing encoded name %E6%9C%80%E4%B8%8A%E4%BD%8D.....
    Overall, I feel that the browser is not understanding or responding to the encoded header values.
    Is there any solution to this problem? I am using Microsoft IE 6.0.
    The code snippet is given below:
    protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
              String fileName = "�����������j�b�g��������������������������.txt";          
              fileName = URLEncoder.encode(fileName, "UTF-8");
              resp.setCharacterEncoding("UTF-8");
              resp.setHeader("Content-Disposition", "attachment; filename=\"" + fileName + "\"");
              resp.setContentType("application/download-binary");
              String s = "This is inside txt file";
              resp.getOutputStream().write(s.getBytes("UTF-8"));
              return;
         }Any help or pointer would be highly appreciated.
    Thanks and Regards,
    Ashish

    The MIME standards for non-ASCII filenames are not widely implemented.
    Many mailers use an ad hoc method for encoding filenames. JavaMail
    supports both methods, but you need to set properties, such as the
    mail.mime.encodefilename property. See the JavaMail javadocs for
    the javax.mail.internet package.

  • I can't open a certain website, it says "Directory Listing Denied This Virtual Directory does not allow contents to be listed." how can i solve my problem, please help me guys...

    "Directory Listing Denied
    This Virtual Directory does not allow contents to be listed."

    URL of that website?

  • TS3276 Email does not show contents, only to and from.

    Email does not show contents, only to and from up top.  Just started doing this last week.  Already deleted account and added it again still same problem.

    Mac OS version?

  • Webview does not load content properly when disabling its scrolling through script

    I have an App in which I need to show some html content in a page but I have given my App's scrolling in it. So whole page needs to scroll combined. To achieve this I use two WebViews to navigate to string and get height of content by javascript from first
    webview and assign it to second webview and then disable it's default scrolling. I have taken a rectangle over it to allow user to scroll in page. This strategy works fine where content is low but if the content is large in webview it shows blank page in top
    and down and shows some content in middle. Sometimes it does not show content but Height gets assigned. I tried using RichTextBlock but it does not parse all type of tags and I don't want WebView to scroll but to adjust it's height according to content. can
    anybody provide any help?
    Link to my code App2

    Hi RohitrkKUmar,
    After looking into your sample project, I found you are nesting unnecessary Grid and making thing complex. Using fixed height in the second grid and the app will use scroll bar if the height of content is longer than the grid. I make some changes according
    to my understanding, you can try the following code snippet.
    <Grid x:Name="LayoutRoot" Background="White">
    <Grid.ChildrenTransitions>
    <TransitionCollection>
    <EntranceThemeTransition x:Name="Animation"/>
    </TransitionCollection>
    </Grid.ChildrenTransitions>
    <Grid.RowDefinitions>
    <RowDefinition Height="50"/>
    <RowDefinition Height="500"/>
    <RowDefinition Height="auto" />
    </Grid.RowDefinitions>
    <TextBlock Grid.Row="0" Text="Demo App" VerticalAlignment="Center" Foreground="Black" FontSize="24" HorizontalAlignment="Center"/>
    <StackPanel Grid.Row="1">
    <TextBlock Name="demoText" Foreground="White" Width="Auto" Height="Auto" TextWrapping="WrapWholeWords"/>
    <WebView Visibility="Visible" ScrollViewer.VerticalScrollBarVisibility="Visible" ScrollViewer.VerticalScrollMode="Auto" ScrollViewer.ZoomMode="Disabled" DefaultBackgroundColor="Aqua" Margin="10" Name="aboutDescript" DOMContentLoaded="aboutDescript_DOMContentLoaded" />
    <Rectangle Width="auto" Name="wbRect" Fill="Transparent"/>
    </StackPanel>
    <TextBox Grid.Row="2" Text="something else"></TextBox>
    </Grid>
    Please feel free to let me know if you have any concerns.
    Regards,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place. Click HERE to participate
    the survey.

  • All time Bug! Accordion widget does not retain content position as in design view

    I have noticed that content placed inside an accordion widget that is stretched to fill browser width do not retain the position of its elements. This is very annoying as ones layout does not look right and balanced across screen.

    That was it KathH --- THANKS!!!
    Had created the row w/out <td> cells to carry the top banner (sort of cheating) on spanning the cells i guess ( )
    Anyway, re-wrote so that the banner table was independant and did not require span and picked up the data table independantly.
    Problem solved and designer picked up the image precisely.
    Thanks again!!!
    Curious though that the image is dependant on the <td> tag.  I would have expected any image called within the page to display in the designer regardless of location in the html.
    Oh well, fixed and onto the next challenge.
    Once more THANKS!!!

  • Strange IE ExternalInterface Bug: "Object does not support this property or method"

    We have an application on a relatively slow server (I mention
    the speed because it may be relevant).
    The app is flash 8 and uses ExternalInterface to call a
    javascript function in its parent page. It also used the
    ExternalInterface to receive a call from another function. These
    calls happens separately (the outbound one calls up a list view of
    items, clicking on an item calls up the details in the flash
    movie). In between the calls, the flash movie is hidden by moving
    it off screen using absolute positioning.
    On my local development box (Windows XPSP2) this works fine
    in both directions.
    On our production server (LAMP) this works fine in both
    directions in Firefox 1.5 and 2.0
    BUT while the outbound call from Flash to the page works fine
    in Internet Explorer 6 or 7, the call back from the page to the
    flash movie fails with the error messgage "Object does not support
    this method or property"
    We've tried not hiding the flash so it is always present on
    the page and still the browser > flash communication breaks in
    ie.
    We've tried using both the Adobe active content script and
    swfobject to embed the flash in the page with no difference in the
    resultset. In truth we've given up and gone to a two-page solution,
    reloading the flash from the start each time but I wondered if
    anyone had encountered a similar issue? Can't see why it would work
    perfectly in FF but not in IE.

    Not sure if this is your problem, but you do reference the
    Flash object
    differently, depending on the browser. In a video player we
    made, that uses
    JS to communicate back to Flash, I use a function like this
    to modify the
    variable depending on the browser:
    function changeVideo(xname){
    //ff
    if(window.vplayer){
    window.document["vplayer"].SetVariable("theXML", xname);
    window.document["vplayer"].GotoFrame(2);
    window.document["vplayer"].Play();
    //ie
    if(document.vplayer){
    document.vplayer.SetVariable("theXML", xname);
    document.vplayer.GotoFrame(2);
    document.vplayer.Play();
    The Flash is in a <div> named 'vplayer'
    Dave -
    Head Developer
    http://www.blurredistinction.com
    Adobe Community Expert
    http://www.adobe.com/communities/experts/

  • Pages 5.0 version does not support pictures in header

    I recently installed new soft OS X Maverick and along with this also renewed soft for Numbers, Pages, Keynote, and some more apps.
    Pages version 5.0 does not support its earlier version pre-set headers and footers. All the logos (picture files) I had inserted for my company template in the header are gone and I cannot re-enter them either. Does anyone can give e a hint on how to use picture files in Pages version 5.0 templates?
    This is first time in 2+ years that I prefer to use MsWord over Pages on my Mac, which is a pity.
    *I have tried to get used to new soft versions of numbers and pages now for around 3 weeks but it cannot make me to change my opinion that the eralier versions were much better. Unfortunately with OS X Maverick I have to use new versions for these apps, or do I, any hints?
    I already deleted once (2 weeks ago) OS X Maverick and switched back to OS X Mountain Lion (I use TM), but then decided after while to still update the op system soft to newest one available, as I've hoped that developers in Apple will come up with their soft improvements and bug fixes soon enough.
    Among the other disomforts (like pages, numbers and changed tag system) Safari is much slower than with previous version.
    Any hints are appreciated!
    Thanks, Paul

    https://discussions.apple.com/message/21546508#21546508 check this out

  • Content-disposition header - office 2007 warning

    When I set the response header in the following way- using content-disposition inline- and try to open a xls file, I don't get the open/save dialog due to content-disposition but a warning message comes from office 2007 saying "The file you're trying to open is in a different format..."
    response.setHeader{"content-disposition","inline;filename="+filename}Whereas, for the response header set in this way- using content-disposition attachment- the open/save dialog appears without being followed by a warning from office 2007.
    response.setHeader{"content-disposition","attachment;filename="+filename}Is there anyway I can avoid open/save dialog due to content-disposition and still not get the warning from office 2007?
    Edited by: 1normalguy on Nov 18, 2008 10:54 PM

    The problem is that "xls" is a different format. Office 2007 uses xlsx because the format (for all Office documents) has been completely altered in Office 2007. They are no longer even close to being the same thing, anymore.
    Edit: Gods! So many typos in so small a text!

  • My iGoogle page does not render correctly - only header & footer are shown.

    Running on Windows 7 (64 bit)
    I was using Firefox version 3 (whatever the latest was yesterday)
    When I go to www.google.co.uk/ig I see only the header and footer of the page and no widget area in between.
    Page works fine in IE so it's not a Google thing.
    This happened following the installation of the Adobe Download manager.
    So far I have tried:
    # Disabled the Adobe DLM addin
    # Disabled all addins
    # Wiped the cache & cookies
    # Created a new profile
    # Deleted the profile folder
    # Installed FF4.0
    Still can't see my iGoogle page.

    Jaison_Sabu wrote:
    I have a particular jsp page, which has heavy volume of data and it does not load completely in IE, but loads perfectly in Firefox and Safari.
    It is a really perpleximg problem that occurs only when the volume of data is large. Why would you be sending large amounts of data to a JSP? Sounds fishy to me.
    None of the people in my team were able to solve this issue.Well if you provided your team with the same amount (none) of information you provided here, then I would understand.
    Please send in your suggestions as to why this is happening or if there are any known bugs in IE.Personally, I think it's the flux capacitor.
    In case you need an HTML version of the code, please do mail me at [email protected]
    Hope you're ready for some spam.

  • BUG: EL does not evaluate when used in template text but does in tag.

    When I run the jsp below the EL on Line1 evaluates but the EL on Line2 does not. It was my understanding that the form in Line2 should be valid.
    Environment is Jdev 10.1.3.3, Servlet 2.4, JSP 2.0, J2EE 1.4, JSTL 1.1
    Does anyone have any thoughts?
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=windows-1252"></meta>
    <title>mainMenu</title>
    </head>
    <body>
    Line1 1+2=<c:out value="${1+2}"/> This evaluates.
    Line2 1+2=${1+2} This does not.
    </body>
    </html>
    web.xml is
    <?xml version = '1.0' encoding = 'windows-1252'?>
    <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
    version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee">
    </web-app>
    Thanks
    PaulJP
    Message was edited by:
    pauljp

    The problem appears to be related to jdev j2ee 10.1.3.3. I installed a fresh copy of jdev j2ee 10.1.3.3. I created a new application, project, and jsp. I placed the ${1+2} EL in the JPSs body as part of the Template Text. The EL did not evaluate.
    I then installed a fresh copy of jdev studio 10.1.3.3 and followed the exact same steps. Using jdev suite the EL does evaluate.
    It is my understanding the EL is part of the JSP API under JSP 2.0 so I would have assumed that it should evaluate under JDEV J2EE 10.1.3.3.
    Message was edited by:
    pauljp

  • Hyperlinked JSP Page does not refresh contents

    I have a very typical problem.
    In my application whenever I call a jsp page using hyperlink without any querystring attached to it the page called does not refresh. However when I press refresh on the browser it does refresh the contents. Basically in this page I am using some session variables to fetch data. So I do not call the page by passing querystring instead set the attributes of session variables and then the page is called as a hyperlink.
    However if I call the same page using submit the values are refreshed.
    Help on this urgently will be appreciated.
    Thanks
    Manish

    Just set 'no-cache' option for the jsp page and test it. It should work. only you need to do is
    response.setDateHeader("Expires",0);
         response.setHeader("Pragma","no-cache");
         if(request.getProtocol().equals("HTTP/1.1")) {
              response.setHeader("Cache-Control","no-cache");
    have fun!!
    ---rajsekhar

  • Something went wrong with iPad photo/Video import and now iPhoto on Mac does not see content.

    I just connected my iPad (4.3.2) to my mac (10.5). It launched the synch process for photos and videos and everything went fine. I then clicked on one of the newly imported photos in iPhoto and it choked and ultimately closed the app and gave me message along the lines of "iPhoto quit Unexpectedly." I rebooted the machine and when it came up went to look in iPhoto and saw that the new photos/video were not there. They are still on the iPad (Fortunately!) However when I reconnect the iPad to the Mac it does not see any content to import. In essence it seems to think it did the import and is not aware that it lost the content.
    There's a couple possible solutions I'm interested in. One, are the photos/video somewhere on the Mac and just need to be dug up? I nosed around a bit but found nothing. Then other solution would be is there some way to force iPhoto to reimport what's on the iPad, ignoring that it feels it's already done this?
    Thanks,
    Wil

    Where did these photos come from to begin with? Did you import them from the iPad into iPhoto on your Mac? Is that what you are saying here?

  • Bug:  Histogram Does Not Update when Using Painting Tools

    I was investigating something else, and I saw something not working...  I'm under the distinct impression that the Histogram panel should automatically update after every operation.  Having the Histogram panel displayed full-time on the screen, it should always be up to date.
    However, when I Dodge or Burn or even paint color on an image, the Histogram is not updating. 
    If I select one of the History states I've just created, it updates.
    Consider this simple sequence of operations:
    I'm able to reproduce this failure in Photoshop CS5 as well, BUT NOT IN CS4 (it updates in Photoshop CS4 after every painting operation), so clearly it's not a new bug, though somehow I've managed not to notice it in my years of using Photoshop CS5.
    Is it broken like this for everyone in Photoshop CS5 and 6?
    Could this be some twisted attempt to try to optimize painting performance?  If so, why isn't there an option to allow a user to request it to update on every operation on a fast computer with cores out the wazoo?
    -Noel

    More info:
    Just poking around in Photoshop CS6 to see what, if anything would make the Histogram display update...
    Even though the Refresh icon is disabled (and the "Uncached Refresh" entry in the fly-out menu is grayed-out), double-clicking in the topmost histogram display will force it to update (as described above by Conroy in post #1 above).
    If I change the selection Channel field in the Histogram panel, mostly it does not update, but when I change between some of the settings - for example between RGB and Luminosity - the graphs update.  Amazingly they revert back to the un-updated state if I switch the channel BACK to what it was!
    Making a selection DOES cause it to update.  
    Choosing Select - Color Range (just starting the function) DOES cause it to update.
    Hitting the quick mask mode button DOES cause it to update. Notably Edit in Quick Mask Mode is in the Select menu.  Could an association with Select be a clue?
    This bug is easy to reproduce, is shown to be a problem across multiple versions and multiple OSs, and in at least one case (Photoshop CS4 x64 on Windows 7 x64 here) it can be shown to work properly, so the code is probably not far off being right.  Seems to me this should be the kind of thing a junior engineer could find and fix so someone, say,  at Chris Cox's level could have it done before 5 today... 
    -Noel

Maybe you are looking for

  • How to Prevent User for Multiple click on form Submit button ??

    Hi, Is there any easy solution rather than AJAX or any HARD Solution. to prevent user from being submit for only once... So database record remain consistent rather than redundant. if any JAVASCRIPT SOLUTION IT WOULD BE BETTER ONE. WHAT SHOULD I DO ?

  • ITunes Apple Application Support error on Windows 7 Professional PC HRESULT: 0x80070091

    Hello, ITunes suddenly stopped working on my Windows 7 Professional PC. I was initially getting an Error 2 -- and I followed the instructions to uninstall and reinstall iTunes (restarted, updated Windows and ran CCleaner inbetween). After the new ins

  • ICloud Syncing issues on iOS7 on 5s?

    Since switching over to iOS7 and an iPhone 5s I am having the following issues: 1. All my keyboard shortcuts (which sync using icloud) are gone. 2. I cannot see any of my icloud documents in Pages, Numbers or Keynote on my iPhone? 3. If I make any ch

  • Planned order created against cir

    I have created planned order against cir which cannot be converted to production order. The system says REQUIREMENT TYPE KD Iis not supported for conversion. In T code OVZG system accepts only numerical 2 as assembly type. Since then after MRP run in

  • Field symbol for order type

    Hi all. i have a condition on which i need to use the field symbol in which depending on the condition,my subscreen should be displayed. i have SAPLMEGUI as a main standard program and MEPO_TOPLINE-BSART is a field which is attached to this std progr