Hello everyone,
I try to migrate my own plugin from 7.19.16 to 8.5.4. You can see my atlassian-plugin.xml :
<?xml version="1.0" encoding="UTF-8"?>
<atlassian-plugin key="ch.dgsi.confluence.cti-attachment-filter" name="cti-attachment-filter" plugins-version="2">
<plugin-info>
<description>This is the ch.dgsi.confluence:cti-attachment-filter plugin for Atlassian Confluence. Build for 8.5.4
</description>
<version>1.1.0</version>
<vendor name="DGSI" url="http://www.ge.ch/"/>
<param name="plugin-icon">images/pluginIcon.png</param>
<param name="plugin-logo">images/pluginLogo.png</param>
<param name="configure.url">/admin/plugins/ctiextensionfilter/configureplugin.action</param>
</plugin-info>
<resource type="i18n" name="i18n" location="cti-attachment-filter"/>
<web-resource key="cti-attachment-filter-resources" name="cti-attachment-filter Web Resources">
<dependency>com.atlassian.auiplugin:ajs</dependency>
<resource type="download" name="cti-attachment-filter.css" location="/css/cti-attachment-filter.css"/>
<resource type="download" name="cti-attachment-filter.js" location="/js/cti-attachment-filter.js"/>
<resource type="download" name="images/" location="/images"/>
<context>cti-attachment-filter</context>
</web-resource>
<servlet-filter name="Attachment Servlet Filter" key="cti-attachment-filter-servlet"
class="ch.dgsi.confluence.extensionfilter.servlet.filter.AttachmentServletFilter"
location="after-encoding" weight="100">
<description key="cti-attachment-filter-servlet.description">Filters uploaded files</description>
<url-pattern>/plugins/drag-and-drop/upload.action*</url-pattern>
<dispatcher>REQUEST</dispatcher>
</servlet-filter>
<xwork key="cti-attachment-filter-actions" name="CTI attachment extensions filters Actions">
<package name="pages" extends="default" namespace="/pages">
<default-interceptor-ref name="validatingStack"/>
<action name="attachfile" class="ch.dgsi.confluence.extensionfilter.actions.ChkExBfAttachFileAction">
<result name="input" type="json"/>
<result name="json" type="json"/>
<result name="html" type="velocity">/ajax/htmlwrapper.vm</result>
<result name="error" type="json"/>
<result name="notpermitted" type="json"/>
</action>
<action name="doattachfile"
class="ch.dgsi.confluence.extensionfilter.actions.ChkExBfViewPageAttachmentsAction">
<result name="error" type="velocity">/pages/viewattachments.vm</result>
<result name="input" type="velocity">/pages/viewattachments.vm</result>
<result name="success" type="redirect">/pages/viewpageattachments.action?pageId=${pageId}&sortBy=date&${highlightParameter}</result>
</action>
<action name="domacroattachfile"
class="ch.dgsi.confluence.extensionfilter.actions.ChkExBfViewPageAttachmentsAction">
<result name="error" type="dispatcher">/pages/viewpage.action</result>
<result name="input" type="dispatcher">/pages/viewpage.action</result>
<result name="success" type="redirect">/pages/viewpage.action?pageId=${pageId}</result>
</action>
<action name="editattachment" class="ch.dgsi.confluence.extensionfilter.actions.ChkExBfMoveAttachmentAction"
method="doDefault">
<interceptor-ref name="defaultStack"/>
<result name="error" type="velocity">/pages/editattachment.vm</result>
<result name="input" type="velocity">/pages/editattachment.vm</result>
</action>
<action name="doeditattachment"
class="ch.dgsi.confluence.extensionfilter.actions.ChkExBfMoveAttachmentAction">
<param name="RequireSecurityToken">true</param>
<result name="input" type="velocity">/pages/editattachment.vm</result>
<result name="error" type="velocity">/pages/editattachment.vm</result>
<result name="cancel" type="redirect">${redirectPage}</result>
<result name="success" type="redirect">${redirectPage}</result>
</action>
</package>
<!-- <package name="drag-and-drop-filtered" extends="drag-and-drop" namespace="/plugins/drag-and-drop">-->
<!-- <action name="upload" class="ch.dgsi.confluence.extensionfilter.actions.ChkExBfUploadAction">-->
<!-- <param name="RequireSecurityToken">true</param>-->
<!-- <interceptor-ref name="validatingStack"/>-->
<!-- <result name="input" type="json"/>-->
<!-- <result name="success" type="json"/>-->
<!-- <result name="error" type="json"/>-->
<!-- <result name="readonly" type="readonly-json"/>-->
<!-- </action>-->
<!-- </package>-->
<!-- <package name="attachments-macro-action" extends="default" namespace="/pages/plugins/attachments">-->
<!-- <action name="doattachfile"-->
<!-- class="ch.dgsi.confluence.extensionfilter.actions.ChkExBfViewPageAttachmentsAction">-->
<!-- <interceptor-ref name="validatingStack"/>-->
<!-- <result name="error" type="velocity">/pages/viewattachments.vm</result>-->
<!-- <result name="input" type="velocity">/pages/viewattachments.vm</result>-->
<!-- <result name="success" type="redirect">/pages/viewpage.action?pageId=${pageId}</result>-->
<!-- </action>-->
<!-- </package>-->
</xwork>
<xwork key="cti-extensionfilter" name="Extension Filter Actions">
<package name="ctiextensionfilter" extends="default" namespace="/admin/plugins/ctiextensionfilter">
<default-interceptor-ref name="validatingStack"/>
<action name="configureplugin" class="ch.dgsi.confluence.extensionfilter.actions.ConfigurePluginAction"
method="doDefault">
<result name="input" type="velocity">/ch/dgsi/confluence/extensionfilter/configureplugin.vm</result>
</action>
<action name="removeextensionfromlist"
class="ch.dgsi.confluence.extensionfilter.actions.ConfigurePluginAction" method="doRemoveExtension">
<result name="input" type="velocity">/ch/dgsi/confluence/extensionfilter/configureplugin.vm</result>
<result name="success" type="redirect">/admin/plugins/ctiextensionfilter/configureplugin.action</result>
</action>
<action name="allowmimetype" class="ch.dgsi.confluence.extensionfilter.actions.ConfigurePluginAction"
method="doAddMimetype">
<result name="input" type="velocity">/ch/dgsi/confluence/extensionfilter/configureplugin.vm</result>
<result name="success" type="redirect">/admin/plugins/ctiextensionfilter/configureplugin.action</result>
</action>
<action name="subAllowmimetype" class="ch.dgsi.confluence.extensionfilter.actions.ConfigurePluginAction"
method="doSubAddMimetype">
<result name="input" type="velocity">/ch/dgsi/confluence/extensionfilter/configureplugin.vm</result>
<result name="success" type="redirect">/admin/plugins/ctiextensionfilter/configureplugin.action</result>
</action>
<action name="removemimetypefromlist"
class="ch.dgsi.confluence.extensionfilter.actions.ConfigurePluginAction" method="doRemoveMimetype">
<result name="input" type="velocity">/ch/dgsi/confluence/extensionfilter/configureplugin.vm</result>
<result name="success" type="redirect">/admin/plugins/ctiextensionfilter/configureplugin.action</result>
</action>
<action name="removefilterfromlist" class="ch.dgsi.confluence.extensionfilter.actions.ConfigurePluginAction"
method="doRemoveSpace">
<result name="input" type="velocity">/ch/dgsi/confluence/extensionfilter/configureplugin.vm</result>
<result name="success" type="redirect">/admin/plugins/ctiextensionfilter/configureplugin.action</result>
</action>
<action name="filterspace" class="ch.dgsi.confluence.extensionfilter.actions.ConfigurePluginAction"
method="doAddSpace">
<result name="input" type="velocity">/ch/dgsi/confluence/extensionfilter/configureplugin.vm</result>
<result name="success" type="redirect">/admin/plugins/ctiextensionfilter/configureplugin.action</result>
</action>
<action name="filterSubspace" class="ch.dgsi.confluence.extensionfilter.actions.ConfigurePluginAction"
method="doAddSubSpace">
<result name="input" type="velocity">/ch/dgsi/confluence/extensionfilter/configureplugin.vm</result>
<result name="success" type="redirect">/admin/plugins/ctiextensionfilter/configureplugin.action</result>
</action>
<action name="doconfigureplugin" class="ch.dgsi.confluence.extensionfilter.actions.ConfigurePluginAction">
<result name="input" type="velocity">/ch/dgsi/confluence/extensionfilter/configureplugin.vm</result>
<result name="success" type="redirect">/admin/plugins/ctiextensionfilter/configureplugin.action</result>
<result name="cancel" type="redirect">/plugins/servlet/upm</result>
</action>
</package>
</xwork>
<rest key="attachementfilterRest" path="/attachementfilter" version="1.0">
<description>Provides service related to attachement filter plugin.</description>
<package>ch.dgsi.confluence.extensionfilter.api</package>
</rest>
</atlassian-plugin>
As you can see I had to comment two packages drag-and-drop-filtered and attachments-macro-action. Indeed, my module cti-attachment-filter-actions can't be enable if it's isn't comment.
How I can fix that ?
Other question, with my comment, my plugin is running but doesn't work. I think all request aren't catch... Do you have an idea why ? Must I migrate something ?
This issue is very important, please I need help.
I can share you other files if you want.
Regards,
Guillaume
Welcome to the community?
I think its best to ask this question in the developer community; https://community.developer.atlassian.com/
This community is special focussed on any development within the Atlassian realm.
Welcome to the Atlassian Community!
Have you recompiled the app for this version of Confluence? Plugins compiled for major releases often need to be recompiled for the next one - you've gone from 7.x to 8.x, so it is worth trying that first.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
any help about my issue ?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.