GET makes ServletAuthentication.weak() fail

Hi,
I have a strange problem. I've written a servlet, which calls
ServletAuthentication.weak( ... ). My servlet implements both doGet and
doPost, where both methods call a handleRequest() method.
I've then made a FORM, where the user can write his username and password.
The FORM uses POST.
When I use the FORM, to access my servlet, it works. When i use GET, it
doesn't.
What's happening is, that the call to weak(...) calls up in the realm, but
the realm doesn't call the authenticate code on my implementation of
RDBMSRealm.
Hmmm .. does anybody know of any differences between GET and POST request,
with respect to authentication realm in WLS?
I'm using:
-WLS6.1
-RDBMSRealm
Any comments appreciated!
Regards, Per Olesen

Hi,
I have a strange problem. I've written a servlet, which calls
ServletAuthentication.weak( ... ). My servlet implements both doGet and
doPost, where both methods call a handleRequest() method.
I've then made a FORM, where the user can write his username and password.
The FORM uses POST.
When I use the FORM, to access my servlet, it works. When i use GET, it
doesn't.
What's happening is, that the call to weak(...) calls up in the realm, but
the realm doesn't call the authenticate code on my implementation of
RDBMSRealm.
Hmmm .. does anybody know of any differences between GET and POST request,
with respect to authentication realm in WLS?
I'm using:
-WLS6.1
-RDBMSRealm
Any comments appreciated!
Regards, Per Olesen

