Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update download URL logic #218

Closed
cpepe opened this issue Jul 13, 2017 · 8 comments
Closed

Update download URL logic #218

cpepe opened this issue Jul 13, 2017 · 8 comments
Labels
bug Something isn't working

Comments

@cpepe
Copy link
Contributor

cpepe commented Jul 13, 2017

Affected Puppet, Ruby, OS and module versions/distributions

  • Puppet:
  • Ruby:
  • Distribution:
  • Module version:

How to reproduce (e.g Puppet code you use)

Set jira version to 7.0.11

What are you seeing

This module produces the download URL https://downloads.atlassian.com/software/jira/downloads//atlassian-jira-software-7.0.11-jira-7.0.11.tar.gz which is invalid.

It produces a similar URL for 7.0.4 which is correct.

What behaviour did you expect instead

The url should be https://downloads.atlassian.com/software/jira/downloads//atlassian-jira-software-7.0.11.tar.gz

Output log

Error: Execution of '/bin/curl https://downloads.atlassian.com/software/jira/downloads//atlassian-jira-software-7.0.11-jira-7.0.11.tar.gz -o /tmp/atlassian-jira-software-7.0.11-jira-7.0.11.tar.gz_20170713-25336-l5iy8w -fsSL --max-redirs 5' returned 22: curl: (22) The requested URL returned error: 404 Not Found
Error: /Stage[main]/Jira::Install/Archive[/tmp/atlassian-jira-software-7.0.11-jira-7.0.11.tar.gz]/ensure: change from absent to present failed: Execution of '/bin/curl https://downloads.atlassian.com/software/jira/downloads//atlassian-jira-software-7.0.11-jira-7.0.11.tar.gz -o /tmp/atlassian-jira-software-7.0.11-jira-7.0.11.tar.gz_20170713-25336-l5iy8w -fsSL --max-redirs 5' returned 22: curl: (22) The requested URL returned error: 404 Not Found

Any additional information you'd like to impart

Line 51 in puppet-jira/manifests/install.pp sets the cut-off for the new url as 7.1.9 but that leaves 7.0.11 out. I will attempt to come back and test the other versions between 7.0.11 and 7.1.9 to see if line 51 can updated to make the cutoff 7.0.11 instead of 7.1.9 but I have not checked beyond this version at the moment.

@cpepe
Copy link
Contributor Author

cpepe commented Jul 18, 2017

Since users are likely to want to upgrade to newer versions of JIRA the workaround that I plan to use is to upgrade to 7.0.4 and then on to 7.x. The only potential issue is a feature or add-on requirement to go to 7.0.11 instead of 7.0.4 but this is unlikely to crop up.

@vrowley
Copy link

vrowley commented Oct 24, 2017

They changed the file name between 7.0.10 and 7.0.11, so will this work from 7.0.10 to 7.x?

@cpepe
Copy link
Contributor Author

cpepe commented Oct 24, 2017

from the release logs there was 7.0.10 and 7.0.11 before the 7.1 series. The new filename seems to have been introduced with 7.0.11 so "line 51" above should use 7.0.11 instead of 7.1.9 to select the URL generator.

@vrowley
Copy link

vrowley commented Oct 24, 2017

Just a quick note to say thank you. Last night I changed my .yaml to reference 7.1.10. I saw nullPointer errors in the logs and rage quit. :-P
When I looked at it this morning, it was up and running. Woo-hoo! I obviously have errors in the logs to chase down, but at least it's operational again.

@juniorsysadmin juniorsysadmin added the bug Something isn't working label Oct 25, 2017
@cpepe
Copy link
Contributor Author

cpepe commented Oct 25, 2017

:-) my pleasure. I was pretty happy to find this module. Glad to contribute if only in a small way.

@ekohl
Copy link
Member

ekohl commented Nov 5, 2017

Is this still an issue or was it fixed?

@cpepe
Copy link
Contributor Author

cpepe commented Nov 6, 2017 via email

@ekohl
Copy link
Member

ekohl commented Nov 7, 2017

In that case I'm going to close this.

@ekohl ekohl closed this as completed Nov 7, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants