Bug Report: Images broke when using get_blob_file_src and not authenticated

Hi,
it looks like that images which are retrieved with a
apex_util.get_blob_file
call are broken when the user is not authenticated. If the generated image URL is directly called in the browser, it shows a 404 Not found error with a "Invalid Session" in the error log file on the Apache.
The above image URL is generated when using the apex_util.get_blob_file_src function call. If the new IMAGE format mask (eg. in an IRR) is used it seems to be fine, because that generates a apex_util.get_blob call.
Testcase:
1) http://apex.oracle.com/pls/otn/f?p=17201:3 (That's the sample application with page set to "doesn't need authentication")
-> Image column is broken
2) Login with demo/patricks_demo_workspace
3) Go again to page 3 (Products)
-> Image column is displayed correctly
Thanks for looking into that
Patrick
Oracle APEX Essentials: http://essentials.oracleapex.info/
My Blog, APEX Builder Plugin, ApexLib Framework: http://www.oracleapex.info/

Hi Scott,
when I woke up today it also came into my mind that it may has something to do with the referenced P6_PRODUCT_IMAGE in the
apex_util.get_blob_file_src('P6_PRODUCT_IMAGE',p.product_id)call which references a page item on a non-public page.
I think apex_util.get_blob_file_src or better apex_util.get_blob_file shouldn't really care if the "definition" of how the BLOB looks like and where to read the information from is on a non-public page. Because it doesn't read or set actual data it just reads the definition, so it shouldn't be a security issue.
Another question is, if it's so useful to reference a page item to get this BLOB information and not directly being able to specify this information as parameters in the apex_util.get_blob_file_src call. I think I also raised that during the 3.1 beta, because in case if you just want to display a BLOB you still have to create somewhere a page item of type "file browser" to being able to reference it in the get_blob_file_src call. Direct passing of the vales would also be more transparent and self documenting.
BTW, the above code is an example of the "Sample Application" and wasn't made up by me, so probably a lot of people are using this technique to get rid of there own blob download procedures.
Have a nice weekend
Patrick
Oracle APEX Essentials: [http://essentials.oracleapex.info/]
My Blog, APEX Builder Plugin, ApexLib Framework: [http://www.oracleapex.info/]

Similar Messages

  • Images resizing when using drag and drop

    We just recently got PS Elements 7. I have a blank image that is sized at 600 x 1662 pixels. When I want to put a photo into that blank, I make sure that the photo is 600 pixels high. With 6, what I used drag and drop from the bin, the photo fit perfectly. With 7 it is apparently resizing the photo and I have to stretch it to fit. Is this something that I have set wrong?  If I am making sure that both items should fit together based on number of pixels, why is one changing size? Something has to be changing size or the items would fit together. I am assuming that something is set wrong, because this just does not strike me a something that should happen, or the program is not a very efficient photo editor. If necessary I will go back to 5.0, although there are things that I like better in 7.
    jean @ buffaloworks

    I'm frankly surprised you had success with this in PSE 6, since the past two versions create a special kind of smart object from images dragged up from the bin. You can use copy/paste to create a regular layer, or you can drag down to a thumbnail in the bin from an open image, but the project bin doesn't let you drag up anymore, by design.
    Did you mean to say PSE 5 rather than 6? It worked normally there.

  • The font in my Facebook apps is real small and I can't do what I need to..Its only when using Firefox and not Internet Explorer...Help...

    A couple days ago the font in the apps I am playing like Farmville, Puzzled Hearts and Cafe World went small and doesn't show the whole page either. Its not like that in Internet Explorer so that tells me its either a Facebook or Firefox problem. The Home page is the right size font I use. It's just so strange...
    Thanks and hope it can be fixed

    Reset the page zoom on pages that cause problems: <b>View > Zoom > Reset</b> (Ctrl+0 (zero); Cmd+0 on Mac)
    * http://kb.mozillazine.org/Zoom_text_of_web_pages

  • Bug in iPhoto v6 when using Mail

    Bug in image quality when sending photos with Mail.
    Description:
    I click on Email icon in iPhoto, and then choose Medium as the quality, that's when iPhoto tells me that the Photo Count = 1, and Estimated Size = 122Kb. And then the Mail app opens, and I see the same photo inside the message composition window, and now Mail tells me that the Message Size = 55Kb (on the status line at the bottom). And When I send that photo to myself, I receive a photo which is about 40Kb in size, and the photo looks just terrible... how can it look good at 640x480 with only 40Kb?
    Is this a bug, or I can change the jpeg quality somewhere? My friend has a 2-year old iMac with iPhoto 5 and when she sends me pictures the same Medium size they are closer to 100Kb each
    We did a little test: I sent her the same photo in original size, and then she sent me back the Medium Size, and it was around 90Kb. How can I fix/change this, or am I cursed by this BUG in iPhoto v. 6? or a bug in Mail?
    Thanks.
    MacBook Pro 2.4 GHz   Mac OS X (10.4.10)  

    Misio:
    Even though iPhoto said the final size would be 122 KB for a medium size, my test, a 4.2 MB file came in at 68 KB. Another test with a 2 MB file was estimated at 122 KB but came in around the 68 KB size. I think the 122 kb value is hard coded into the application as an approximation only before compressing and not really a bug. Maybe a poor approximation, however.
    Do you Twango?
    TIP: For insurance against the iPhoto database corruption that many users have experienced I recommend making a backup copy of the Library6.iPhoto database file and keep it current. If problems crop up where iPhoto suddenly can't see any photos or thinks there are no photos in the library, replacing the working Library6.iPhoto file with the backup will often get the library back. By keeping it current I mean backup after each import and/or any serious editing or work on books, slideshows, calendars, cards, etc. That insures that if a problem pops up and you do need to replace the database file, you'll retain all those efforts. It doesn't take long to make the backup and it's good insurance.
    I've written an Automator workflow application (requires Tiger), iPhoto dB File Backup, that will copy the selected Library6.iPhoto file from your iPhoto Library folder to the Pictures folder, replacing any previous version of it. You can download it at Toad's Cellar. Be sure to read the Read Me pdf file.

  • My photos are sharp but become soft when used in and IDVD slide show.

    My photos are sharp but become soft when used in and IDVD slide show. How can I prevent this from happining??

    Hi,
    I suggest that you try unchecking both of the crop options - landscape & portrait.
    To re-create your situation, I had to check the crop for landscape pictures option.
    I prefer to have control over any cropping so I tend to crop each image first before creating the slide show.
    Brian

  • Dreamweaver CC generates one of 3 error messages when using find and replace on Win 8.1 64 bit.

    Dreamweaver CC generates one of 3 error messages when using find and replace is used more than twice in succession. "While executing onLoad in bc_afterSave.htm, the following JavaScript error(s) occurred: At line 188 of file C:\Program Files (x86)\Adobe|Adobe DreamweaverCC|Configuration|Shared|BC\JS\bc_sites.js": out of memory"
    or
    While executing runCommand in File_Save.htm, a JavaScript erroroccurred.
    or
    While exciting getDynamicContent inAdressURL.htm, a Javascript erroroccirred.
    Any thoughts - I end up closing DWCC and reopening. Will work for two additional Find and Replace before the error messaged\s popup again.

    bkaufman43 wrote:
    Thanks Jon. I tried all of those solutions before posting. Same problem. It seems that the problem is tied to DWCC. Do not have the problem when using DW6 on Win8.1. When running DWCC on a Win7 pc, we get the same error message. When running DW6 on Win 7, f&c works fine. It seems to be a bug in DWCC. DWCC works flawlessly on our Macs.
    The same steps apply to DWCC, you just need to choose the CC folders rather than the DWCS4-6 versions that the page talks about. The layout of CC's folders hasn't changed from the older versions which is why, I think, Adobe hasn't updated the troubleshooting page as of yet.
    As Nancy mentions, a 38,500 page site is sort of ridiculously large for a static website, that could be part of the problem, but your response quoted above leads me to think you may have tried the troubleshooting steps in the wrong version of the program. Could you confirm that?

  • [svn:fx-4.x] 15119: Menu. popUpMenu textAlign should be start rather than left so it works correctly when using FTEText and direction =rtl.

    Revision: 15119
    Revision: 15119
    Author:   [email protected]
    Date:     2010-03-29 13:49:52 -0700 (Mon, 29 Mar 2010)
    Log Message:
    Menu.popUpMenu textAlign should be start rather than left so it works correctly when using FTEText and direction=rtl.  Also made same change for AccordionHeader, CheckBox and RadioButton just to be safe.
    QE notes:
    Doc notes: None
    Bugs: SDK-26028
    Reviewed By: Kevin
    Tests run: checkintests
    Is noteworthy for integration: No
    Ticket Links:
        http://bugs.adobe.com/jira/browse/SDK-26028
    Modified Paths:
        flex/sdk/branches/4.x/frameworks/projects/framework/defaults.css

    Thank you so much wchp, this is brilliant. I have had this annoying problem for a long time. I eventually rang Mac support, they did not know how to fix the problem as you have suggested so they instigated many hardware replacements which eventually left my iMac severely crippled. They eventually replaced it with the latest model. But I spent two months working with a disabled computer which really interfere with my work.
    Your solution appears to have solved my problem, at least so far, but I am hopeful that it is a permanent fix. I hope that your suggestions are taken up by Apple support. This may solve many users problems and avoid Apple making expensive fixes that don't actually work.
    I thought that the new iMac would not have the 'Wake up from sleep by painting in the login window' problem but it did, this really annoyed me. Anyway now the problem appears to be solved, it's not I will repost and keep working on it. Thanks again.

  • How do I close a JInternalFrame when using subclasses and a separate cla...

    The heading should be: How do I close a JInternalFrame when using subclasses and a separate class for the actionListener?
    I have just created a JInternalFrame appclication and now I want to structure up my code. I have a Superclass that contains the usual settings for the two JInternalFrame:s, and the two subclasses with frame specific information. Both the JInternalFrames use the same OK button. I want to have the actionListener outside the classes to avoid repetition of code. But the dispose()-function does not work properly, it does not close the opened JInternalFrame. What�s wrong?
    class Superclass extends JFrame
         JButton b= new JButton("ok");    
         Superclass()
    class Subclass1 extends Superclass
         Subclass1 ()
              add(ok);
           ok.addActionListener(new Listener());
    class Subclass2 extends Superclass
         Subclass2 ()
              add(ok);
           ok.addActionListener(new Listener());
    class Listener extends Superclass implements ActionListener
         public void actionPerformed(ActionEvent e)
                   dispose();
    }How do I controll in the Listener class that the button in Subclass1 is beeing pressed?

    First of all I think I misunderstood your question. You said you had two internal frames, so I thought you wanted to close the internal frame.
    It now looks to me like you want to close the entire JFrame, which makes the code even a little easier. Something like:
    JComponent component = (JComponent)event.getSource();
    JFrame frame = (JFrame)SwingUtilities.windowForComponent( component );
    frame.dispose();
    Ok, I will make a try:
    public static Container getAncestorOfClass(Class c, Component comp)
    w.getAncestorOfClass(w, this); Fiirst you need to learn the basics of reading the API.
    "getAncestorOfClass()" is a static method. That means you don't use a variable to invoke the method. You use the class itself.
    "w" is a variable, which is a JFrame, but that is not what the first parameter should be. The first parameter is a "Class".
    "this" will refer to your Listener class, but you need the Component that generated the ActionEvent.
    When I thought you wanted to close an internal frame then the code would have been something like:
    JComponent component = (JComponent)event.getSource();
    Container container = SwingUtilities.getAncesterOfClass( JInternalFrame.class, component );
    JInternalFrame internalFrame = (JInternalFrame)container;
    internalFrame.invokeSomeMethodHere();If you need further help then you need to create a "Short, Self Contained, Compilable and Executable, Example Program (SSCCE)", that demonstrates the incorrect behaviour.
    http://homepage1.nifty.com/algafield/sscce.html

  • TS3742 I have an iMac 24" system. I just recently installed MAC OS X 10.7.4 (Lion) on my system. Since doing so, my system consistently hangs. Particularly when using iMovie and iPhoto.

    I have an iMac 24" system. I just recently installed MAC OS X 10.7.4 (Lion) on my system. Since doing so, my system consistently hangs. Particularly when using iMovie and iPhoto. I have to power off my system to get it running again. Any suggestions on what I can do  to address this situation.

    I would first reset the SMC:
    Shut down and unplug the Mac.
    Keep the Mac unplugged for at least fifteen seconds.
    Plug the Mac back in and do not turn it back on for at least five seconds.
    Press the power button to turn the Mac back on.
    Then I would reset the PRAM by rebooting the iMac while simultaneously holding the Command-Option-P-R keys until the machine restarts a second time.
    Let us know if these  procedures don't solve the problems.
    Hope this helps

  • Building executables when using LV and MATRIXx

    Hi!
    With respect to Building executables when using LV and MATRIXx, I need clarification on following:
    1) Pre-requisites to use MATRIXx? We have LV 7.1 FDS with application builder.
    2) Licensing scheme? We would like to have MATRIX on 3 development stations.
    3) Can we build stand alone executables when using MATRIXx with LV?
    4) Do we need to purchase any addon to achieve (3) ?
    Thanks,
    Gurdas
    Gurdas Singh
    PhD. Candidate | Civil Engineering | NCSU.edu

    Hello Gurdas,
    Before I answer your questions, I am curious to know what you have in mind for the stand alone executables you are interested in building. It may help me to know a little more detail about your plans. Depending on your application, some of these answers may or may not be applicable. In any case, here are answers to your questions:
    1) There are no prerequisites for using MATRIXx. LabVIEW is not required. However, with LabVIEW FDS, you do have an Xmath Script node located in the Functions > All Functions > Analyze > Mathematics > Formula palette. This node can be used to call Xmath scripts from LabVIEW.
    Note: To use the Xmath Script node successfully, you will want to install LabVIEW 7.1.1 Maintenance Release. Refer to KnowledgeBase 300A6NDT: How Can I Resolve MATLAB and Xmath Script Node Issues in LabVIEW?
    2) There are two licensing options for MATRIXx: node-locked and floating (concurrent). A node-locked license is restricted to a specific node and can be installed and used on that single computer. A floating (concurrent) license allows use of the product by a specified number of concurrent users on any computer on a local area network that includes a server running a single license manager. For more information, follow the link to the MATRIXx Price List from Products and Services: MATRIXx.
    3) There are two ways you might build executables when using MATRIXx and LabVIEW. One way uses a component of MATRIXx to automatically generate C code. AutoCode is a component of MATRIXx that allows the user to turn system models into C code. This C code can then be compiled into an EXE or DLL. If built into a DLL, LabVIEW can be used to call the DLL. A more thorough explanation of this is provided in Developer Zone Tutorial: Running MATRIXx SystemBuild Models in LabVIEW/LabVIEW Real-Time.
    Another way that may work is to build an executable from a LabVIEW VI that uses an Xmath Script Node. Any target machine running this executable would need to have Xmath and the LabVIEW Run-Time Engine installed.
    4) No other add-ons are needed for (3). Do be sure to refer to the note following the answer to (1).
    Regards,
    Eric M.

  • Can you explain when using keywords and addding them to various clips pressing ctrl and a number eg. 1 or 2 it simply closes down FCPX.  Just to the dock as would th yellow -sign. As you gather I am new to this program having only used Final Cut Express 4

    Can you explain when using keywords and addding them to various clips pressing ctrl and a number eg. 1 or 2 it simply closes down FCPX.  Just to the dock as would the yellow -sign.  I am new to this program having only used Final Cut Express 4 previously.
    iMac (early 2009) 24in 2.93GHz 4GB 1066MHz DDR3 SDRAM (To be upgraded ot 8GB in the nextfew days) os x 10.7.2 Lion
    Re: Why don't my arrows on the time line operate and allow me to move to the start and end of the timeline. Iam using the trial version 

    Check System Preferences. I think Control-1 is used by something in the OS now. Switch it off. It's a major p[ain the way the OS is taking over more and more of the keyboard, allowing less options for application use.

  • When I click on the converted PDF in my downloads, I receive a message saying'invalid format' Could that be because I use 'Pages' and not 'Word" If so, how can I convey PDF's to Pages?

    When I click on the converted PDF n my downloads, I receive a message saying 'invalid file format'.
    Could that be because I use Pages and not Word?
    If so, how can I convert my PDF's to Pages so I can modify the documents?

    Hi Kathy,
    I'm not very familiar with Pages, but I did just read on Apple's website that it does import .docx files. What happens when you open Pages, and then choose File > Open to open the .docx files?
    Best,
    Sara

  • I am trying to import scanned illustrations into Final Cut Pro (6) as layered photoshop images, however when I try and animate the image is blurred.....please help!

    I am trying to import scanned illustrations into Final Cut Pro (6) as layered photoshop images, however when I try and animate the image is blurred.....please help! Will I need to create the photoshop files as a certain size/resolution? I am working to 4:3.....

    You should take your question to the Final Cut Studio forum. This is FCPX.

  • Photoshop CC. Colour selection not working when using alt and brush.

    Hi, Photoshop CC. Windows 8.1 64 bit. Colour selection not working when using alt and brush. I have tried rebooting and other things like closing swatch panel etc.
    The alt key is otherwise OK.  It's not the recent upgrade from Win 8 to 8.1 (5 days ago) because the colour selection facility was working yesterday. Any ideas.

    I'd say things sound desperate enough to try resetting Preferences
    Reset Preferences
    Windows — Hold down Shift Ctrl Alt immediately after starting Photoshop
    Mac — Hold down Shift Cmd Opt immediately after starting Photoshop
    If that fails, we need to know your operating system?
    Do you have a full CC subscription, or by apps do you mean Photoshop, Bridge and Lightroom?
    Another other information that might pertain ?

  • When using google and you do a new search it goes back to previous search only happens with fireox

    when using google and you do a new search it goes back to previous search only happens with fireox

    Try to connect to iTunes during the setup.

Maybe you are looking for

  • LOSS OF ACTIVITIES OPEN. NWDI

    regards, I am modifying a standard ESS applications. While making a checkin activity modifications, vpn connection lost. When NWDS restores the activity did not appear in either "open" or "closed" and appeared multiple syntax errors because they lost

  • Drag and Drop - Drag Image

    I'm using the Flex DragManager in an AdvancedDataGrid with HierarchicalData to allow the user to drag and drop tree nodes to re-order them. It is working fine. The problem I am having is with the drag image. The drag image does not always show up. It

  • How to create Adobe interactiveform - Dyanamic page?

    Right now the adobe form showing only three pages, but we have data for about 4 pages. How to display dynamic page in the adobe form layout?  Currently we have 3 subform(subform1 - Flowed  and westen text, subform2 - Flowed and ToptoBottom, Subform3

  • How can I install Firefox12 silently

    I can get the install to run via the -ms switch, but I need to copy the prefs.js file over to the randomly generated "C:\Users\xxxxx\AppData\Roaming\Mozilla\Firefox\Profiles\xxxxxx.default" folder. Is there an easier way or do I have to figure out ho

  • Spell checking in mail is not working

    spell checking in mail stopped working.