[
https://issues.apache.org/jira/browse/YETUS-232?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15054558#comment-15054558
]
Allen Wittenauer commented on YETUS-232:
----------------------------------------
I'm not sure if JIRA handles lower case project names. I suspect it does not.
If it doesn't, then forcing the case to be upper is probably the correct
action. If it does, then we probably should catch the error and print something
appropriate. We probably need to catch the error anyway though really.
> releasedocmaker with range option fails if project name is specified in lower
> case
> ----------------------------------------------------------------------------------
>
> Key: YETUS-232
> URL: https://issues.apache.org/jira/browse/YETUS-232
> Project: Yetus
> Issue Type: Bug
> Components: Release Doc Maker
> Reporter: Kengo Seki
>
> It succeeds, of course:
> {code}
> [sekikn@mobile yetus]$ release-doc-maker/releasedocmaker.py --project hadoop
> --version 2.6.0
> {code}
> It also succeeds:
> {code}
> [sekikn@mobile yetus]$ release-doc-maker/releasedocmaker.py --project HADOOP
> --version 2.6.0 --version 2.7.2 --range
> Looking for 2.6.0 through 2.7.2
> Adding 2.6.0 to the list
> Adding 2.6.1 to the list
> Adding 2.6.2 to the list
> Adding 2.6.3 to the list
> Adding 2.6.4 to the list
> Adding 2.7.0 to the list
> Adding 2.7.1 to the list
> Adding 2.7.2 to the list
> {code}
> Surprisingly, it fails:
> {code}
> [sekikn@mobile yetus]$ release-doc-maker/releasedocmaker.py --project hadoop
> --version 2.6.0 --version 2.7.2 --range
> Looking for 2.6.0 through 2.7.2
> Traceback (most recent call last):
> File "release-doc-maker/releasedocmaker.py", line 658, in <module>
> main()
> File "release-doc-maker/releasedocmaker.py", line 473, in main
> versions = [Version(v) for v in GetVersions(options.versions,
> projects).getlist()]
> File "release-doc-maker/releasedocmaker.py", line 157, in __init__
> resp = urllib2.urlopen(url)
> File
> "/usr/local/Cellar/python/2.7.10_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py",
> line 154, in urlopen
> return opener.open(url, data, timeout)
> File
> "/usr/local/Cellar/python/2.7.10_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py",
> line 437, in open
> response = meth(req, response)
> File
> "/usr/local/Cellar/python/2.7.10_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py",
> line 550, in http_response
> 'http', request, response, code, msg, hdrs)
> File
> "/usr/local/Cellar/python/2.7.10_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py",
> line 475, in error
> return self._call_chain(*args)
> File
> "/usr/local/Cellar/python/2.7.10_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py",
> line 409, in _call_chain
> result = func(*args)
> File
> "/usr/local/Cellar/python/2.7.10_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py",
> line 558, in http_error_default
> raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
> urllib2.HTTPError: HTTP Error 404: Not Found
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)