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

Cannot create a new message board post through add-message API

Details

    Description

      Issue
      Cannot create a new message board post through add-message API

      Steps to reproduce

      1. Start a clean DXP bundle
      2. Login
      3. Add Message Boards to home page
      4. Create a new category and retrieve its CategoryId (e.g. http://localhost:8080/web/guest/home/-/message_boards/category/3424734247)
      5. Access add-message API
        http://localhost:8080/api/jsonws?contextName=&signature=%2Fmbmessage%2Fadd-message-4-categoryId-subject-body-serviceContext
      6. Fill in categoryId, subject and body
        categoryId - 34247
        subject - hello
        body - hello hello hello
        
      7. Invoke
      8. java.lang.NullPointerException is thrown
      9. Access another version of add-message API
        http://localhost:8080/api/jsonws?contextName=&signature=%2Fmbmessage%2Fadd-message-11-groupId-categoryId-subject-body-format-fileName-file-anonymous-priority-allowPingbacks-serviceContext
      10. Fill in the groupId (siteId), categoryId, subject and body
        siteId - 20143
        categoryId - 34247
        subject - hello
        body - hello hello hello
        
        
      11. Set format to html, anonymous and priority to 1
      12. Invoke

      Actual results
      java.lang.NullPointerException is thrown

      Expected results
      Can create a new post through add-message API

      Reproduced in
      de-10
      branch - ee-7.0.x - a63e895a3ede33f4dce1b2b94dd28eab5132354c
      master - af43248cbd21e4737f180de01ff5d9480094a453

      Attachments

        Issue Links

          Activity

            People

              joyce.wang Joyce Wang
              christopher.kian Christopher Kian
              Kiyoshi Lee Kiyoshi Lee
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                5 years, 43 weeks, 2 days ago

                Packages

                  Version Package
                  7.0.0 DXP FP23
                  7.0.X EE
                  7.0.4 CE GA5
                  7.1.X
                  Master