Closed shieldsjared closed 3 years ago
This PR has been automatically labelled "stale" because it hasn't had recent activity. A core team member will check in on the status of the PR to help with questions. Thank you for your contribution!
/cc @jasonblais @jfrerich
phew finally got a moment to submit that simple PR:
Awesome, thanks @shieldsjared :)
This PR has been automatically labelled "stale" because it hasn't had recent activity. A core team member will check in on the status of the PR to help with questions. Thank you for your contribution!
/cc @jasonblais @jfrerich
@shieldsjared Quick update (which you may have already seen): https://github.com/mattermost/mattermost-server/pull/15513 is merged so the remaining step is to
update the go module dependency to point at the new
master
commit. Thego.mod
looks weird because it's referencing a pseudo-version from themaster
branch vs. a tagged release -- namely commited34468996e6
(from around July 23rd).
No rush by the way! I'll remove the Lifecycle/1:stale
label since I know this was recently been worked on (via the mattermost-server PR).
@jasonblais - Updated the PR to remove the internal fix for the trailing slash, and instead pointing to the specific commit e726b0426826
in mattermost-server
that contains the fix w/in the client. Ready for a fresh review :)
@hanzei @lieut-data ready for a fresh review
Skipping QA review since already tested in the upstream server change.
Thanks so much, @shieldsjared!
Summary
If the
MM_SERVICESETTINGS_SITEURL
environment variable is set with a trailing slash, the API calls made to upload the plugin result in unpredictable results. Code added simply removes any trailing slash included in the env variable.Probably could have migrated all of the siteURL related code to get/validate/trim the siteURL into a function, but not sure it was really necessary for the overall scope of
pluginctl
.Ticket Link
Fixes issue described in #115.