Skip to content

Commit 6d76ff7

Browse files
author
Phil Varner
authored
Merge pull request #179 from stac-utils/pv/fix-non-conforming-search-link-resolution
fix non conforming search link resolution and update to 0.3.5
2 parents 64ec0c1 + 1495cb8 commit 6d76ff7

File tree

3 files changed

+10
-5
lines changed

3 files changed

+10
-5
lines changed

CHANGELOG.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,11 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
55
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
66

7-
## [Unreleased]
7+
## [v0.3.5] - 2022-05-26
8+
9+
### Fixed
10+
11+
- Search against earth-search v0 failed with message "object of type 'Link' has no len()" [#179](https://github.com/stac-utils/pystac-client/pull/179)
812

913
## [v0.3.4] - 2022-05-18
1014

@@ -142,7 +146,8 @@ are in a single HTTP session, handle pagination and respects conformance
142146

143147
Initial release.
144148

145-
[Unreleased]: <https://github.com/stac-utils/pystac-client/compare/v0.3.4...main>
149+
[Unreleased]: <https://github.com/stac-utils/pystac-client/compare/v0.3.5...main>
150+
[v0.3.5]: <https://github.com/stac-utils/pystac-client/compare/v0.3.4..v0.3.5>
146151
[v0.3.4]: <https://github.com/stac-utils/pystac-client/compare/v0.3.3..v0.3.4>
147152
[v0.3.3]: <https://github.com/stac-utils/pystac-client/compare/v0.3.2..v0.3.3>
148153
[v0.3.2]: <https://github.com/stac-utils/pystac-client/compare/v0.3.1..v0.3.2>

pystac_client/client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@ def open(
5151
search_link = cat.get_search_link()
5252
# if there is a search link, but no conformsTo advertised, ignore conformance entirely
5353
# NOTE: this behavior to be deprecated as implementations become conformant
54-
if ignore_conformance or ('conformsTo' not in cat.extra_fields.keys()
55-
and len(search_link) > 0):
54+
if ignore_conformance or ('conformsTo' not in cat.extra_fields.keys() and search_link
55+
and search_link.href and len(search_link.href) > 0):
5656
cat._stac_io.set_conformance(None)
5757
return cat
5858

pystac_client/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = '0.3.4'
1+
__version__ = '0.3.5'

0 commit comments

Comments
 (0)