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

Wiki & Message board attachments failing

    Details

      Description

      (originally posted on http://www.liferay.com/community/forums/-/message_boards/message/14746822)

      I am using Liferay Portal 6.1 EE to implement a custom document store backed by Oracle UCM. I've run into an issue that I think is related to other defects I see related to wiki attachments.

      My custom document store receives this sequence of calls when I add an attachment to a wiki (or messageboard):

      1. addFile: companyId=999, repositoryId=0, dirName=wiki/12802/My Document.doc
      2. getFileNames: companyId=999, repositoryId=0, dirName=wiki/12802
      3. getFileSize:companyId=999, repositoryId=0, filePath=My Document.doc

      Steps 1 and 2 are fine here, but the filePath in step 3 is a concern because it lacks the "wiki/" prefix, so I don't find the exact document. The file was stored in the repository at /Contribution Folders/Liferay/999/documentLibrary/0/wiki/12802/My Document.doc. Without the "wiki/" prefix on the filename, my code looks in a nonexistent folder.

      Deleting wiki attachments seems to have the same problem (missing "wiki/" prefix on filename)

      This is pretty easy to reproduce, or to at least catch with the debugger.

        Attachments

          Activity

            People

            Assignee:
            michael.saechang Michael Saechang
            Reporter:
            tom.witmer Tom Witmer
            Participants of an Issue:
            Recent user:
            Esther Sanz
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              8 years, 30 weeks, 3 days ago

                Packages

                Version Package
                6.2.0 CE M4