Andrew Kyle Purtell created HBASE-27894:
-------------------------------------------

             Summary: create-release is broken by recent gitbox changes
                 Key: HBASE-27894
                 URL: https://issues.apache.org/jira/browse/HBASE-27894
             Project: HBase
          Issue Type: Bug
            Reporter: Andrew Kyle Purtell
            Assignee: Andrew Kyle Purtell


The error looks like:
{noformat}
...
GIT_BRANCH [branch-2.5]: 
-:1: parser error : Space required after the Public Identifier
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
{noformat}
but is misleading. What is going on is create-release tries to retrieve the top 
level POM from the specified branch using a gitbox URL but gitbox is returning 
an HTML redirect, which is not what is expected.
{noformat}
++ read -r -p 'GIT_BRANCH [branch-2.5]: ' REPLY
GIT_BRANCH [branch-2.5]: 
++ local RETVAL=branch-2.5
++ '[' -z branch-2.5 ']'
++ echo branch-2.5
+ GIT_BRANCH=branch-2.5
+ export GIT_BRANCH
+ local version
++ curl -s 
'https://gitbox.apache.org/repos/asf?p=hbase.git;a=blob_plain;f=pom.xml;hb=refs/heads/branch-2.5'
++ parse_version
++ xmllint --xpath 
'//*[local-name()='\''project'\'']/*[local-name()='\''version'\'']/text()' -
-:1: parser error : Space required after the Public Identifier
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
{noformat}
{noformat}
$ curl -s 
'https://gitbox.apache.org/repos/asf?p=hbase.git;a=blob_plain;f=pom.xml;hb=refs/heads/branch-2.5'
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>302 Found</title>
</head><body>
<h1>Found</h1>
<p>The document has moved <a 
href="https://raw.githubusercontent.com/apache/hbase/refs/heads/branch-2.5/pom.xml";>here</a>.</p>
</body></html>
{noformat}
The solution is to retrieve content using github URLs (via 
raw.githubusercontent.com) instead of gitbox URLs.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to