39
I Use This!
Moderate Activity

News

Analyzed about 1 hour ago. based on code collected about 21 hours ago.
Posted 1 day ago by John Rouillard
changeset 9064d94c686a branch default bookmark ... [More] tag tip user John Rouillard description docs: updates for DNS and wiki backups. files website/README.txt [Less]
Posted 2 days ago by John Rouillard
changeset 430aef3d4827 branch bookmark ... [More] tag user John Rouillard description test: pip installl defusedxml so it's test runs files .github/workflows/ci-test.yml [Less]
Posted 2 days ago by John Rouillard
changeset f8330dafdf9b branch bookmark ... [More] tag user John Rouillard description fix: issue2551438 - password.py Password(encrypted=...) accepts random strings. A REST call using GET returns a password placeholder string of a known form. When submitting (via PUT), the code would set the placeholder as the password. This was fixed in the REST code in an earlier commit. But the fix should be pushed down to the hyperdb/password level so other code (e.g. xmlrpc) doesn't need to deal with detecting this case. This commit pushes detection into the hyperdb.py::Password() and password.py::Password() classes. hyperdb.py: Password.from_raw(...,value) calls password.Password(encrypted=value). If the value is not encrypted, from_raw catches the password.PasswordNotEncrytped exception and calls password.Password.is_placeholder to see if it is a placeholder value. If it is a placeholder value the password.PasswordPlaceholderValue exception is raised. The caller for hyperdb::Password.from_raw should handle this exception. If the value is not a placeholder, a new encrypted Password is returned. If the value is encrypted, it is used as the new password. It is possible for the client to create a valid looking encrypted password that can not be generated by any (known) plaintext. The user will be locked out as a result. They should not do this. password.py: defines two new exceptions based on ValueError: PasswordNotEncrypted and PasswordPlaceholderValue Password.unpack() raises PasswordNotEncrypted if the encrypted value can't be parsed as an encrypted password. rest.py: RestfulInstance.props_from_args catches PasswordPlaceHolderValue and does not include the password in the list of props. A small refactor also happened: props_from_args has a skip_protected=True argument that causes protected values in the props to always be skipped. So it silently ignores client supplied protected props. skip_protected now is False by default. So now an exception is raised/sent to the client if the protected prop is different from its database value: (i.e. the client tried to set it). the property is ignore if the value is unchanged. Two of the three uses of props_from_args set skip_protected to False. The third was used in a POST request which creates an item so there is no reason to have protected properties present. Callers of props_from_args do not set skip_protected. props_from_args now requires skip_protected to be a keyword only argument. rest_common.py: test password change using a plain text password test password change using an encrypted password files roundup/hyperdb.pyroundup/password.pyroundup/rest.pytest/rest_common.py [Less]
Posted 2 days ago by John Rouillard
changeset 0e0361e2e580 branch bookmark ... [More] tag user John Rouillard description build: build xapian 2.1.0 for docker container. Fix xapian that was broken by move to python 3.15. Explicitly build xapian-core and xapian-bindings version 2.1.0. Remove alpine xapian 1.4 packages. Remove unused sed and other scripts from dockerfile needed with 1.4.x versions of xapian. Remove sphinxdeps.txt as a simple apk add/del of sphinx works now. files scripts/Docker/Dockerfilescripts/Docker/sphinxdeps.txt [Less]
Posted 2 days ago by John Rouillard
changeset 11ff77491f79 branch bookmark ... [More] tag user John Rouillard description build(deps): bump ossf/scorecard-action from 2.5.0 to 2.6.0 PR #163 files .github/workflows/ossf-scorecard.yml [Less]
Posted 2 days ago by John Rouillard
changeset 8c2757a5d9f8 branch registerUtil_objects bookmark ... [More] tag user John Rouillard description test: correct setup for test_util_types in TestPostgresWsgiServer Was missing modification and copy of files used in test into tracker. files test/test_liveserver.py [Less]
Posted 2 days ago by John Rouillard
changeset 9deca162bdba branch registerUtil_objects bookmark ... [More] tag user John Rouillard description merge default version 8161c056efcc into branch files roundup/cgi/templating.pytest/test_liveserver.py [Less]
Posted 2 days ago by John Rouillard
changeset 66f4612e8346 branch issue2550923_computed_property bookmark ... [More] tag user John Rouillard description merge default version 8161c056efcc into branch files CHANGES.txtroundup/backends/back_anydbm.pyroundup/backends/rdbms_common.pyroundup/cgi/templating.pyroundup/hyperdb.py [Less]
Posted 2 days ago by John Rouillard
changeset 5bc80354675c branch reactor_pass_changed_oldvalues bookmark ... [More] tag user John Rouillard description an updated version of this branch committed as 8161c056efcc. Closing this branch. files [Less]
Posted 2 days ago by John Rouillard
changeset 8161c056efcc branch bookmark ... [More] tag user John Rouillard description bug: issue2551433 - Restrict values in reactor oldvalues to changed values only. When a reactor is called, it is passed a dictionary of values before they were changed. This oldvalues dict used to contain a full copy of the item before it was updated (including quiet props). This was incorrect according to the design doc. It should have only included changed items similar to an auditor. This patch makes the oldvalues dict contain only changed values. The processing for quiet props used to be done in set_inner() by the backends. This has been moved up a level to set() (in hyperdb) so that the reactor can see quiet props when they are changed. Docs and tests updated along with a couple of example reactors. files CHANGES.txtdetectors/irker.pydoc/design.txtdoc/reference.txtdoc/upgrading.txtroundup/backends/back_anydbm.pyroundup/backends/rdbms_common.pyroundup/hyperdb.pyroundup/roundupdb.pytest/db_test_base.py [Less]