Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: SAP/python-pyodata
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: master
Choose a base ref
...
head repository: SAP/python-pyodata
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: fixNext
Choose a head ref
Checking mergeability… Don’t worry, you can still create the pull request.
  • 1 commit
  • 2 files changed
  • 1 contributor

Commits on Jul 28, 2026

  1. service: resolve relative __next URLs against the service root

    OData v2 permits relative __next values. Previously these were passed
    verbatim into the cross-origin check, which compared an empty scheme/netloc
    against the service origin and always raised PyODataException.
    
    Now _build_request() detects a relative __next (no scheme, no netloc) and
    resolves it via urljoin(self._url, ...) before the origin check. Protocol-
    relative URLs (//host/...) are treated as absolute and validated as before.
    
    Tests added:
    - relative __next resolves to the correct absolute URL and dispatches
    - protocol-relative __next pointing to a foreign host is still rejected
    phanak-sap committed Jul 28, 2026
    Configuration menu
    Copy the full SHA
    49871fa View commit details
    Browse the repository at this point in the history
Loading