Skip to content

Commit

Permalink
NXDRIVE-940: Release 3.0.4
Browse files Browse the repository at this point in the history
* Added Options.server_info
* Updater: Skip exception on 404 errors
* Upgraded SIP from 4.19.6 to 4.19.7
  • Loading branch information
BoboTiG authored Jan 29, 2018
1 parent 34372a4 commit 2de21b1
Show file tree
Hide file tree
Showing 8 changed files with 21 additions and 9 deletions.
8 changes: 6 additions & 2 deletions docs/changes.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# dev
Release date: `2017-??-??`
Release date: `2018-??-??`


# 3.0.4
Release date: `2018-01-29`

### Core
- [NXDRIVE-836](https://jira.nuxeo.com/browse/NXDRIVE-836): Bad behaviors with read-only documents
Expand All @@ -14,7 +18,7 @@ Release date: `2017-??-??`
#### Minor changes
- Framework: Review LocalWatcher class, better use of lock
- GUI: Re-enable the possibility to uncheck a root in the filters window
- Packaging: Upgraded `SIP` from 4.19.3 to 4.19.6
- Packaging: Upgraded `SIP` from 4.19.3 to 4.19.7
- Packaging: Updated `Js2Py` from 0.50 to 0.58
- Packaging: Updated `markdown` from 2.6.10 to 2.6.11
- Packaging: Updated `psutil` from 5.4.2 to 5.4.3
Expand Down
4 changes: 4 additions & 0 deletions docs/technical_changes.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,12 @@
[//]: # (Note 3: keywords ordered [Added, Changed, Moved, Removed])

# dev


# 3.0.4
- Removed `FsClient`
- Removed `LocalWatcher.get_watchdog_queue_size()`
- Added `Options.server_version`
- Added `formatter` keyword to logging_config.py::`configure()`
- Removed logging_config.py::`get_logger()`. Use `logging.getLogger(__name__)` instead.

Expand Down
4 changes: 3 additions & 1 deletion nuxeo-drive-client/nxdrive/engine/engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -891,7 +891,9 @@ def get_local_client(self):
return client

def get_server_version(self):
return self._dao.get_config("server_version")
server_version = self._dao.get_config('server_version')
Options.set('server_version', server_version, setter='server')
return server_version

@pyqtSlot()
def invalidate_client_cache(self):
Expand Down
1 change: 1 addition & 0 deletions nuxeo-drive-client/nxdrive/options.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@ class MetaOptions(type):
'proxy_type': (None, 'default'),
'quit_timeout': (-1, 'default'),
'remote_repo': ('default', 'default'),
'server_version': (None, 'default'),
'theme': ('ui5', 'default'),
'startup_page': ('drive_login.jsp', 'default'),
'stop_on_error': (True, 'default'),
Expand Down
5 changes: 3 additions & 2 deletions nuxeo-drive-client/nxdrive/updater.py
Original file line number Diff line number Diff line change
Expand Up @@ -282,8 +282,9 @@ def _get_client_min_version(self, server_version):
log.debug("Fetched client minimum version for server version %s"
" from %s: %s", server_version, url, version)
return version
except HTTPError:
log.exception('Network error')
except HTTPError as exc:
if exc.code != 404:
log.exception('Network error')
raise MissingUpdateSiteInfo(missing_msg)
except URLError as e:
self._handle_URL_error(e)
Expand Down
4 changes: 2 additions & 2 deletions tools/checksums.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@ f1962bfd4b668d42e12d5ed87b500788 cx_Freeze-4.3.3.zip
fff688dc4968ec80bbb0eedf45de82db python-2.7.14.msi

# SIP
6be5cb2c43915ed450a9f74ec110dada sip-4.19.6.tar.gz
6a4080268c2aa9225965415fe8706967 sip-4.19.6.zip
ae4f2db79713046d61b2a44e5ee1e3ab sip-4.19.7.tar.gz
f8856b709eb92dfb9820d4234854922c sip-4.19.7.zip
2 changes: 1 addition & 1 deletion tools/posix/deploy_jenkins_slave.sh
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ check_vars() {
export WORKSPACE_DRIVE="${WORKSPACE}"
fi
fi
export SIP_VERSION=${SIP_VERSION:=4.19.6} # XXX: SIP_VERSION
export SIP_VERSION=${SIP_VERSION:=4.19.7} # XXX: SIP_VERSION
export CXFREEZE_VERSION=${CXFREEZE_VERSION:=4.3.3} # XXX: CXFREEZE_VERSION
export STORAGE_DIR="${WORKSPACE}/deploy-dir"

Expand Down
2 changes: 1 addition & 1 deletion tools/windows/deploy_jenkins_slave.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ function check_vars {
}
}
if (-Not ($Env:SIP_VERSION)) {
$Env:SIP_VERSION = "4.19.6" # XXX: SIP_VERSION
$Env:SIP_VERSION = "4.19.7" # XXX: SIP_VERSION
}
if (-Not ($Env:CXFREEZE_VERSION)) {
$Env:CXFREEZE_VERSION = "4.3.3" # XXX: CXFREEZE_VERSION
Expand Down

0 comments on commit 2de21b1

Please sign in to comment.