3130 Commits

Author SHA1 Message Date
claridtimo c3bf811dde Merge pull request #1 from claridtimo/add-pr-target-hook
Hook battery / PR-target hook battery (push) Has been cancelled
Add fork-PR-target hook (verbatim from bang-game #63) + battery CI gate
2026-07-10 16:38:39 +12:00
Claridtimo 7585e94938 Add fork-PR-target hook (verbatim from bang-game #63) + battery CI gate
Propagates the PreToolUse enforce-pr-target.sh backstop (byte-identical to
claridtimo/bang-game master) that denies any `gh pr create` not explicitly
aimed at claridtimo/*, guarding against accidental PRs on the greyhavens
upstream fork parent. Ships the 103-case regression battery and a CI job
(.github/workflows/hook-battery.yml) that gates it.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01E3cmNbMM8gGpprBy8kcNuV
2026-07-10 16:33:09 +12:00
Michael Bayne 9f0b83a603 Revert "Tell JDBC to use UTC when converting timestamp."
This reverts commit 54afc8490a.

Good lord. Apparently we don't want this. MySQL will _still_ interpret the
timestamp that we send using the connection timezone, which may or may not be
UTC. The _only_ way to ensure sanity is to pin the timezone on the JDBC
connection. Sigh.

I cannot believe that in the year of our lord twenty twenty six, we are
formatting dates and times into strings and sending those to databases.
2026-04-18 17:26:54 -07:00
Michael Bayne 20d547aaac [maven-release-plugin] prepare for next development iteration 2026-04-18 17:07:30 -07:00
Michael Bayne 0aa6948ddb [maven-release-plugin] prepare release samskivert-1.11.4 2026-04-18 17:07:28 -07:00
Michael Bayne 54afc8490a Tell JDBC to use UTC when converting timestamp.
This is apparently the recommended thing to do, but JDBC & SQL handling of
TIMESTAMP and java.sql.Timestamp are pretty abysmal.
2026-04-18 17:05:25 -07:00
Michael Bayne bbed6b1fe2 Merge pull request #7 from samskivert/dependabot/maven/junit-junit-4.13.1
Bump junit from 4.10 to 4.13.1
2026-04-15 18:19:38 +02:00
Michael Bayne ff12ece32a Merge pull request #10 from raygreenwell/master
Tell maven that the file encoding is UTF-8.
2026-04-15 18:18:40 +02:00
Ray J. Greenwell 93f1578140 Tell maven that our file encoding is UTF-8. 2026-04-13 13:29:52 -07:00
Michael Bayne 581450e32e [maven-release-plugin] prepare for next development iteration 2026-03-03 11:40:03 -08:00
Michael Bayne 54d2c4f5c9 [maven-release-plugin] prepare release samskivert-1.11.3 2026-03-03 11:39:58 -08:00
Michael Bayne 052f15d8ba Add support for parameterized queries to Table &c.
Then fix up UserRepository to not concatenate strings. Good lord. 25 years ago
MDB was too lazy.
2026-03-03 11:37:15 -08:00
Michael Bayne 07844dfef3 Expire connections that have been idle too long.
The default is one hour (much less than MySQL's eight hour max idle time) but
it can be configured with `max_idle_minutes` (supplied along with the other
connection provider configuration properties).
2026-02-14 14:22:11 -08:00
Michael Bayne d27c2ff332 [maven-release-plugin] prepare for next development iteration 2026-02-13 09:15:40 -08:00
Michael Bayne 0a650cb1cc [maven-release-plugin] prepare release samskivert-1.11.2 2026-02-13 09:15:36 -08:00
Michael Bayne 9ec4c323e2 Allow longer rollover periods than daily.
Also allow rollover to be disabled.
2026-02-13 08:40:54 -08:00
Michael Bayne 16dbb90d96 Depend on latest Java Mail library. 2026-02-09 09:38:59 -08:00
Michael Bayne bf6ad37f32 [maven-release-plugin] prepare for next development iteration 2026-01-22 09:05:33 -08:00
Michael Bayne 22e52bbd77 [maven-release-plugin] prepare release samskivert-1.11.1 2026-01-22 09:05:30 -08:00
Michael Bayne 8800d4b7e2 Add another "connection timed out" message pattern. 2026-01-22 09:04:30 -08:00
Michael Bayne 22e0aeab4a Remove log4j and log4j2 support.
Projects can make and configure their own shim, but Java logging is a better
default and log4j has been deprecated six ways to Sunday.
2026-01-03 15:25:58 -08:00
Michael Bayne edda9e611d [maven-release-plugin] prepare for next development iteration 2026-01-02 16:29:58 -08:00
Michael Bayne 1525b744cf [maven-release-plugin] prepare release samskivert-1.11 2026-01-02 16:29:54 -08:00
Michael Bayne 4f593a30a7 Migrate from javax.servlet to jakarta.servlet namespace.
The powers that be decided that it would be cool to break everything in the
entire Java universe because they didn't want to negotiate with Oracle the
permission to take over the javax.servlet namespace.

So now we all get to either have two versions of all of our web-related
libraries, or just pick a time to break every downstream dependency and force
them to jump through this renaming hoop as well. Today is the day that we're
forcing the hoop jumping.

h/t to fourbites for starting this whole ball rolling.
2026-01-02 16:26:36 -08:00
Michael Bayne b06a86b37a [maven-release-plugin] prepare for next development iteration 2025-12-02 16:00:14 -08:00
Michael Bayne 46507ae04a [maven-release-plugin] prepare release samskivert-1.10.1 2025-12-02 16:00:11 -08:00
Michael Bayne 65001875b5 Use the proper servlet classloader here.
Otherwise if samskivert.jar is loaded via the root classloader, this will fail
to find classes and resources in the servlet/webapp classloader. Let's not
require that samskivert.jar be duplicated into the webapp in cases where we're
doing complex things like hosting webapps inside larger app servers. That can
cause other fiddly problems with mismatched duplicate copies of classes.
2025-12-02 15:58:13 -08:00
Michael Bayne 1ddc109ed0 [maven-release-plugin] prepare for next development iteration 2025-07-03 13:08:21 -07:00
Michael Bayne 8a8390641e [maven-release-plugin] prepare release samskivert-1.10 2025-07-03 13:08:19 -07:00
Michael Bayne b592e7bca8 Release fixes.
- Nix attempts to link to ancient, no longer in existence, Oracle hosted
Javadocs.

- Manually include code to attach javadocs and source jars during release,
because we no longer get that from the OSS parent pom. We can't use the OSS
parent pom because it redirects release stuff to the ossrh Maven Central
servers that no longer exist. Would be nice if they made and published a new
OSS parent pom. Shrug.
2025-07-03 13:06:16 -07:00
Michael Bayne abfcfc9707 Javadoc fixes. 2025-07-03 13:06:05 -07:00
Michael Bayne 3e1598a82d Switching to new Maven Central publishing plugin. 2025-07-03 12:36:57 -07:00
Michael Bayne f413bac5fc Use result index instead of name.
For whatever reason name is not working. But we only get back one value, so we
can just get it by index (which used SQL's 1-based indexing, whee!).
2025-02-21 14:38:02 -08:00
Michael Bayne 5f4b9f699d Use DriverManager.getConnection().
This is the preferred way to obtain a JDBC connection in this millenium. No
longer does one manually instantiate the JDBC driver by name. The JDBC driver
jar file will have a mapping that indicates that it handles a particular type
of JDBC URL and the JDBC infrastructure will handle instantiating the driver.
2025-02-21 14:18:54 -08:00
Michael Bayne 87c68f2f1c Bump servlet-api to 3.1.0, make cookies http only.
This makes them invisible to JavaScript (which we don't use) to avoid the
danger of someone injecting JavaScript somehow and stealing auth cookies. It's
a dangerous world out there.
2025-02-20 11:41:00 -08:00
Michael Bayne a05da202af Add mechanism to get auto-generated key to JORA.
This assumes that the JDBC driver supports getGeneratedKeys(), which is a safe
bet in these rarified modern times.
2025-02-20 10:32:16 -08:00
Michael Bayne 6c479037e5 Target Java 10. 2025-02-05 11:12:42 -08:00
Michael Bayne e9efe7ca49 Use type parameters. 2025-01-30 13:52:22 -08:00
Michael Bayne d91abf6649 Auto-create the sites and domains tables. 2025-01-20 22:10:50 -08:00
Michael Bayne f18af0cfd0 Actually we do want a specific catalog.
The Connection will be connected to a particular "database" and we want to
restrict the metadata only to things in that database.
2025-01-20 22:10:36 -08:00
Michael Bayne fad635b54b Let's fix all these other spots too. 2025-01-20 14:55:46 -08:00
Michael Bayne 5396a98410 Don't narrow search by catalog or schema.
Apparently null is different from "" and that started to matter some time in
the last twenty five years.
2025-01-20 14:48:54 -08:00
Michael Bayne 26d9abeffc Bump source/target versions.
1.8 is the minimum supported these days.
2025-01-20 14:29:49 -08:00
Michael Bayne c490ad0bc1 Don't depend on hash ordering. 2025-01-20 14:29:41 -08:00
dependabot[bot] 24b06e1589 Bump junit from 4.10 to 4.13.1
Bumps [junit](https://github.com/junit-team/junit4) from 4.10 to 4.13.1.
- [Release notes](https://github.com/junit-team/junit4/releases)
- [Changelog](https://github.com/junit-team/junit4/blob/main/doc/ReleaseNotes4.10.md)
- [Commits](https://github.com/junit-team/junit4/compare/r4.10...r4.13.1)

Signed-off-by: dependabot[bot] <support@github.com>
2020-10-13 09:59:30 +00:00
Michael Bayne a2cc8ec450 Use replacement for Class.newInstance().
It is deprecated as of Java 9, and the replacement is valid for older JVMs.
2019-03-18 19:30:04 -07:00
Michael Bayne faf94721fc Nix Ant build instructions. 2019-03-18 19:22:21 -07:00
Michael Bayne c8d062700d Remove ancient Ant build scripts. 2019-03-18 19:19:59 -07:00
Michael Bayne a64d9ef42b Update nexus plugin. 2016-11-28 21:50:46 -08:00
Michael Bayne b1a418eaa9 Fix some raw types. 2016-11-26 09:27:15 -08:00