owa_util. REDIRECT_URL: truncated destination url

So today at work this feature has let me down. The client, a simple application redirection, I just wanted to say something like tinyurl / bit.ly type thing. So I said yes hell, Oracle can do. But alas no! Soon, we noticed that our URL of get truncated to 130 characters.

I use the latest version of Oracle 11R1 with Apex 3.2 on the latest 64-bit Redhat EL5.

I googled a bit and found a few people blaming the browser, but this may not be the case because when I call the function without passing a parameter, but just put in a string literal, there worked. Find out what...

owa_util. REDIRECT_URL ('HTTP://BIG.LONG.COM/GINORMOUS/PATH/WITH/LOTS/OF/STUFF/IN/IT/LIKE/SO/MUCH/STUFF/YOULL/BE/ALL/LIKE/THAT/URL/IS/TOO/LONG/ANYWAY/SO/GO/AWAY/NOOBTARD');

Which works very well. Review the response headers and you'll see that it's all good. However, try the following code and it fails...

l_redirect: = 'http://big.long.com/ginormous/path/with/lots/of/stuff/in/it/like/so/much/stuff/youll/be/all/like/that/url/is/too/long/anyway/so/go/away/noobtard ';
owa_util. REDIRECT_URL (l_redirect);

Yet once again, the doco let me down. The only explanation I have is that there is a layer of disinfection that past is undocumented and do not like long URLs. I had a problem with the fixing of the headers I posted under application server forums and got no useful answer, so I hope that someone can at least recognize it is a real problem and I'm not just crazy.

I guess the Base64 encoding can produce characters/bytes that are not legal in URLS, so you should URL-encodes the result?

utl_url.escape()

See the documentation of UTL_URL

Also, I did a little experiment and found that your problem is probably that utl_encode.text_encode actually produces 65 characters lines breaks during the encoding of long chains. Line breaks are definitely not allowed in the URL.

Edited by: TyskJohan on October 16, 2010 15:28

Tags: Database

