LocalNotification is failing to add context path to the icon and URL as part of notification and to the detailed view of the notification

XMLWordPrintable

    • Type: Bug
    • Resolution: Unresolved
    • Priority: Low
    • None
    • Affects Version/s: 7.19.26, 9.0.0
    • Component/s: Core - Workbox
    • Severity 3 - Minor

      Issue Summary

      This is reproducible on Data Center: (yes)

      NotificationBuilder() when building a notification, for both .itemUrl() and .url() method the context path is missing for these urls when clicked in Notification window.

      For example

      Notification notification = new NotificationBuilder()
                .application(PLUGIN_KEY)
                .entity(ENTITY_NAME)
                .action(SHARE_ACTION_NAME)
                .title(TITLE).itemTitle(TITLE)
                .itemUrl("/download/resources/com.myplugin:share-webresources/images/icon.png")
                .url("/myplugin/viewdata.action")
                .itemIconUrl("/myplugin/icon.png")
                .globalId(ID).groupingId(ID)
                .createNotification();
      


       

      Steps to Reproduce

      1. Create a P2 plugin and follow the steps in Posting notifications in Confluence (will need to be updated for Platform 7 and Confluence 9.x)
      2. Add the .itemUrl() and .url() in the NotificationBuilder()
      3. Generate a notification

      Expected Results

      The .itemUrl() and .url() include the context path in the URL.

      Actual Results

      The .itemUrl() and .url() do not include the context path in the URL.

      Workaround

      You can try using the {

      {SettingsManager}

      ] to get the full path of the server as documented in

            Assignee:
            Unassigned
            Reporter:
            James Richards
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: