Cocoon
  1. Cocoon
  2. COCOON-1515

[PATCH] Add remoteUser() information to RequestGenerator

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 2.2
    • Fix Version/s: 2.1.10, 2.2
    • Component/s: * Cocoon Core
    • Labels:
      None
    • Environment:
      Operating System: All
      Platform: All

      Description

      Something I've occasionally found useful in the request generator when using the
      standard J2EE container security was to add the currently logged in user's ID
      (from request.remoteUser()). It doesn't necessarily get sent with every
      request, depending on the container and whether or not the request is for a
      protected page, but it's usually set on requests for secured HTML pages.

      I'm attaching the (fairly trivial) patch I used to add this, taken against the
      current SVN trunk.

        Activity

        Hide
        Andrew Stevens added a comment -
        Created an attachment (id=15155)
        RequestGenerator.java diff
        Show
        Andrew Stevens added a comment - Created an attachment (id=15155) RequestGenerator.java diff
        Hide
        Antonio Gallardo added a comment -
        Thanks for the patch. It was applied in 2.1.10-dev and 2.2-dev. Feel free to reopen if needed.
        Show
        Antonio Gallardo added a comment - Thanks for the patch. It was applied in 2.1.10-dev and 2.2-dev. Feel free to reopen if needed.

          People

          • Assignee:
            Antonio Gallardo
            Reporter:
            Andrew Stevens
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development