Similar Questions

  • Dynamically set the Destination URL

    Hello

    I have to set Destination URL dynamically.

    return.setDestination("OA.jsp?page=/oracle/apps/pa/project/webui/HomePG");

    If (PageContext.GetParameter ("Return")! = null)
    {
    But when I clk on btn Im nt can access the home page.
    }

    If I use pagecontext. SetforwardURL() for the back than the URL of the page button cannot be changed is that the same page url rather than the URL of the home page, but the page navigates to the home page.

    Please help me...

    Thank you
    Nani :)

    Hello

    I created a button bean progrmatically.

    and put the url of destination dynamically by using this code... its works very well

    Button OAButtonBean = (OAButtonBean) createWebBean (pageContext, OAWebBeanConstants.BUTTON_BEAN, null, 'BUTTON');
    button.setText ("Test button");
    button.setDestination("OA.jsp?page=/oracle/apps/pa/projupdate/webui/ProjectListPG");
    webBean.addIndexedChild (button);

    Thank you
    Gerard

  • problem with authentication and owa_util.redirect_url

    Hi all

    This is Pavan using apex version 4.2.3

    I have different types of connections, as it is admin and a user depends on the user or admin it redirects to a particular page, I use this with the custom authentication method that I wrote a procedure to redirect to a specific page, I called this procedure in the authentication of message calls the procedure but is not redirect his login page on same as if I remove its validation of the user name and password and go on page 1,.

    I used this procedure

    procedure post_auth_4456789976 is

    Start

    declare

    Number V_PAGE;

    Start

    Select START_PAGE in V_PAGE of LOGIN_TAB where upper (USER_NAME) = upper(:APP_USER);

    owa_util. REDIRECT_URL ('f? p ='|: APP_ID |': ' |) V_PAGE |': ' | (: SESSION: ': ');

    exception

    while others then

    owa_util. REDIRECT_URL ('f? p ='|: APP_ID |) » : 2 :'|| (: SESSION);

    end;

    end;

    may I know don't know what exactly, is the problem am I miss anything or am I was wrong, let me know,.

    Click here for the link https://apex.oracle.com/pls/apex/htmldb/f?p=52985:LOGIN_DESKTOP:1110119686316

    Thanks in advance,

    Pavan

    Hi Pavan,

    the appeal written REDIRECT_URL 'place' redirects header, but the APEX motor wants to redirect. You can control where it redirects by setting the deep link in the authentication of message. Simply set the built-in element deep link, like this:

    :FSP_AFTER_LOGIN_URL := 'f?p='||:APP_ID||':'||V_PAGE||':'||:SESSION;
    

    Kind regards

    Christian

  • ColdFusion 9 is truncating my URL after the first parameter?

    Hello

    I'm under CF9 standard on a production environment. We had a disk crash this week and had to rebuild our server backup has been altered as well.

    I installed IIS and CF 9 and have a problem with the truncated strung query.

    These are short strings that were working before the crash

    It is initially mistakes as cold fusion pages are looking for values are not being provided to the pages.

    Here is an example of a URL that is truncated in the IIS log:

    164666 = redirectionNom - events.html &

    the correct url is redirectionNom = 164666 - events.html & id2 = 23456

    Note the ampersand when other data is added to the url.

    I have validated that it's the question of dumping on the values of the url and the CGI variables and compares it with the url in the address bar. We certainly lose things out of our URL.

    Is not very long query strings, so filtering applications should not stop them, and we do not get the expected 404 error, we would get if it was a problem of filtering application.

    I understand that there is a new feature added to the CF security limit the query string to 100 parameters.

    I do not think that this new feature we the problem. I've been programming CF from CF 3.0 and have never had a problem like this

    Do any one help please?

    Thanks in advance!

    Mark Mongeau

    So I fgured it from the trace. I had reviewed and compared the httpd.conf for ISAPI_REWRITE files but obviously this made while I was asleep. There was a ruke missing in the record of production where the screw to the top. Thanks for all your help!

    Mark

  • How to choose the destination URL

    In the dashboard page, I have a "link or Image Properties", destination, if I choose URL, how would I have it to point to the report? I understand when I choose "Ask or dashboard" I can navigate through the report and use the path, but how does the URL?

    Thank you.

    Hello

    If you will use the query or dashboard, then browse and select the report.
    If you use URL, then you must give the url under trajectory that will publish to correct... http://localhost:9704 / analytics.

    Example-
    What application or dashboard is selected then below us get/shared/sample sales/03 staging and Distribution of Distribution/comparison after that browse us and select the report.
    When the URL is selected then below we will give saw.dll? EditDashboard & _scid = NBBv * 2neHc8 & CheminPortail = / shared/Sample Sales / _portal / 03 26% Distribution & Page = 35 original Comparative Tiering which must be annexed to the http://localhost:9704/Analytics/when we click on the link in the dashboard.

    Kind regards
    Srikanth

  • URL of destination for a few lines (its Urgent)

    Hello world

    C1

    1

    0

    1

    0

    I want to set the destination url to lines whose values are 1.

    Please share your ideas on how to achieve this?

    Kind regards

    SoundariyaKumar.R

    You can use switch region to achieve this functionality.

    Oracle Applications Insight: OFA Switcher region: how to use it?

  • Why can't link external URL destinations created in Acrobat DC?

    You used to be able to use .pdf mydestination = #nameddest to post a link to named destinations defined in Acrobat but with Acrobat DC (12), I found that using destinations URL only brings you to the corresponding page and not the defined destination.

    It seems that this feature has been removed from the DC Acrobat, or y at - it another way to use a URL to direct people to specific parts of a pdf document hosted online (not pages)?

    I found no other discussions or threads (yet) that mention this omission so try to get confirmation if this is the case and if yes - why?

    See you soon

    daniellem64018250 wrote:

    Thanks, Yes by trial and error, I discovered that it works as long as web browser is supported by Adobe Plugin but Viewer PDF from Google Chrome does not work. I have found no discussions concerning the problem with Chrome since #nameddest 2013 and the place was supposed to be the new solution.

    Maybe Google's PDF Viewer does not support this.

  • How to display the font color in the URL for redirection in 4.2

    Hi team,

    In one of my process of pl/sql in the exception block I try to view the message in red, I did I tried in many ways to do it, but could not get it. Could someone help me on this please.

    Need to display "Hello" in red.

    owa_util.redirect_url('f?p=&APP_ID.:1:::NO:1:G_ERROR_MSG:Hello.');
    

    Kind regards

    Sruthitamiri

    Sruthi Tamiri wrote:

    Yes fac586, I've implemented using that thread, now I have made changes as suggested and now saw color, but I am facing problem as mention below

    1. initially when the page loads, it should not show any grey box, but by default, I am able to see gray box as shown below, after span style color applied as stated in point #2.

    2. the logic used in the page loading process

    1. BEGIN
    2. apex_application.g_notification: = '' |: g_error_msg | '';
    3. : G_ERROR_MSG: = null;
    4. IF (: p1_display_eid) IS NOT NULL
    5. THEN
    6. SELECT modified_date, modified_by
    7. IN: p1_modified_date: p1_modified_by
    8. OF the test
    9. WHERE engagement_id =: p1_display_eid;
    10. END IF;
    11. exception
    12. When no_data_found then
    13. HTP.init;
    14. owa_util. REDIRECT_URL ('f? p = & APP_ID.: 1:NO:1:G_ERROR_MSG: this record has been deleted.');
    15. END;

    3. when I used this thread in that they mentioned a point, I'm not clear on this, could you help me what to apply to the condition "subordinate this process to"g_error_msg", with a value non-zero.

    Create this process before Header on the page referenced in the URL by email:

    begin
    
      if :p1_display_eid is not null
      then
        select modified_date
        into :p1_modified_date
        from test
        where id = :p1_display_eid;
      end if;
    
    exception
    
      when no_data_found
      then
          apex_util.redirect_url('f?p=&APP_ID.:1:::NO:1:G_ERROR_MSG:This record is deleted.');
    
    end;
    

    And having this as a process before Header on the redirect page, a point value / Expression 1 Is NOT NULL column condition with Expression 1 on G_ERROR_MSG:

    apex_application.g_notification := '' || :g_error_msg || '';
    :g_error_msg := null;
    

    Probably, you should also include a value of specific request in the e-mail links so that their external origin are easily recognizable in the conditional processing and branching.

  • How to redirect the URL in block expection Apex 4.2

    Hi team,

    In our application, we wrote this logic as shown below

    Before the point of the process of the header: On Load before header.

    BEGIN
       IF (:p1_display_eid) IS NOT NULL
       THEN
          SELECT modified_date
            INTO :p1_modified_date
            FROM test
           WHERE id = :p1_display_eid;
       END IF;
    exception 
    when no_data_found then
    --Here i need to redirect URL to other screen 
    
    end;
    

    Kind regards

    Sruthitamiri

    Sruthi Tamiri wrote:

    In our application, we wrote this logic as shown below

    Before the point of the process of the header: On Load before header.

    1. BEGIN
    2. IF (: p1_display_eid) IS NOT NULL
    3. THEN
    4. SELECT modified_date
    5. IN: p1_modified_date
    6. OF the test
    7. WHERE ID =: p1_display_eid;
    8. END IF;
    9. exception
    10. When no_data_found then
    11. -Here, I need to redirect the URL to the other screen
    12. end;

    You can do it programmatically by using the owa_util.redirect_url method:

    BEGIN
    
      IF (:p1_display_eid) IS NOT NULL
      THEN
          SELECT modified_date
            INTO :p1_modified_date
            FROM test
          WHERE id = :p1_display_eid;
      END IF;
    
    exception
    
      when no_data_found
      then
          owa_util.redirect('');
          apex_application.stop_apex_engine();
    
    end;
    

    However I don't like the various side effects inherent in this code. It is not obvious to a developer looking at the page that executes a process will result in changing session state or the redirect to a different URL. It may involve additional database access, but I think I would prefer to implement this as a conditional branch by using a condition is no SQL, and a later calculation to set the value of the page...

  • What is the problem with this URL

    Can someone tell me what is the problem with this url
    owa_util.redirect_url(apex_util.prepare_url('f?p='||:APP_ID||':25:'||:APP_SESSION||'::'||:DEBUG||':25,28'||':P25_JOBID,P25_PG:&P3_JOBID.,3, null,||:APP_SESSION'));
    It gives me a value for P25_PG, that is to say 3 but always sets P25_JOBID to 0

    Gus

    Hello Gus,

    It looks like point P3_JOBID has no value for the rendering of the page.
    If the value is set subsequently, you can try the following change

    owa_util.redirect_url(apex_util.prepare_url('f?p='||:APP_ID||':25:'||:APP_SESSION||'::'||:DEBUG||':25,28'||':P25_JOBID,P25_PG:'||:P3_JOBID||',3, null,||:APP_SESSION'));
    

    But the part at the end

    ||',3, null,||:APP_SESSION'
    

    Wil do nothing because you give only 2 items in the list separated by commas of the page elements you want to submit. Everything after the second comma in the comma separated value list is of no use for the url of the apex.

    As additional info, the URL of the Apex is built like this:
    >
    1 - application ID or alias
    2 - page ID or Alias
    3 - session & SESSION. : APP_SESSION
    4. application (for example, PRINT_REPORT = REPORT_1) & ASK. : REQUEST
    5 - debug (YES or NO) & DEBUG. : DEBUG
    6 - cache framework

    APP - clear the cache for the entire application
    SESSION - clear the current user session cache
    PR - Reset pagination
    x - clear the page cache x
    -empty the cache for the element y

    7 - separated by a comma list of items on the page
    8 - the list of values separated by commas
    9 - mode printer friendly (YES or blank)

    f? p = & APP_ID.: 1010: & APP_SESSION. : & DEBUG. : RP, 1010:P1010_ITEM1, P1010_ITEM2, P1010_ITEM3:A, B, C
    >

    Kind regards
    Kees Vlek
    -----
    Company: http://www.orcado.nl
    Blog: http://www.orcado.nl/blog/blogger/listings/69-kvlek
    Twitter: http://www.twitter.com/skier66
    If the answer to question please change replied and mark the appropriate post as correct / helpful.

  • ASA IPS Signature unsuccessfully URL

    I want to update the signatures of ASA IPS by proxy. What are the destination URL I need to allow my proxy?

    I think www.cisco.com and dl.cisco.com should cover. The first has the metadata and the second is the source of the real signature files.

    Those are the two sites whose certificates in Cisco Security Manager, you must accept during the installation for the IPS signature updates.

  • ASA, blocking long URL access

    Hi Forum,

    I can't seem to find an answer to my ASA blocks access to long URL. below is the only http filtering configurations I can find on my firewall. What is the default settings? How can I activate it, y at - there a better way?

    I use ASA5500.

    Thank you very much

    Paul

    http-map inbound_http

    content-length min 100 max 2000 action open

    content-type-checking match-req-rsp action open

    allow the action header-MaxLength request 100

    Open the max-uri-length 100 action

    You have any filter http commands and orders url server configured? If so, there is an option to truncate long URLS.

    In addition, bugs seem to exist in the http inspection engine in versions after 7.1 (2). Try to disable the http inspection and see if the problem goes away.

    Andrew

  • Can I dynamically add string to goMenuItem destination?

    In my managedbean, I build the menu with a list of goMenuItem action. Each goMenuItem has a different destination.

    When the user clicks on the goMenuItem, I want to be able to add additional information to the destination URL and to open the URL in a new window.

    CAN/how can I do this? Any suggestions on the use of different components?

    Thank you.

    Michelle

    With the help of the forum, I am able to solve my problem.

    In my java code bean managed, rather than create a GoMenuItem with the URL, I created CommandMenuItem with action and the action listener.

                Class args = new class [] {ActionEvent.class};
                Class args2 [] = new class [] {};
                MethodExpression me =.
                    elFactory.createMethodExpression (elContext, "#{viewScope.FinderBean.appendSelectedPKs}", Object.class, args);
                MethodExpressionActionListener menuItemActionListener = new MethodExpressionActionListener (me);
    menuItem.addActionListener (menuItemActionListener);
    MethodExpression actionExp = elFactory.createMethodExpression (elContext, "#{viewScope.FinderBean.actionMenuClicked}", Object.class, args2);
    menuItem.setActionExpression (actionExp);

    appendSelectedPKs will add a string to the URL for this CommandMenuItem and call another method to open the URL in a new window.

    In this way, I'm kind of implement GoMenuItem with CommandMenuItem.

    I think that GoMenuItem should have actionListener, so the user can add an extra string the destination directly.

  • REDIRECT_URL doesn't work do not

    Hello

    I use APEX 4.2 with DB 11 g, I page include a dynamic action, what I have to do, is to go to a different page depending on the condition, I am writing this code in action dynamic pl/sql, but error pops up when I click the browser button "parsererror - syntaxError: invalid character ',

    I try IE, chrome, safari, the same question

    begin
    owa_util.redirect_url( 'http://www.google.com' );
    end;
    

    also I try apex_utility. REDIRECT_URL but same problem appear

    check your 84656 app works perfect for redirection

    only, I use process instead of dynamic action page...

    Go

  • Hypertext links to the URL changes when exporting to PDF

    I use InDesign CS6 to create a document with many links to URLS. I found that the conversion of INDD as PDF (Export to PDF) process is changing some special characters in the link, basically to break hyperlinks in the PDF file (for example, a symbol equation "=" AND the question mark symbol "?") BOTH converted to their html codes of character - 3D and % 3F, respectively - and the links are broken, "404 error".

    Process:

    1. Highlight the text you want
    2. Right click > interactive > new hyperlink
    3. Link to: URL
    4. Destination URL: paste the location of the link
    5. Apply the character style "hyperlink."
    6. File > Adobe PDF presets

    Summary of Adobe PDF presets:

    Description

    Pre-selection PDF: Adobe PDF Preset 1

    Compatibility: Acrobat 5 (PDF 1.4)

    Compliance with standards: no

    General

    Pages: all the

    Spreads: Off

    Generate thumbnails: Off

    Optimize the PDF: Off

    Create Acrobat layers: n/a

    Export of layers: visible and printable layers

    Include bookmarks: Off

    Include hypertext links: on

    Export nonprinting objects: Off

    Export the visible guides and baseline grids: Off

    Create the tagged PDF document: Off

    Interactive elements: exclude the

    Compression

    Color images

    Bicubic Downsample to: 300 dpi

    for the above images: 330 ppi

    Compression: ZIP

    Size: n/a

    Quality: 8 Bit

    Grayscale images

    Bicubic Downsample to: 300 dpi

    for the above images: 330 ppi

    Compression: ZIP

    Size: n/a

    Quality: 8 Bit

    Monochrome images

    No change sampling

    for the above images: 1800 DPI

    Compression: CCITT Group 4

    Compress text and line art: Off

    Crop the Image given to executives: on

    Marks and bleeds

    Crop marks: Off

    Brands of purge: Off

    Registration: Off

    Color bars: Off

    Information page: Off

    Brand page type: default

    Weight: 0,25 pt

    Offset: 0P6

    Use Document bleed settings: Off

    Top of purge: 0P0

    Bottom purge: 0P0

    Serving inside: 0P0

    Serving outside: 0P0

    Slug area: Off

    Output

    Color conversion: no color Conversion

    Destination: n/a

    Profile Inclusion policy: include tagged Source profiles

    Simulate overprinting: n/a

    Output Intent profile_name: n/a

    Output condition: n/a

    The identifier for the exit Condition: n/a

    Registry name: n/a

    Advanced

    Subset fonts below: 100%

    Omit PDF: Off

    Omit EPS: Off

    Omit Bitmap Images: Off

    Transparency flattening preset: n/a

    Ignore spread overrides: n/a

    Security

    N/A

    Caveats

    Just in case someone had the same problem, I've found a workaround.

    Using the links Panel, click on each link and manually change all characters who have converted characters html codes.

