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

Spaces in category name leads to 404

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.1
    • 3.1
    • None

    Description

      For category names that contain spaces, we produce URLs that look like this:
      http://localhost:8080/roller/roller/category/Open%2BSource

      But we don't parse those correctly because, by the time we get to WeblogPageRequest the URL has already been decoded.

      We should apply the same trick we use for tags with spaces: around line 127 in WeblogPageRequest, we should add code to replace "+" signs with spaces like so:

      // all categories must start with a /
      if(!this.weblogCategoryName.startsWith("/"))

      { this.weblogCategoryName = "/"+this.weblogCategoryName; + this.weblogCategoryName = weblogCategoryName.replace('+', ' '); }
      • Dave

      Attachments

        Activity

          People

            roller_unassigned Roller Unassigned
            djohnson David Johnson
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: