Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-19900

Liked page whose FULLNAME contains dot(.) can not show in user profile.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 15.1, 14.4.8, 14.10.6
    • 13.4-rc-1
    • Like
    • None
    • Unit
    • Unknown
    • N/A
    • N/A

    Description

      reproduce step:

      1. create a page whose fullname contains a dot(.) like xxx.com
      2. like this page
      3. redirect to user profile who like the page

      Notes:

      Seems to be caused by line-breaks being placed at odd places in the parsed JSON (e.g., between line 6 and 7):

      {
      "totalrows": 1,
      "returnedrows":  1,
      "offset": 1,
      "reqNo": 1,
      "rows": [{"doc_viewable":true,"doc_name":"WebHome","doc_fullName":"xwiki:a
      .b.WebHome","doc_location":"                                                                                                                                                        <ol  class=\"breadcrumb breadcrumb-expandable\" data-entity='a
      .b.WebHome' data-limit='5' data-plain='false' data-local='true' data-displaytitle='false'><li\n                                                          class=\"active space\"><a href=\"http:\/\/localhost:8080\/xwiki\/bin\/view\/a.b\/\"\n        >a.b<\/a>      <\/li><\/ol>\n  ","doc_space":"a
      .b","doc_url":"http:\/\/localhost:8080\/xwiki\/bin\/view\/a.b\/","doc_space_url":"http:\/\/localhost:8080\/xwiki\/bin\/view\/a%5C.b\/","doc_wiki":"xwiki","doc_wiki_url":"http:\/\/localhost:8080\/xwiki\/bin\/view\/Main\/","doc_author_url":"http:\/\/localhost:8080\/xwiki\/bin\/view\/XWiki\/Admin","doc_date":"2023\/02\/20 10:37","doc_title":"a.b","doc_author":"Administrator","doc_creationDate":"2023\/02\/20 10:37","doc_creator":"Administrator","like":1}]
      }
      

      This is not a regression, 13.3-rc-1 also has the issue with a Livedata.

      Attachments

        Issue Links

          Activity

            People

              mleduc Manuel Leduc
              earl Earl Wang
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: