Uploaded image for project: 'PUBLIC - Liferay Faces'
  1. PUBLIC - Liferay Faces
  2. FACES-236

BaseURLRenderer doesn't throw the root cause of an exception

    Details

      Description

      BaseURLRenderer throws generic IOException there's any problem during the encoding if a URL, without wrapping the root exception. Consequently, it hides exceptions thrown during encoding of URL parameters. Currently, this is occurs in the last few liens of encodeEnd:
      protected void encodeEnd(FacesContext facesContext, UIComponent uiComponent, BaseURL baseURL) throws IOException {
      ExternalContext externalContext = facesContext.getExternalContext();
      Map<String, Object> attributes = uiComponent.getAttributes();
      Boolean escapeXML = (Boolean) attributes.get("escapeXML");
      Boolean secure = (Boolean) attributes.get("secure");
      String varName = (String) attributes.get("var");
      try {
      ....
      catch (Exception e)

      { throw new IOException(); }

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Packages

                Version Package
                liferay-faces-2.1.0-ga1
                liferay-faces-3.0.0-legacy-ga1
                liferay-faces-3.0.0-ga1
                liferay-faces-3.1.0-ga1