Uploaded image for project: 'Shiro'
  1. Shiro
  2. SHIRO-360

Create UrlEncoder

Attach filesAttach ScreenshotAdd voteVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: New Feature
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: 2.0.0
    • Component/s: Web
    • Labels:
      None

      Description

      To customize how URL encoding in a web app occurs, we should have a UrlEncoder component. More specifically, this can be used to customize how JSESSIONID is appended to a URL (if at all, depending on security preferences).

      The solution could be resolved as follows:

      Create a new UrlEncoder interface:

      public interface UrlEncoder {
      String encodeUrl(EncodeUrlRequest request);
      }

      The EncodeUrlRequest:

      public interface EncodeUrlRequest {
      String getUrl();
      HttpServletRequest getHttpServletRequest();
      HttpServletResponse getHttpServletResponse();
      ServletContext getServletContext();
      }

      Update WebEnvironment to have a new property:

      UrlEncoder getUrlEncoder();

        Attachments

        Issue Links

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              lhazlewood Les Hazlewood

              Dates

              • Created:
                Updated:

                Issue deployment