Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-47179

Add check to SourceFormatter to prevent using HttpServletResponse.sendRedirect in JSP files

    Details

      Description

      Calling HttpServletResponse.sendRedirect from a JSP Is bad practice as it can potentially cause IllegalStateExceptions when using WebLogic as application server (if the response already has been committed, the method will throw the IllegalStateException).
      Adding check to SourceFormatter to warn when a sendRedirect is being used in JSP.

        Attachments

          Activity

            People

            Assignee:
            david.truong David Truong
            Reporter:
            hugo.huijser Hugo Huijser
            Recent user:
            Kiyoshi Lee
            Participants of an Issue:
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Packages

                Version Package
                7.0.0 M1