Skip to content

[MINOR] Update Xerces source URL to use HTTPS#1625

Open
pjfanning wants to merge 1 commit intoapache:mainfrom
pjfanning:patch-1
Open

[MINOR] Update Xerces source URL to use HTTPS#1625
pjfanning wants to merge 1 commit intoapache:mainfrom
pjfanning:patch-1

Conversation

@pjfanning
Copy link
Member

What does this PR do?

It is always a good idea to avoid non TLS endpoints in builds. There might be more instances like this in your repos and I would suggest that a PMC member has a look.

Type of Change

  • Bug fix (non-breaking change)
  • New feature (non-breaking change)
  • Breaking change (fix or feature with breaking changes)
  • Documentation update

Breaking Changes

Test Plan

  • Unit tests added/updated
  • Integration tests added/updated
  • Passed make installcheck
  • Passed make -C src/test installcheck-cbdb-parallel

Impact

Performance:

User-facing changes:

Dependencies:

Checklist

Additional Context

CI Skip Instructions


Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi, @pjfanning welcome!🎊 Thanks for taking the effort to make our project better! 🙌 Keep making such awesome contributions!

Copy link
Member

@tuhaihe tuhaihe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks!

Copy link
Contributor

@leborchuk leborchuk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

I also checked - there are no other files with "archive.apache.org" address without https

Comment on lines 9 to 14
import urllib.request, urllib.error, urllib.parse
import hashlib

XERCES_SOURCE_URL = "http://archive.apache.org/dist/xerces/c/3/sources/xerces-c-3.1.2.tar.gz"
XERCES_SOURCE_URL = "https://archive.apache.org/dist/xerces/c/3/sources/xerces-c-3.1.2.tar.gz"
XERCES_SOURCE_DIR = "xerces-c-3.1.2"

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the security-conscious intent.

However, this file (src/backend/gporca/concourse/xerces-c/build_xerces.py) is actually dead code — it's a leftover from
the old Concourse CI pipeline that was removed in commit 4dfbcb5 (Feb 2025). The entire src/backend/gporca/concourse/
directory is no longer referenced by any Makefile, CMakeLists, CI workflow, or build script.

The xerces-c library is now built inside Docker containers (see devops/deploy/docker/build/), which already use HTTPS and
a newer version (xerces-c 3.3.0 vs the 3.1.2 referenced here).

So the right fix here would be to remove the src/backend/gporca/concourse/ directory entirely rather than patching it.
Would you like to update this PR to do that instead, or shall we close this and handle it separately?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants