Uploaded image for project: 'Confluence Data Center'
  1. Confluence Data Center
  2. CONFSERVER-19931

Confluence page gadget edit link doesn't work for blogs

    XMLWordPrintable

Details

    Description

      Steps to re-produce:

      1. Create a Conf page gadget in JIRA that contains a blog post in a Confluence instance
      2. Make sure you tick the "Edit" tickbox so the edit link appears
      3. Let the page gadget render in JIRA, now click on the "Edit" icon
        this takes you to "...editpage.action?pageId=426017"
        When it should really edit the blog, not the page. It throws an exception and dumps a stack trace
      Cause
      
      java.lang.ClassCastException: com.atlassian.confluence.pages.BlogPost cannot be cast to com.atlassian.confluence.pages.Page
          at com.atlassian.confluence.pages.actions.EditPageAction.doDefault(EditPageAction.java:134)
      Stack Trace:[hide]
      
      java.lang.ClassCastException: com.atlassian.confluence.pages.BlogPost cannot be cast to com.atlassian.confluence.pages.Page
      	at com.atlassian.confluence.pages.actions.EditPageAction.doDefault(EditPageAction.java:134)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      	at java.lang.reflect.Method.invoke(Method.java:597)
      	at com.opensymphony.xwork.DefaultActionInvocation.invokeAction(DefaultActionInvocation.java:302)
      ....
      
      Referer URL
      
      http://MY_URL_HERE/plugins/servlet/gadgets/ifr?container=atlassian&mid=10602&country=UK&lang=en&view=default&view-params=%7B%22writable%22%3A%22true%22%7D&st=atlassian%3AmU4I29i2Vdju8rvR%2F86ybOLifg1mSNKukdhf1O9Z16LUMcMi0zrYEp72xuhkcw6CLgIvSFi7CBNSlPh%2FnE8IE0Hm5AuRCPj8%2FvEm%2FZ25yRNuZZZZHu3hU4JNctoyPWGCNtZpEq2wIr1%2FGhFZ5YJa5cexnZGRFyv8wjxoE1cCu%2BbLH4tug1YxRdyCL5wWXkKVVbUXay6NnQ1UcFlmwyu4fo1Xtxsx49FLdYY51kFxYqq2%2FQk4rq3ZNWgBYd%2Bw5ixe%2FkHN%2FK%2FYjaqaJzkTAmUrgSGtoVIw0acxWa2H4KNuyL%2BtmTsIqQxVbviWhWIGe5MvgvX1HxTChOr6%2BDIPUTWR2WiujuDjlF%2BXzniRNvBl8z2MvsMh&up_isConfigured=false&up_spaceName=&up_spaceKey=&up_pageName=&up_pageId=&up_showLink=true&up_refresh=false&up_isEditable=false&url=http%3A%2F%2Freefa.sydney.atlassian.com%3A8090%2Frest%2Fgadgets%2F1.0%2Fg%2Fcom.atlassian.confluence.plugins.gadgets%3Aconfluence-page-gadget%2Fgadgets%2Fconfluence-page-gadget.xml&libs=auth-refresh
      

      Attachments

        Activity

          People

            xtjhin Joshua Tjhin (Inactive)
            smansour Sherif Mansour
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: