Uploaded image for project: 'Apache Roller'
  1. Apache Roller
  2. ROL-1542

resource path in i18n directory or filename

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 4.0
    • None
    • None
    • trunk

    Description

      if create a i18n name directory in a blog's resource space, then the resource path in resource url should be encoded.

      add below method in URLUtilities.java

      /**

      • URL encode a path string using UTF-8. The path seprator '/' will not be encoded
        */
        public static final String encodePath(String path)
        Unknown macro: { int i = path.indexOf('/'); StringBuffer sb = new StringBuffer(); while(i!=-1) { sb.append(encode(path.substring(0,i))).append('/'); path = path.substring(i+1); i = path.indexOf('/'); } sb.append(path); return sb.toString(); }

      then modified the getWeblogResourceURL method in MultiWeblogURLStrategy;

      Attachments

        Activity

          People

            djohnson David Johnson
            liu_johny Jian Liu
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: