Big authentication problem: not being redirected to the login page

Hello, everybody!
I've just noticed a big problem in the web application I'm developing. In this
application I'm using the FORM authentication method as you can see below in the
web.xml file:
  <security-constraint>
     <web-resource-collection>
            <web-resource-name>permitido</web-resource-name>
            <url-pattern>/*</url-pattern>
       </web-resource-collection>
       <user-data-constraint>
            <transport-guarantee>NONE</transport-guarantee>
       </user-data-constraint>
  </security-constraint>
  <security-constraint>
       <web-resource-collection>
            <web-resource-name>restrito</web-resource-name>
            <url-pattern>/confirmacaoreserva.jsp</url-pattern>
            <url-pattern>/confirmacaoreserva.faces</url-pattern>
            <url-pattern>/reservaconfirmada.jsp</url-pattern>
            <url-pattern>/reservaconfirmada.faces</url-pattern>
       </web-resource-collection>
       <auth-constraint>
            <role-name>ADMINISTRADOR</role-name>
            <role-name>USUARIO</role-name>
       </auth-constraint>
       <user-data-constraint>
            <transport-guarantee>NONE</transport-guarantee>
       </user-data-constraint>
  </security-constraint>
  <login-config>
       <auth-method>FORM</auth-method>
       <form-login-config>
          <form-login-page>/login.jsp</form-login-page>
            <form-error-page>/errologin.jsp</form-error-page>
       </form-login-config>
  </login-config>
  <security-role>
       <role-name>ADMINISTRADOR</role-name>
  </security-role>
  <security-role>
       <role-name>USUARIO</role-name>
  </security-role>If I type in the browser's address field any of the protected pages,
confirmacaoreserva.faces or reservaconfirmada.faces, the web container redirects
me to the login page as expected, as I was'n authenticated yet. Until till
this point everything is working without problem. But I noticed, to my surprise,
that when I click on a link in a web page like this:
<h:commandLink value="#{msg.reservar}" action="#{materiais.reservarMaterial}">
    <f:setPropertyActionListener target="#{materiais.codigoMaterial}" value="#{material.codigo}" />
</h:commandLink>
// in the backing bean
public String reservarMaterial()
    // some processing...
    return "confirmacaoReserva";
// in faces-config.xml
<navigation-rule>
    <navigation-case>
        <from-outcome>confirmacaoReserva</from-outcome>
        <to-view-id>/confirmacaoreserva.jsp</to-view-id>
    </navigation-case>
</navigation-rule>it completely by-passes the web container authentication and redirects me to the
protected page (+confirmacaoreserva+) without asking me first to authenticate in
the login page. Of course this is unacceptable.
So, how can I solve this? How do I fix this problem?
Thank you.
Marcos

Marcos_AntonioPS wrote:
BalusC wrote:
Which appserver implementation/version are you using?JBoss 4.2.3.GAOK.
Which JSF implementation/version are you using?The default JSF implementation that comes with JBoss 4.2.3.GAWhich one? Read the manifest file of the JSF implementation JAR.
Does it work if you redirect instead of forward in the navigation case (just add <redirect />) ?I haven't tested yetAnd?

Similar Messages

  • Not able to get the login page after installing 12.1.1

    HI,
    i am not able to get the login page after installing in the 12.1.1. when i accessed from client machineo.Please help me in fixing out this problem.
    Thanks,
    venkat.

    Hi,
    What is the OS?
    What is the error message?
    Any errors in Apache/Database log files?
    Thanks,
    Hussein

  • Java displays not being redirected to the DISPLAY environment variable

    I am running Solaris 8 and am using java se 1.4.1.
    I have a java application that is running in the background on BOX 1. It needs to use the JOptionPane.showmessage() function.
    When I remote onto Box 1 from Box 2, and run the java application, the message boxes from the JOptionPane.showmessage() are displayed on Box 1 instead of getting redirected to box 2. I know that the display setting are ok, since I can start other applications and get the displays sent to box 2.
    Is this a java bug?
    thanks
    Ben

    Hi Balus,
    Thank you for your reply, yes the response is absolutely empty just an empty page like:
    <html><body></body></html>In the logs I can see the normal trace about the error but nothing else.
    I found a "solution" that is working fine but I'm not sure if is the best to do, basically
    I'm throwing again the ServletException generated in the JSP an then is working:
    void autoForward(String forwardTo, HttpServletRequest request,
                HttpServletResponse response, ServletContext servContext,int errorCode)
                throws ServletException {
            try {
                addErrors(request,errorCode);
                RequestDispatcher dispatcher = servContext.getRequestDispatcher(forwardTo);
                dispatcher.forward(request, response);
            } catch (ServletException ex) {
                throw new ServletException(ExceptionUtils.getRootCause(ex));

  • When I connect to the hotel wireless, it takes 2 or 3 minutes to be redirected to the login page

    Hi all,
    I have a problem with my Firefox 4 beta: when I connect to the hotel wireless, and I start the browser, I should be automatically redirected to the hotel's main login page.
    In FF4b I get 2 error messages (attached) and I am not redirected immediately... it takes 2 or 3 minutes to be redirected.
    If I don't want to wait I have to start IE, make the login, and then get back to FF4b.
    I believe this situation is connected with the "Test Pilot" and/or the "sync" function of FF...
    Any ideas about what I should do? Any setting I should change?
    Thanks,
    Tozé
    Link to error messages:
    [http://dl.dropbox.com/u/12096987/FF4b_Error1.jpg Error message #1]
    [http://dl.dropbox.com/u/12096987/FF4b_Error2.jpg Error message #2]

    Hi Prakashkarthikeyan,
    If you are having an issue with your cellular data connection not linking up properly, I would suggest that you troubleshoot using the steps in this article - 
    iPhone cellular data connection issues
    Thanks for using Apple Support Communities.
    Best,
    Brett L 

  • Redirecting user to login page after session expiry

    Hi,
    Default session expiry implementation in sap EP6.0 doesn't work properly. To overcome this, we have implemented one component where we check the idle time and throw the user back to the login page if the idle time has exceeded the session expiry period. This component has been added to desktop inner page as an iView. Following is the logic put in this component.
    IAuthentication ia = UMFactory.getAuthenticator();
    ia.logout(httpRequest, httpResponse);
    httpResponse.sendRedirect("/irj/portal");
    We are successfully getting the login page after session expiry. Issue is, our portal server is running on 11111 port. We cannot change this to 80 on unix because of unix limitations for the port number. So we have put one apache web server before our portal server. Apache web server is listening on port 80 and forwarding the request to our portal server.
    Now when user is redirected to the login page, url being shown in the browser is http://<host_name>:11111/irj/portal but I am expecting http://<host_name>/irj/portal (without port). I have tried putting the full url in sendRedirect() method but that too doesn't work.
    Any help is highly appreciated.
    Regards,
    Chandra

    Hi Chandra,
    Let the URL be relative in the sendRedirect i.e.
    httpResponse.sendRedirect("/irj/portal");
    However since you have a Reverse proxy in front, the response header for redirect will not contain the address of the reverse proxy in this case, your servername without port. You have to properly configure your reverse proxy so that the HTTP Headers are changed properly before sending the response to the users.
    Check this URL,
    http://httpd.apache.org/docs/1.3/mod/mod_proxy.html#proxypassreverse
    This gives you the details on configuring your apache.
    Hope this helps.
    Ankur
    P.S. If this helps please reward points.

  • Login error in the login page ...

    Hi all,
    I have a few applications in my work space but one of the application I can not run, when try to run getting this error message -
    ORA-06550: line 1, column 10: PLS-00201: identifier 'RATIS_USER.IS_ADMIN' must be declared ORA-06550: line 1, >column 7: PL/SQL: Statement ignoredIn the debug section, it shows the following -
    0.02:0.02: S H O W: application="37206" page="101" workspace="" request="" session="3410044959524885"
    0.03: alter session set nls_language="ENGLISH"
    0.03: alter session set nls_territory="UNITED KINGDOM"
    0.03: NLS: CSV charset=WE8MSWIN1252
    0.03: ...NLS: Set Decimal separator="."
    0.03: ...NLS: Set NLS Group separator=","
    0.03: ...NLS: Set date format="DD-MON-RR"
    0.03: ...Setting session time_zone to -05:00
    0.03: NLS: Language=en-gb
    0.03: Application 37206, Authentication: CUSTOM2, Page Template: 5425767280642058915
    0.03: ...Session ID 3410044959524885 can be used
    0.03: ...New Instance Detected - :4500:4350:4000:50843
    0.03: ...Application session: 3410044959524885, user=TAJUDDIN335
    0.03: ...Determine if user "TAJUDDIN335" workspace "2617034107818392993" can develop application "37206" in workspace "2617034107818392993"
    0.03: Session: Fetch session header information
    0.03: ...Metadata: Fetch page attributes for application 37206, page 101
    0.03: Fetch session state from database
    0.03: Branch point: BEFORE_HEADER
    0.03: Authorization Check: "5474429220436784237" User: "TAJUDDIN335" Component: "APPLICATION"
    0.03: Fetch application meta data
    0.04: Computation point: ON_NEW_INSTANCE
    0.04: ...Perform computation of item: F102_APP, type=STATIC_ASSIGNMENT
    0.04: ...Performing static computation
    0.04: ...Session State: Save "F102_APP" - saving same value: "RATIS - Recreation And Tourism Information System "
    0.04: ...New Session = True
    0.04: Processing point: AFTER_AUTHENTICATION
    0.04: ...Process "set_is_admin": PLSQL (AFTER_AUTHENTICATION) IF ratis_user.is_admin(:APP_USER) THEN :F102_IS_ADMIN := 'TRUE'; ELSE :F102_IS_ADMIN := 'FALSE'; END IF;
    0.04: Encountered unhandled exception in process type PLSQL
    0.04: Show ERROR page...
    0.04: Performing rollback...
    0.05: Processing point: AFTER_ERROR_HEADER
    >
    I could not find anything in the login page 101, I had one custom_authentication package which I have removed but still the same error. Any ideas ....!!!
    Thanks in advance,
    Tajuddin

    Looks like you have an on-new instance application process that calls a non-existent function "ratis_user.is_admin".
    Scott

  • How to init the login page in JSF?

    I should receive the cookie data, if the cookie exists, then redirect to another page, and if not, just turn to the login page.
    how can i do all these init operation in JSF?
    P.S maybe my English is poor, i am sorry.......

    Just implement a Filter which listens on /*. No need to do this simple redirection task in JSF.

  • My ipad is not being recognized by the new iTunes update that just came  out about a week ago it worked fine till the update I have windows 8.1 does anyone know how to fix this problem and I just bought my ipad mini about a month ago

    My ipad mini is not being recognized by the new iTunes update that just came  out about a week ago it worked fine till the update I have windows 8.1 does anyone know how to fix this problem and I just bought my ipad mini

    I found this is another thread - same issue.
    Re: iTunes has stopped working. Why? 
    Sep 11, 2013 6:07 AM (in response to thurdy)
    Resolved!
    After contacting Apple, I received a reply from their engineers:
    Copy QTMovieWin.dll from:  C:\Program Files (x86)\Common Files\Apple\Apple Application Support
    to: C:\Program Files (x86)\iTunes
    And that did the trick.
    Message was edited by: Stryder777

  • I am not being able to create my apple ID as my card details are not being accepted by the app store. i tried with my visa card as well as master card. help me out to solve the problem..

    I am not being able to create my apple ID as my card details are not being accepted by the app store. i tried with my visa card as well as master card. help me out to solve the problem..

    Were the VISA and MasterCard issued to you by a bank in the country where you reside and do they have a verifiable billing address in the same country?
    Or are these debit cards that you bought in a local store. Apple does not accept debit cards that you bought.

  • Ipod not being recognized on the system, not getting reset,retry,restore,..

    hi all
    my ipod is not being recognized on the system..
    i dont know wat is the problem
    i tried the 5 Rs thing and i didn't get any king of result..
    i dont know wat to do
    please someone who could find a solution for this please reply and send me the solutions
    thanks..
    bye.

    See this...
    Windows Does Not Recognize iPod
    btabz

  • Product hierarchy  is not being maintained in the sales order material

    Hi,
    I have an issue where the product hier is not being maintained in the sales order for some of the materials although the material master has the prod hier maintained.. The main program is SAPMV45A and I have checked all the exits in MV45AFZZ. In none of these exits the PRODH field in XVBAP is being populated. I would like top know if anyone has faced a problem like this.
    cheers
    Aveek

    Hi,
    Thanks for your suggestion. The poduct hierarchy is maintained in the material master but not being picked up at the time of creating the sales order. I have found the solution and coding has to be done in the MV45AFZZ.
    cheers
    Aveek

  • All day calendar events not being displayed in the notification centre for iphone 5 post ios 7 upgrade. Please help. Is it a bug?

    All day calendar events not being displayed in the notification centre for iphone 5 post ios 7 upgrade. Please help. Is it a bug?
    With iOS 6, the all day events showed up in the notification centre but it lacks in the upgrade iOS 7.

    Same problem here. Some people pointed out that all-day events do show up in their notification center, but that seems only to be the case for birthdays (and only as text like the weather). I've tried it myself on my iPhone and iPad and it did work for birthdays but not for any other all-day events. I already sent this to Apple as a product feedback as well, as should everyone of you. The more people mention it, the faster Apple's going to fix this issue. In its current state, notification center is not a very helpful feature in my opinion. There's absolutely no point in not showing all-day events in the 'today' calendar overview.
    Here's a link to the product feedback page: http://www.apple.com/feedback/
    I posted my message in the iPhone section since I couldn't find a page specifically dedicated to iOS 7.
    I really love the look &amp; feel of iOS 7 but it's kinda sad to see notification center not tapping its full potential.
    Cheers!

  • Date not being displayed in the custom format

    Hi ,
      I have a problem wherein i am unable to change the format of the date.
    I need the date to be in the format 'January 10,2010.' however the date is being displayed as '1/10/10'. I have tried all options for the date formatting. I specified the custom format as 'MMMM D,YYYY' as mentioned in the SAP Library. I am trying to use the std custom options like YYYY-MM-DD, the date is not being dispalyed in the custom format provided by SAP either.
    I have binded date from the context, used the Current Date field provided by SAP.  Nothing works.
    Its not working on the new form. However the old forms have the same kind of formatting and are being displayed as desired.
    Please suggest as to what the issue could be.
    Thanks,
    Soumya.

    Hi All,
    Even I'm encountering the same issue. I'm trying to control the outputted date format programmatically.Please have a look.
    data: v_int_date like sy-datum,
            v_ext_date(10).
    v_int_date = '20110201'
    write v_int_date to v_ext_date MM/DD/YYYY.
    Here I've tried to convert the date to external format using a fixed format(MM/DD/YYYY). But still it's getting outputted in the format DD/MM/YYYY only as that's the way its defined in the User Master!
    Is there any solution for this? How can I 'override' defaults in the SAP User Master?
    Thanks,
    Mahesh

  • My apple ID and password, recognized through out the Cloud, is not being recognized in the itunes store. I am signed into itunes.When I want to change something in my account, the sign in prompt comes up and doesn't recognize my PW

    My apple ID and password, recognized through out the Cloud, is not being recognized in the itunes store. I am signed into itunes.When I want to change something in my account, the sign in prompt comes up and doesn't recognize my PW

    Solved the problem. I had to allow cookies for safari and it run - as here: Re: itunes keeps asking for my apple id password. it's NOT entered incorrectly.

  • My iPad is not being recognized by the computer, therefore, cannot sync.  It charges when plugged to the wall, but not when pugged to iMac.

    My iPad is not being recognized by the computer, therefore, cannot sync.  It charges when plugged to the wall, but not when pugged to iMac.

    Most common culprits include the cable. Try swapping it out for a different one.. or not having the most recent version of itunes. I once even solved this problem by shutting down the computer for 2 minutes. (the longer the better), with the ipad plugged in. starting it up... then itunes recognizes it, launches, and syncs.
    Apple has a troubleshooting assistant on this topic:
    http://www.apple.com/support/ipad/assistant/itunes/
    It will advise you to reboot. I recommend shutting down instead.
    --Sam
    P.S The ipad should charge when asleep and plugged into your Mac. The charging behavior is normal. There isn't enough power out the USB ports to charge the ipad while it is on on some older Macs and nearly all PCs.

Maybe you are looking for

  • Disk Utility fails to create encrypted disk image

    When creating a disk image using 256 bit encryption and a purely numeric password longer than 13 characters the following message appears: Unable to create "ABC.dmg." (error -60008) the error happens upon typing the 14th consecutive number into the P

  • Disable Bluetooth Option

    Our company deals with audio/video media provided by content providers and per MPAA guidelines we need our macs configured where no media content can be copied/transferred out of Macs via External Drives, Wireless, Bluetooth etc. I was able to config

  • Preview Crash on Large .pdf Files

    I am trying to view a 500k pdf in Preview. Every time I try, Preview crashes. It does the same thing whether I try to download and read it in Safari or Firefox from the original website or try to open the downloaded file and read it from the desktop.

  • QDL3  QM

    Hello Gurus, Can anyone tell me the link between material and dynamic modification rule in QM and abt creating a quality level in QDL1 t code Helpfull answers will be rewarded Thanks Suresh

  • Partner Function Complete scenario

    Hi, I need to use partner functions. But I am getting confused. Okay here is the scenario, I have Fed-ex as a vendor, as a central vendor. Each plant uses its own Fed-ex ordering addresses(OA) and Shipping point and Invoicing address. Now when a PO i