405 error when attempting to upload files using gulp-viewport

14 views
Skip to first unread message

Adisa Craig

unread,
Feb 26, 2020, 3:51:10 PM2/26/20
to Scroll Viewport Developers
This integration worked previously but recently I have started getting a 405 error while trying ot upload files to my viewport, using gulp upload with environment variables. Any help is appreciated

Roman Serazhiev (K15t)

unread,
Feb 27, 2020, 3:07:33 AM2/27/20
to Scroll Viewport Developers
Hi Adisa.

405 means method not allowed.

It could be that you tried to upload a global theme, and this requires a confluence administrator.
If the theme doesn't exists, gulp-viewport handles the error and puts out the problem.

Please try to either change the scope of the theme in gulp-viewport, or make sure there is the correct user-login in the .vprtrc file.

Roman.

Adisa Craig

unread,
Mar 4, 2020, 1:38:59 PM3/4/20
to Scroll Viewport Developers
Hi Roman,
  So I was able to identify the issue. It seems that if a viewport is added via a .jar upload it cannot be updated via the gulp-viewport plugin or even by using the Confluence UI. This is the case even for Confluence Admins. Is there a workaround for this?

Jens Rutschmann (K15t)

unread,
Mar 5, 2020, 5:10:44 AM3/5/20
to scroll-vi...@googlegroups.com
Hi Adisa,

themes that have been installed as plugins cannot be modified. This is intentional.

If you want to update such a theme using gulp there are two options:

- Use the user interface to create a copy of the theme. The copy can be modified using the online editor as well as the REST API / gulp. You
may uninstall the original theme (the plugin) afterwards to get rid of the duplicate.

- Extract the jar file instead of installing it as a plugin and then upload the extracted files to a new theme that you've created for
example using the user interface.


The purpose of the JAR / plugin theme download option is to create a snapshot out of a theme in your development / testing environment and
then upload the plugin to your production environment once the theme development is complete.


Hope that helps.


Cheers,
Jens
Reply all
Reply to author
Forward
0 new messages