Maybe you are looking for

  • His problem with non-Toshiba laptop

    Hi, I just bought the 7.10.18 are now available for computers laptop toshiba-no, but feel what seems to be a bluetooth connection problem: when I play music or a bt transmitter connected to a stereo player or a motorola headset sound is interrupted d

  • Delay of Subscriber notification followed Winlogon 0x800705b4 after installing MS Office 2010

    My PC Windows 7 Professional x 64 now takes a long time to start. I see a screen "Configuring Updates" which remains at 0%, followed by "failed to configure. The logs show a second delay 300 as follows: -L' subscribed to winlogon notifications took 3

  • Need ink jet printer driver

    Just hung Vista 64 bit computer.  I need a (updated) driver for my printer HP inkjet Photosmart 1115. .drivers the original disk of the printer do not install it.

  • Z10 blackBerry I have a problem my z10 blackberry after os version 10.3.1.1779 update

    I have a problem after updating os version 10.2 to 10.3.1.1779 in my BlackBerry z10. I lost my entire data after the phone turns off and all settings are reset. Please someone help me solve this problem.

  • Flash Crash on all browsers

    Over the few days flash Crash on my laptop. Video does not work, the games will not work on sites like Youtube and Miniclip. I tried Google Chrome, IE and Firefox and flash crashes on the whole. This leads me to think that it is more than one system