AFCS.java doesn't handle the http redirect request

Hi AFCS team,
     I just tried out the java script for external authentication. By default, when calling new AFCS.AccountManager(accountURL);, I'll get an error like the following:
"GET http://connectnow.acrobat.com/myaccount?mode=xml&accountonly=true& failed with status 302";
     Actually this url will be redirected to "https://na2.connectnow.acrobat.com/myaccount?mode=xml&accountonly=true&" for me.
     However,  the script handles the http response only when status=200, or it consider the status as error.
     So I added following code to http_get()/http_post(), everything goes well so far.
            if (responseCode == 200) {
                return connection.getInputStream();
            // handle the redirect status
            else if (responseCode == 302) {
                return http_get(connection.getHeaderField("Location"), headers);
            else {
               throw new Error();
     Is it something need to be fixed in next release?
Thanks!
Jinni

So, the code was there a couple of releases ago, and then I took it out because I noticed that the lower level API were already processing redirections (but at this point I don't know on which case)
I'll do some more testing and if needed add the code back. Thanks for pointing it out!

Similar Messages

  • Java socket not handling the data packets properly

    I have created a small webserver application where i am receiving http requests from a siebel client. I am using content-length parameter to read the complete data in a buffer string using the command inputstreamreader.read. It works fine in all the cases, except when its used with a firewall. Some times the firewall splits a message into 2 and my logic fails as it doesn't find as many characters in the first packet as mentioned in the content length.
    My question is , how can i take care of these scenarios where a firewall is splitting the messages into multiple packets. why the java socket class is not handling the merging of these packets?
    any pointers are welcome.
    thanks

    Because that's the way TCP/IP works. read() gives you the data it can, and tells you how much was actually read. It's up to the application to reconstruct the application-level object. You could do something like this:    byte[] content = new byte[contentLen];
        int offset = 0;
        int remaining = contentLen;
        int currBytesRead = 0;
        while (remaining > 0 && currBytesRead != -1) {
          int currBytesRead = mySocketInputStream.read(content, offset, remaining);
          remaining -= currBytesRead;
          offset += currBytesRead;
        } (Warning: that's off the top of my head, uncompiled and untested. Use for demonstration purposes only!)
    Grant

  • Firefox 9 doesn't handle the css font stack properly

    The style body{font:13px/1.231 arial,helvetica,sans-serif;*font-size:small;*font:x-small} should cause the browser to work through the stack and use sans-serif if arial and helvetica are not available. This is how it worked in Firefox 8 and how it works in other browsers.
    With Firefox 9 if the first font is unavailable it just substitues one of it's own instead.
    If I remove arial and helvetica from the list then FF9 uses the system sans-serif as it should.
    I would paste in some sample code, but this forum doesn't seem to support code snippets.

    The css in the blogpost http://krakrjak.blogspot.com/2012/01/firefox-901-font-css-bug.html is wrong, and that is why this does not work in Firefox. To access a class you must use the class selector (a dot). For example: .p-inner p { }<br>
    You can go to Mozilla Developer Network to learn CSS.<br>
    https://developer.mozilla.org/en-US/learn/css<br>

  • The attempt to contact Autodiscover using the HTTP Redirect method failed. Exchange 2007 to Office 365 Cutover Mirgation

    I am getting the following error message shown below. Wondering if i could get some help on how to resolve this issue.

    My understanding is that the only way to resolve this issue is to install an Exchange 2010 or 2013 server in your on-premises organization and configure that as a hybrid server.  Once you configure your Autodiscover record to point to the Office 365
    hostname as shown in "domains", this should no longer be an issue.
    Ed Crowley MVP "There are seldom good technological solutions to behavioral problems."

  • SharePoint public facing site does not open in sharepoint designer after giving http redirect in IIS

    I have a public facing sharepoint site
    We gave http redirect in IIS due to which I am unable to open the site in SharePoint Designer and gives error message site not found in webserver.
    If i revert back the settings (remove the http redirect link) i m able to open the site in designer.Please let me know how can I resolve the issue in opening site in SharePoint designer after http redirect setting done in IIS

    Looks like an AAM issue. What URL of the site you are trying to open with designer and what are your AAM settings?
    Ronald Bruinsma - Independent SharePoint Consultant - iDocs.info - The Netherlands
    Ronald I got the same issue here is my info:
    sharepoint site: http://<servername>/sites/mycompany
    <ServerIP>
    Default
    http://servername
    <Servername>
    Default
    http://servername
    http://contoso.mycompany.com
    Extranet
    http://contoso.mycompany.com
    In IIS webapp 80. http redirect:
    redirect requests to this destination is checked: http://contoso.mycompany.com/sites/mycompany
    can you help me? thanks

  • HTTP Redirect not working as inteded

    We went live with a new website on a new domain yesterday. The plan was to redirect traffic to the new domain. When you enter olddomain.org, it redirects you properly to newdomain.com as it should.I work for financial institution that uses online banking. The URL for our online banking system has been changed as well. We had an SSL certificate setup on onlinebanking.olddomain.org. My coworker setup a new SSL certificate on IIS for onlinebanking.newdomain.com. Once the site change was made I applied the new certificate to the new site and everything worked properly. However users that bookmarked onlinebanking.olddomain.org are receiving certificate errors since the cert has been applied to the new domain.So I setup a HTTP redirect to redirect onlinebanking.olddomain.org to newdomain.com. The HTTP redirect works fine when you manually...
    This topic first appeared in the Spiceworks Community

    Here is the response I received for others who come across this or have a similar issue in the future:
    When you open it with the URL ending in the '/', the two dot, '..', takes the browser, top one level from the current directory which is 'month-1' and looks for the 'res' directory in 'examples' directory. Where as, when you open the URL not ending in '/', it again takes the browser, top one level starting from the current directory which is 'examples' and looks for the 'res' directory on the
    root and since it does not exist over there, thus it displays the page with errors.

  • Server load balancing on Local Director implementing HTTP redirection

    Hi, got an interesting problem when implementing the HTTP redirection method of session persistance or stickiness when balancing a couple of web servers on a Local Director 416. The session persistance works fine but it looks like one of the two servers is getting all the traffic rather than balancing accross the two. The servers are equally spec'd and when it comes to the predictor setting for the virtual, I'm just using the defaults i.e. leastconns/roundrobin. Is there a better predictor setting to use?? Any input would be appreciated.
    Rgds
    Adam Lacoba

    The “loaded” argument has worked well. Take note that this requires a value to be set with the “weight” command. It gives a specific amount of traffic to one, and then moves to the other.

  • ASA - HTTP Redirect

    Hi there
    Does the "HTTP redirect" feture on the ASA just redirect http to https for traffic connecting to an interface?
    Or does this feture redirect http to https for all http traffic that flows through the ASA?
    Cheers
    Tim

    Just HTTP traffic destined to the interface of the ASA.
    Hope that helps.

  • IP Phone is not executing my HTTP redirect

    I have developed a Contact Center app running as a XML services on the IP Phone. Sometimes I'm pushing a packet to the phones (7941/61) containing a HTTP Redirect and the phone is not doing the HTTP GET to the redirected URL. It works OK and then stop executing the HTTP redirect without any notice.
    Any thoughts?

    I don't have that information handy at this point. I would recommend trying the latest phone load. If you are already on latest, go back 1-2 versions.

  • Clean Access HTTP redirect wrong after IP address change

    Hi,
    Wondered if anyone had seen this:
    We have a Clean Access server running in VGW mode for VPN traffic, after a redesign the IP address has changed (the trusted and untrusted are the same).
    Unfortunately when a user logs in it still uses the old IP address in the HTTP redirect, this has been confirmed by looking at the HTML source.
    Apart from that it looks fine, new SSL certificate etc.
    Any ideas apopreciated, thanks.
    Jim.

    For all deployments, if planning to configure the Clean Access Server in Virtual Gateway mode (IB or OOB), do not connect the untrusted interface (eth1) of the standalone CAS or HA-Primary CAS until after you have added the CAS to the CAM from the web admin console. For Virtual Gateway HA-CAS pairs, also do not connect the eth1 interface of the HA-Secondary CAS until after HA configuration is fully complete. Keeping the eth1 interface connected while performing initial installation and configuration of the CAS for Virtual Gateway mode can result in network connectivity issues.
    When setting up a CAS in Virtual Gateway mode, you specify the same IP address for the trusted (eth0) and untrusted (eth1) network interfaces during the initial installation of the CAS via CLI. At this point in the installation, the CAS does not recognize that it is a Virtual Gateway. It will attempt to connect to the network using both interfaces, causing collisions and possible port disabling by the switch. Disconnecting the untrusted interface until after adding the CAS to the CAM in Virtual Gateway mode prevents these connectivity issues. Once the CAS has been added to the CAM in Virtual Gateway mode, you can reconnect the untrusted interface.
    Administrators must use the procedure mentioned in the below URL for correct configuration of a Virtual Gateway Central Deployment:
    http://www.cisco.com/en/US/docs/security/nac/appliance/configuration_guide/418/cas/s_instal.html#wp1045874

  • Block HTTP Options request in DBMS_EPG

    We are having some trouble opening HTML pages from Office tools in combination with the Embedded PL/SQL Gateway on a Oracle 11g database.
    When we open a public Apex page from word or Excel it will prompt for XDB username / password.
    We open the page like this: http://epg-host:8080/apex/f?p=111:1
    When we open the same page from the same Apex application using the Oracle HTTP Server instead of the Embedded PL/SQL Gateway, Word and Excel won't prompt for a username and password.
    I used Wireshark to see the difference in HTTP traffic. Microsoft Office will do a HTTP Options request on the "directory" of the page (for the url http://epg-host:8080/apex) before opening the page. The HTTP Options request results Error 401 Unauthorized, that’s why Word/Excel ask the user to login.
    With a HTTP Send Tool I have send the Options Request to the Embedded PL/SQL Gateway and to the Oracle HTTP Server, these are the different responses:
    Options for http://epg-host:8080/apex/
    The remote server returned an error: (401) Unauthorized.
    MS-Author-Via     DAV
    DAV     1,2,<http://www.oracle.com/xdb/webdav/props>
    Content-Length     147
    Content-Type     text/html; charset=UTF-8
    Date     Thu, 10 Nov 2011 10:05:56 GMT
    Server     Oracle XML DB/Oracle Database
    WWW-Authenticate     Basic realm="XDB"
    <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
    <HTML><HEAD>
    <TITLE>401 Unauthorized</TITLE>
    </HEAD><BODY><H1>Unauthorized</H1>
    </BODY></HTML>Options for http://apache-host:7778/apex/
    The remote server returned an error: (501) Not Implemented.
    Allow     
    Connection     close
    Content-Length     252
    Content-Type     text/html; charset=iso-8859-1
    Date     Thu, 10 Nov 2011 10:15:44 GMT
    Server     Oracle-Application-Server-11g
    <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
    <html><head>
    <title>501 Method Not Implemented</title>
    </head><body>
    <h1>Method Not Implemented</h1>
    <p>The server does not support the functionality required to fulfil the request.</p>
    </body></html>I do not really understand why the Options Request results in Unauthorized. I would like to change the behavior of the Embedded PL/SQL Gateway so that it does not throw the "Unauthorized" error. Any other error would be good, but Unauthorized results in a Login prompt.
    Does anyone know how to configure the Embedded PL/SQL Gateway so it will not result in the unauthorized error? It doesn’t matter if I have to block the Options requests or grant extra authorization.

    Thanks for your reply. When we open the page in the browser we do not get the Login-prompt, the allow-repository-anonymous-access is already set to true.
    The login-prompt only occurs when we open the page from Word/Excel, that's when the HTTP-Options request is send.
    Opening an Apex page in the browser only results in a HTTP-Get request, Word/Excel will send HTTP-Options followed by the HTTP-Get request.

  • Http Active requests not balanced across OAS Farm

    Hi,
    i have a Farm with 4 OAS , repository file based and 10.1.2 OAS version.
    The Http active request it's very different along the 4 nodes. In two nodes i have more than 2000 respectively and in the others only 40.
    The http active connections it's very different too in 150 to 45.
    Otherwise, the throughput it's similar in all 4 nodes, total Requests Processed Since Startup it's similar too and
    conenctions to database are balanced from the 4 nodes.
    What happen?
    Thanks and best regards.
    Fran

    Hello Shail,
    thanks to reply.
    I add my mod_oc4j.conf file (it's for the node that have high connectons), i hope can help. NO dcm cluster in the farm.
    I have all the 4 OHS enabled behind a ACE Cisco with Round Robin (with exception that the same IP it's routed to the same OAS ).
    # Oracle iAS mod_oc4j configuration file: mod_oc4j.conf #
    LoadModule oc4j_module libexec/mod_oc4j.so
    <IfModule mod_oc4j.c>
    <LocationMatch "/j2ee/.*/Spy">
    Order deny,allow
    Deny from all
    </LocationMatch>
    <LocationMatch "/j2ee/.*/AggreSpy">
    Order deny,allow
    Deny from all
    </LocationMatch>
    <Location /oc4j-service>
    SetHandler oc4j-service-handler
    Order deny,allow
    Deny from all
    Allow from localhost solaris.xxx.es solaris1
    </Location>
    Oc4jSelectMethod roundrobin:local
    Oc4jMount /j2ee/*
    Oc4jMount /reports OC4J_BI_Forms
    Oc4jMount /reports/* OC4J_BI_Forms
    Oc4jMount /repdemo OC4J_BI_Forms
    Oc4jMount /repdemo/* OC4J_BI_Forms
    Oc4jMount /webapp home
    Oc4jMount /webapp/* home
    Oc4jMount /IsWebCacheWorking home
    Oc4jMount /IsWebCacheWorking/* home
    Oc4jMount /WebService Administracion
    </IfModule>
    Thanks and regards.
    Fran.

  • ACE http probe "request method type" mandatory on A3(2.6)?

    Hi people,
    I recently upgraded to A3(2.6) from A3(2.0) and I don't see the N/A option on the http probe "request method type".
    It also has an asterisk * which means it's mandatory.
    I tried to set up a new http probe for another farm I am creating and the probe shows status failed, although I can ping and telnet to the http server on port 80 from the ACE context. My probe is like that:
    probe http http_probe_WWW
      interval 15
      passdetect interval 60
      expect status 200 200
      open 10
    My other http probes for other farms work ok after the upgrade and they are similar.
    So my question is: Do I need to set the request method type or something else causes the probe to fail?
    thanks a lot.
    George

    What you see is a problem with the GUI.
    CSCtg78008    while creating http probe default method slected should be get as in CLI
    But the request-method is not required.
    So your config should work.
    Do a 'show probe detail' to see the failure reason.
    Get a sniffer trace as well.
    Regards,
    Gilles.

  • HTTP web request error (Web exception for remote server)

    To whom it may concern,
    I have recently applied a few patches for my client's server for IE9 but then one application starts to malfunction right after upgrade return successful. The program affected is CyberTech player which make use of Microsoft Silverlight. 
    My client currently uses Wind 2008 R2 x64, patches applied are below:
    MS13-009-IE9-Windows6.1-KB2792100-x64
    MS13-010_IE9-Windows6.1-KB2797052-x64-sp1
    MS13-021_IE9-Windows6.1-KB2809289-x64
    MS13-028IE9-Windows6.1-KB2817183-x64
    MS13-037_IE9-Windows6.1-KB2829530-x64
    MS13-038_IE9-Windows6.1-KB2847204-x64
    MS13-047_IE9-Windows6.1-KB2838727-x64
    MS13-069_IE9-Windows6.1-KB2870699-x64
    Please let me now if any further information is needed.
    Your prompt response will be much appreciated.

    Hi,
    Based on your description, I would like to suggest you try to uninstall and reinstall the latest version of Microsoft Silverlight.
    http://www.microsoft.com/silverlight/
    I also would like to suggest you update the CyberTech player so that it can be compatible with this update.
    Meanwhile, the http web request error was caused by IE itself:
    1. Improperly install or configure updates
    2. Security website authentications issue
    3. IE settings
    You may try the following steps to check the issue:
    1. Run IE with no add-ons. Click Start -> All Programs -> Accessories -> System Tools -> Internet Explorer (with no add-ons). 
    2. Try to use compatibility mode (go to tools --> Compatibility View Settings) to check the issue.
    For further research, it would be kind of you to capture a screenshot of the error page.
    Hope it helps.
    Regards,
    Blair Deng
    Blair Deng
    TechNet Community Support

  • Extract Portal User Name From HTTP POST Request (WSRP SOAP)

    How can we extract the user name from the HTTP POST Request (*WSRP SOAP*) from the Portal to the Portlet Provider (Producer)?
    We are load balancing between the Portal (10.1.14.2) and the providers (OC4J 10.1.3.3) and would like to extract the user name within the load balancer so we can create session affinity based on it.
    BTW, we already tried using TCP Flow but were unable to see the user name.

    From the documentation, it seems that you need to use
    HttpURLConnection.setRequestMethod("POST"); // "GET" is the defaultalthough I have seen examples on the web without it.
    Try!
    Edit: Also the single quotes around userid and password may be a problem.
    Use the previous poster suggestion, but do not include the single quotes.
    Edited by: baftos on Aug 6, 2008 4:27 PM

Maybe you are looking for

  • Speed of FW800 4-pin to 9-pin

    Hi! i'm wondering if i should buy a 4-pin to 9-pin cable to get the footage off my camcorder onto computer. or save the 9-pin port for something that will definitively run at around FW800 speeds and just buy a 4-pin to 6-pin cable. so my question is

  • BT "Fixed" my connection now it's 25% slower

    I'm sure I'm not the first and won't be the last to have this issue. I had a problem with my connection where the speed dropped to around 0.3 to 0.5 Mb. Before my issues my connection speed was around 3.2-3.3Mb. Now my speed never goes above 2.36Mb.

  • How do I delete remembered user names that are outdated or no longer in use?

    I have developed a long list of user names that pop up and are no longer in use when I go to sign into a web site. As the list gets longer I would like to have only the user names that are up to date and in use. I have not figured how to manage user

  • Mock exams for Oracle EJB cerficication (CX-310-093)?

    Hello, Can you please help me by posting existing commercial or free mock exams for CX-310-093? The full name of the certification is: Oracle Certified Expert, Java Platform, Enterprise Edition 6 Enterprise JavaBeans Developer Thanks

  • Servers down????

    Hi Adobe, Servers appear to be down and I havent seen any notification for this. Can you please let us know when the service will be back up. We are in a tight deadline to go live today.