Similar Messages

  • Why can I no longer install iTunes updates on my computer? I keep getting messages saying it fails, and to do it manually, but then I get popups questioning whether I have the authority to make these changes. And it never updates.

    Why can I no longer install iTunes updates on my computer? I keep getting messages saying it fails, and to do it manually, but then I get popups questioning whether I have the authority to make these changes. And it never updates.

    Make sure you are running as the Administrator of the Account.
    Also...  See this User Tip by turingtest2
    Troubleshooting issues with iTunes for Windows updates

  • My ipad screen is locked in the itunes plug in screen and after numerous tries to update and or restore my ipad i get the back up failed cant restore screen  I want that itunes screen to go away so i can use my ipad  what do i need to do to make the

    ipad locked on itunes plug in screen.  i followed the instructions, plugging it into my laptop to backup and keep getting the back up failed message.  checked my itunes to make sure i had latest version.  Tried to backup and then restore, both failed.  How can i just get this screen off of my ipad and start using my ipad again?

    ipad locked on itunes plug in screen.  i followed the instructions, plugging it into my laptop to backup and keep getting the back up failed message.  checked my itunes to make sure i had latest version.  Tried to backup and then restore, both failed.  How can i just get this screen off of my ipad and start using my ipad again?

  • My 3gs wont restore after ios 5 update. I have tried firmware restore and restore from backup, neither works. All I get is "iphone restore failed because backup session failed" Any ideas on how to make a successful restore with this ios 5 update?

    My 3gs wont restore after ios 5 update. I have tried firmware restore and restore from backup, neither works. All I get is "iphone restore failed because backup session failed" Any ideas on how to make a successful restore with this ios 5 update?

    I was having the same problem, I backed up my phone and then updated to iOS 5 and then it kept telling me it could not restore from my backup as it had failed.  After reading a bunch of forums and posts and trying everything, I did manage to get it to work.  I had tried the Time zone, creating a new computer user account, disabling anti-virus, etc.
    It took a combination of things, one of which was disabling the anti-virus completely and copying the contents of the backup folder to my desktop and then deleting everything in the backup folder.  Then I rebooted the PC, entirely disabled the anti-virus, copied the one backup I wanted to restore from the desktop to the backup folder and then trying to restore.  Low and behold the phone said restoring from backup and I am back in business, so when in doubt, trying combining some of the fixes together.

  • How to use ServletAuthentication.weak(...)

    In order to have my application (behind a servlet) decide when to collect
    user credentials and when to login (authenticate), it appeared from the
    javadoc
    and from other postings and responses I've seen that I should be able to use
    the
    weblogic.servlet.security.ServletAuthentication class
    Well, I tried it last night and was sure it was working, but now the ONLY
    time it's returning AUTHENTICATED status is if I'm already logged in, via
    that browser/session using HTTP Basic Auth (I setup a security constraint
    for SnoopServlet that requires basic auth login, and I added the following
    code to a copy - SnoopServlet2 that does not require authentication (no
    security constraint)). Only if I login via basic auth for SnoopServlet can
    I then run SnoopServlet2 and have the below weak() authentication call
    succeed. If I start up a new browser (thus no authentication) and try
    SnoopServlet2 first I get FAILED_AUTHENTICATION every time,
    until I login via SnoopServlet (even via a different account) and then come
    back and try SnoopServlet2 with the below weak() call with either the same
    user as I used for SnoopServlet or a different user.
    Should I be able to programatically authenticate (and have the WebLogic
    session treat me as authenticated after that) like this or is that not
    supported?
    If it should work, what am I doing wrong? Do I need to call some other
    setup first if I'm programatically authenticating within a servlet that's
    not
    forcing authentication via security constraint? NOTE: I'm doing this
    through
    a caching realm which is using the WL6.0SP1 LDAP realm, which are working
    through HTTP Basic Auth for servlets with security constraints.
    // Call the password based (weak) authentication method
    int status =
    weblogic.servlet.security.ServletAuthentication.weak(user,pwd,
    req);
    switch (status) {
    case
    weblogic.servlet.security.ServletAuthentication.AUTHENTICATED:
    out.println("<h3>AUTHENTICATED</h3>");
    break;
    case
    weblogic.servlet.security.ServletAuthentication.FAILED_AUTHENTICATION:
    out.println("<h3>FAILED AUTHENTICATION</h3>");
    break;
    default:
    out.println("<h3>Unknown Authentication Status: " + status +
    "</h3>");
    Thanks,
    ..Mike
    [email protected]

    I believe I have this working better now (but could still use some info on
    whether
    this is a supported method of authenticating instead of using HTTP Basic
    Auth
    or Forms support, where my servlet authenticates a user based on info it
    retrieves
    and then that user (based on their WL authenticated session) is
    automatically
    authenticated for other servlets that are protected by security
    constraints... The
    javadoc says a bit about how to use this API, but not much about it's
    intended
    use, behavior, gotchas...
    Anyway, what I did to get it working (without previously having
    authenticated) was:
    weblogic.servlet.security.ServletAuthentication.weak(user,pwd,
    req.getSession(true));
    instead of:
    weblogic.servlet.security.ServletAuthentication.weak(user,pwd,
    req);
    It looks like the latter call (that I tried first) doesn't set up the
    session for you if
    you don't already have one... The first call above, makes sure you have a
    session
    and passes that in instead of the request.
    "Mike" <[email protected]> wrote in message
    news:[email protected]...
    In order to have my application (behind a servlet) decide when to collect
    user credentials and when to login (authenticate), it appeared from the
    javadoc
    and from other postings and responses I've seen that I should be able touse
    the
    weblogic.servlet.security.ServletAuthentication class
    Well, I tried it last night and was sure it was working, but now the ONLY
    time it's returning AUTHENTICATED status is if I'm already logged in, via
    that browser/session using HTTP Basic Auth (I setup a security constraint
    for SnoopServlet that requires basic auth login, and I added the following
    code to a copy - SnoopServlet2 that does not require authentication (no
    security constraint)). Only if I login via basic auth for SnoopServletcan
    I then run SnoopServlet2 and have the below weak() authentication call
    succeed. If I start up a new browser (thus no authentication) and try
    SnoopServlet2 first I get FAILED_AUTHENTICATION every time,
    until I login via SnoopServlet (even via a different account) and thencome
    back and try SnoopServlet2 with the below weak() call with either the same
    user as I used for SnoopServlet or a different user.
    Should I be able to programatically authenticate (and have the WebLogic
    session treat me as authenticated after that) like this or is that not
    supported?
    If it should work, what am I doing wrong? Do I need to call some other
    setup first if I'm programatically authenticating within a servlet that's
    not
    forcing authentication via security constraint? NOTE: I'm doing this
    through
    a caching realm which is using the WL6.0SP1 LDAP realm, which are working
    through HTTP Basic Auth for servlets with security constraints.
    // Call the password based (weak) authentication method
    int status =
    weblogic.servlet.security.ServletAuthentication.weak(user,pwd,
    req);
    switch (status) {
    case
    weblogic.servlet.security.ServletAuthentication.AUTHENTICATED:
    out.println("<h3>AUTHENTICATED</h3>");
    break;
    case
    weblogic.servlet.security.ServletAuthentication.FAILED_AUTHENTICATION:
    out.println("<h3>FAILED AUTHENTICATION</h3>");
    break;
    default:
    out.println("<h3>Unknown Authentication Status: " + status+
    "</h3>");
    Thanks,
    ..Mike
    [email protected]

  • I bought my iPhone 4 open line in Vancouver, Canada last week for use here in my home base in Bangkok, Thailand.  But when I tried using my Thai sim, I get a very weak signal, if not a weak signal, then a no service status.  What do I do?

    I bought my iPhone 4 open line in Vancouver, Canada last week for use here in my home base in Bangkok, Thailand.  But when I tried using my Thai sim, I get a very weak signal, if not a weak signal, then a no service status.  I also have very weak wifi reception.  What do I do?
    I already tried the following:
    a. Turned the phone off and then on.
    b. Checked all wifi connections – no problem given that all our laptops and desktops can connect seamlessly.
    c. I tried restoring the phone to original factory settings via itunes
    d. Tried resetting the phone.
    e.     Tried different microsims from all networks
    f. However, all methods failed given that the network reception is very weak and often reflects – “no service”.  And with regards to the wifi reception It has difficulty in reading even the signal right in front of the wifi router.
    I went to two Apple resellers here in Bangkok and requested that they please look at my Iphone and have it serviced.  I was frustrated when they said that given that I bought my phone in Canada, they are not able to support me and should instead try to contact the Apple store in Canada. 
    I went to apple.ca website and went to the expresslane support and I was said to register and callback.  Tried calling the 1800 number but given that I was in Thailand I had difficulty getting a connection.

    1st sentence, 4th page of the iPhone warranty found here:
    Apple may restrict service to the country where Apple or its
    Authorized Distributors originally sold the hardware product.
    From the Repair terms and conditions found here:
    9. Availability of Service.
    Apple may restrict service to the country where Apple or its authorized distributors originally sold the
    hardware product, and to the countries listed in the table below. A list of authorized distributors is
    available online at:
    http://images.apple.com/legal/warranty/docs/iPhoneAuthorizedDistributors.pdf
    If you do not believe that, then see these search results which confirm my statement.

  • How to make scheduled jobs Fail if the return partial results?

    How to make scheduled jobs Fail if the return partial results?
    Does anyone know if there is a way to do this?
    We have a number of reports that we schedule to various locations in Excel and PDF. We are frequently getting problems which are manifesting themselves as empty data providers and if we run them as Web Intelligence reports it says Partial Results. Re running the reports normally fixes the problem and returns the data correctly but the problem is that the scheduler reports them as successful and the emails or files get distributed (causing our customers to complain!!!).
    Currently using XIr2 +SAP integration Kit migrating to XI 3.1 in July 2009
    Any ideas/suggestion would be appreciated...
    I did find reference to the adapt case ADAPT01122128 which may help but when and if are unkowns so not much help.
    Ta
    Nick

    This may be helpful to some people:
    http://blogs.sun.com/milan/entry/using_web_service_to_send

  • When trying to update my CC apps, the update fails. I get this error: Update Failed. There was an error installing this update. Please try again later or connect customer support. This is currently happening for InDesign, Photoshop and Bridge. I had this

    When trying to update my CC apps, the update fails. I get this error: Update Failed. There was an error installing this update. Please try again later or connect customer support. This is currently happening for InDesign, Photoshop and Bridge. I had this problem previous and was able to fix by doing a complete wipe of my computer and reinstalling CC. However, I should not have to wipe my computer clean everytime I need to do a CC update. HELP!

    Hi,
    Please download the updates directly from the link below:
    WIN: All Adobe CC 2014 Updates: The Direct Download Links for Windows | ProDesignTools
    MAC: All Adobe CC 2014 Updates: The Direct Download Links for Mac OS | ProDesignTools
    Regards,
    Sheena

  • I was updated my Iphone 4s from computer(ITunes).ITunes get error and update failed.(When Iphone is preparing.).And now ı can't use my IPhone.At the screen there is a USB cable and up of the screen there is ITunes' logo.PLEASE HELP!

    I was updated my Iphone 4s from computer(ITunes).ITunes get error and update failed.(When Iphone is preparing.).And now ı can't use my IPhone.At the screen there is a USB cable and up of the screen there is ITunes' logo.PLEASE HELP!

    Read what i say. Put iPhone in DFU mode. Connect with USB cable and restore.
    Read:
    http://www.apple.com/support/iphone/assistant/restore/

  • I am unable to reinstall iTunes.  I get the message it was not installed correctly.  "Please reinstall itunes (Windows error 126)"  Also get "Apple Mobile Device failed to start.  Verify that you have sufficient privileges to start system services."

    I am unable to reinstall itunes.  I get the message that it was not installed correctly.  I HAVE DONE A SYSTEM RESTORE, I HAVE TRIED TO REINSTALL SEVERAL TIMES ALSO.  I get a error message that it's "Windows error 126".  Also get "Apple Mobile Device failed to start.  Verify that you have sufficient privileges to start system services." 
    Help!

    Click here and follow the instructions.
    (98993)

  • I get a "Short DST" failed error when running test. Laptop will not boot up. Any ideas?

    I get a Short DST failed error when I ran a test.  The laptop won't bootup. All I get is a black screen

    Hi,
    Certainly, the error code will be a Smart or Disk Self Test failure - in either case, it would indicate that the Hard Drive is failing and needs to be replaced.  This is also consistent with the start-up issue.
    One possible way to try and retrieve your files from a non-booting drive is to follow the process detailed in the link below.  The Ubuntu operating system CD you create can run from the CD alone ( ie it doesn't have to install on the Hard Drive ) and I've often found it to be successful in retrieving data even from a failing Hard Drive.  When you've created the CD, follow the instructions and see if you can back up your existing files. 

  • Why can't I sign in? I get an "Ajax submit failed: error =403, Forbidden" error message

    Why can I no longer sign in to ePrint Center?
    I get an "Ajax submit failed: error =403, Forbidden" error message -- MAC OS 10.7, D110a printer.

    Here you go.
    http://www.google.com/search?q=Ajax+submit+failed%​3A+error+%3D403%2C+Forbidden&sourceid=ie7&rls=com.​...
    Say thanks by clicking the Kudos Thumbs Up to the right in the post.
    If my post resolved your problem, please mark it as an Accepted Solution ...
    I worked for HP but now I'm retired!

  • I'm trying to load my newspaper and I keep getting the error message Failed to Load Kiosk, I've done a restore but no joy - any ideas?

    I keep getting the error message Failed to load kiosk when trying to upload my copy of the Times, I have done a restore but that hasn't worked - any ideas how to get the kiosk back and functioning again? All software is up to date.
    many thanks

    Hello, anabelleho. 
    Thank you for visiting Apple Support Communities.
    Here is a troubleshooting article that I would recommend going through when experiencing this issue.
    Apple computers: Troubleshooting issues with video on internal or external displays
    http://support.apple.com/kb/ht1573
    Cheers,
    Jason H.

  • When I start up FCPX 10.0.1, I get the following message "Failed to save. Unknown store type, format, or version."

    When I start up FCPX 10.0.1, I get the following message "Failed to save. Unknown store type, format, or version."

    Thanks, Andy. I checked, and it is formatted "Mac OS Extended (Journaled)".
    Michael

  • Getting error "The request failed with HTTP status 401: Unauthorized " for _vti_bin/Authentication.asmx

    Hi All,
    My Web application is FBA application and I am using the lists.asmx services in my custom webpart. To run this lists.asmx service in FBA enabled site we need to use Authentication.asmx service..
    I referred this link:
    http://social.msdn.microsoft.com/Forums/en-US/sharepointdevelopment/thread/21867e28-75d5-42c8-850b-bfb5c5894eed .
    I wrote a code as mentioned in this article but now I am getting  error "The request failed with HTTP status 401: Unauthorized " for Authentication.asmx service itself. Can somebody help me why it is not working even everything looks
    correct?
    Thank you.
    Regards,
    Rahul Shinde.

    Hi Rahul,
    Give permissions to the user on the web application.
    Central Admin -->Application Management --> Application Security -->Policy for web application --> Select the
    web application --> Add User
    For more information, refer to
    http://microsoftdev.blogspot.com/2009/10/sharepoint-web-services-access-give.html
    http://www.codeproject.com/Articles/24244/Access-a-Forms-Based-SharePoint-Site-s-Web-Service
    Best Regards.
    Kelly Chen
    TechNet Community Support

Maybe you are looking for

  • Mail message telling me 'home directory is full'????

    Hello There, I have been happily using mail (with a gmail email account) for about a week now, but today I received a message and when I went to reply I get a message "Mail cannot update your mailboxes because you home directory is full" It then tell

  • Playing Movies in JAVA

    Hey all, This is a quick question: I want to play a movie in an app I am making, I was wondering what classes I should research that I would use to accomplish this goal. I've obviously not done this before, Thanx, Kngus

  • ASKB issue

    Hi Gurus, problem with fixed asset & depreciation accounts .actually upto september of 2009 the depreciation and ASKB have been done, we could not use some of our transactions related with fixed assets & depreciations for the last two months since ou

  • GMAIL Problems with Iphone

    I keep getting an error that says gmail cannot get mail because username and password not accepted. However I do get my email about 50% of the time, I seem to get that error whenever I have only 1-2 bars. Whenever I am home on my wi-fi network I get

  • Setting a user defined variable at topic level?

    RH8 HTML I want 2 topics to use the same snippet, in this snippet are several variables, and I want to set these variables at the topic level. Because these topics carry the same information, accept for some very minor thing, i.e button names and a s