93 Commits
Author SHA1 Message Date
Walker O'Brien 29b0e45381 Merge pull request #144 from walkerobrien-cw/feat/jira-markdown
feat(jira): keep description structure and add comments
2026-10-31 06:23:22 +09:00
Tim Baek e60d106167 Merge pull request #139 from roydonsequeira/fix/sharepoint-children-paging
fix(sharepoint): follow @odata.nextLink when listing folders
2026-10-28 07:52:03 +09:00
Tim Baek cd609ffdd2 Merge pull request #145 from RaphaelFakhri/fix/watcher-ignore-read-events
fix(watch): ignore read-only access events in the watcher
2026-10-28 07:51:25 +09:00
Roydon Sequeira 1bd43d59ca Merge remote-tracking branch 'origin/main' into fix/sharepoint-children-paging
# Conflicts:
#	tests/test_sharepoint.py
2026-10-25 19:47:38 +05:30
Tim Baek 855720ef06 Merge pull request #142 from walkerobrien-cw/fix/alpine-arm64-pymupdf
fix(docker): build the alpine arm64 image without pymupdf
2026-10-25 17:03:01 +09:00
Tim Baek fb013c9ed5 Merge pull request #147 from pakalov/fix/validate-kb-group-rules
fix(validate): check rules for sources that share a KB
2026-10-25 17:02:42 +09:00
Tim Baek bee35919d2 Merge pull request #146 from pakalov/fix/sharepoint-etag-checksum
fix(sharepoint): use the full eTag as file checksum
2026-10-25 17:02:21 +09:00
Timothy Jaeryang Baek b9a87a58be refac 2026-10-21 16:44:55 +09:00
Timothy Jaeryang Baek a079fc6c92 refac v0.6.0 2026-10-21 12:54:24 +09:00
Pasquale Ventrella 65c2be815c fix(validate): check rules for sources that share a KB
oikb validate checked each entry on its own, so a config that sync and the
daemon refuse (e.g. different url or token for one KB) was reported valid.
2026-10-20 23:45:36 +02:00
Pasquale Ventrella c886419bb7 fix(sharepoint): use the full eTag as file checksum
The first 16 characters of a SharePoint eTag fall inside the item GUID, so
new file versions kept the same checksum and were never re-synced.

Closes #135
2026-10-20 23:44:54 +02:00
Raphael Fakhri c2d715aaf5 fix(watch): ignore read-only access events in the watcher 2026-10-19 07:11:51 +00:00
Roydon Sequeira 3e577bf0a9 Merge remote-tracking branch 'origin/main' into fix/sharepoint-children-paging
#137 added tests/test_sharepoint.py as well. Keep its tests as they are and
move the token, site and drive routes out of _mock_graph into _mock_site,
so the paging test can use them without the single-page listings.
2026-10-11 15:15:40 +05:30
Walker O'Brien 66e407895d fix(docker): drop the comment; the commit carries the why 2026-10-10 14:43:55 -04:00
Walker O'Brien 73ae1d83ee fix(docker): build the alpine arm64 image without pymupdf
pymupdf publishes no musllinux aarch64 wheel, and its source build fails
there, so the alpine/arm64 image never built. Only Zotero PDF extraction
imports it, lazily, with a clear error when it is absent.

Refs #126
2026-10-10 14:42:55 -04:00
Tim Baek 672094b707 Merge pull request #141 from walkerobrien-cw/fix/publish-each-flavor
ci(docker): publish each image flavor on its own
2026-10-10 10:34:25 -05:00
Tim Baek 2be218974f Merge pull request #137 from pakalov/feature/sharepoint-root-path
feat(sharepoint): add path option to sync a single library folder
2026-10-10 10:33:28 -05:00
Walker O'Brien 45e79971df ci(docker): publish each image flavor on its own
The merge jobs needed the whole build matrix, so the alpine/arm64 build
failing on pymupdf blocked the default image too and no 0.5.0 tag was
published. Each merge job now runs unless the workflow was cancelled and
publishes only when both of its own arches built.

Refs #126
2026-10-10 11:31:30 -04:00
Tim Baek cbe5102ba2 Merge pull request #128 from djlongy/fix/markdown-upload-content-type
fix: send Markdown uploads as text/markdown
2026-10-10 10:13:28 -05:00
Tim Baek c43c20cf0f Merge pull request #134 from LizardNerd/patch-1
Update bookstack.py - Added the ability to accept/refuse self-signed certs
2026-10-10 10:12:58 -05:00
Tim Baek 9aa0c1035b Merge pull request #140 from glonor/fix/nextcloud-dav-path-encoding
fix: handle Nextcloud DAV path encoding
2026-10-10 10:12:22 -05:00
glonor e295e4c302 fix: handle Nextcloud DAV path encoding 2026-10-09 15:06:15 +02:00
Roydon Sequeira add2172bab fix(sharepoint): follow @odata.nextLink when listing folders
_walk_folder read only the first page of each /children response. Graph
returns 200 children per page by default and links the rest through
@odata.nextLink, so a larger folder was cut short without any error, and
files already synced from the missing pages were deleted from the
Knowledge Base on the next run. A subfolder listed on a later page lost
its whole subtree.

List every page of a folder before walking it. nextLink is an absolute
URL, which httpx sends as given, so this works the same in every cloud.

Fixes #96
2026-10-05 22:15:59 +05:30
Pasquale Ventrella 419a66de79 feat(sharepoint): add path option to sync a single library folder
Scan starts at the given folder and uploaded paths are relative to it.
2026-10-02 05:12:36 +02:00
LizardNerd 636edeafdf Update bookstack.py - Added the ability to accept/refuse self-signed certs 2026-09-29 17:44:43 +02:00
djlongy 191fae4afb fix: send Markdown uploads as text/markdown
The published image runs Python 3.11, whose mimetypes table has no .md
entry, and the slim base ships no /etc/mime.types. httpx then labels
every Markdown upload application/octet-stream. Open WebUI only reads a
file as plain text when the type is text/* or the extension is a known
source extension, so with a content extraction engine configured
(Docling, Tika) each .md went through that engine and came back
re-rendered. Docling in particular breaks GFM tables that contain
inline code.

Fall back to text/markdown for .md and .markdown when mimetypes has no
answer. Registering the type globally with mimetypes.add_type would
also work but changes process-wide state for connectors that embed
oikb.
2026-09-23 18:24:42 +10:00
Tim Baek 5fd27193da Merge pull request #125 from Fyrlex/Fyrlex-patch-1
Add cloud as param to SharePoint connector
2026-09-17 17:49:03 -04:00
Jaren Goldberg fa3b90e245 Rename sharepoint_cloud parameter to cloud 2026-09-17 17:15:03 -04:00
Jaren Goldberg 028512e12d Add sharepoint_cloud parameter to SharePoint connector 2026-09-17 17:12:24 -04:00
Timothy Jaeryang Baek 966ec2352a refac v0.5.0 2026-09-16 15:34:43 -04:00
Timothy Jaeryang Baekandtedk0n 5f15bf1605 feat: support Confluence Data Center and shared knowledge bases
Adapt PR #28 to the current connectors and sync lifecycle. Add v1 and
Bearer authentication, context-path support, robust pagination, and
stable names for colliding Confluence page titles. Preserve existing
single-source paths, macro extraction, and empty-page warnings.

Combine configured sources into one KB-wide manifest for CLI, scheduled,
and webhook syncs. Keep per-source credentials, filters, and schedules;
validate destination paths and close connectors on failed scans before
allowing a diff. Document target-path and shared-KB configuration, and
include server response details in upload errors.

Validated with 39 passing tests, git diff --check, and uv build.

Co-authored-by: tedk0n <4rfer0@gmail.com>
2026-09-16 15:30:55 -04:00
zyberwoof 914f7997fd fix: correct Docker config mount path to /data and improve error message (#44) 2026-09-16 15:25:09 -04:00
c1133ee801 Fixes #30 (#46)
Co-authored-by: DantesVault <your@email.com>
Co-authored-by: Tim Baek <tim@openwebui.com>
2026-09-16 15:24:52 -04:00
Peter LevartandClaude Opus 4.8 c23146a368 fix: read KB files from /knowledge/{id}/files endpoint (#89) (#90)
`validate --deep`, `status`, and `ls` derived the KB file list from
`GET /knowledge/{id}`, whose `files` field is a server-hydrated
convenience that some Open WebUI versions return as null. Reading
`len(kb.get("files", []))` then crashed with "object of type 'NoneType'
has no len()" because .get()'s default only applies to a missing key,
not an explicit null. `ls` silently printed "(empty)" for the same
reason. Sync was unaffected as it uses the server-side /sync/diff
endpoint.

Point the file listing at the real `GET /knowledge/{id}/files`
endpoint (returns {items, total}): fix list_kb_files, add
count_kb_files for the authoritative total, and use them in the
affected commands.

Fixes #89

Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-09-16 15:23:50 -04:00
35628637fd feat(zotero): support multiple Zotero libraries via per-source library ID (#93)
* feat(zotero): support multiple libraries via per-source library ID

Embed an optional numeric library ID in the source string to allow
multiple Zotero libraries to be synced from a single daemon instance:

  source: "zotero:123456:"              # all collections in library 123456
  source: "zotero:123456:Research%%ML"  # specific collection

When a library ID is present the connector resolves credentials from
per-library env vars before falling back to the global defaults:

  ZOTERO_API_KEY_<library_id>      → ZOTERO_API_KEY
  ZOTERO_LIBRARY_TYPE_<library_id> → ZOTERO_LIBRARY_TYPE

Existing source strings ("zotero:" or "zotero:Collection%%Sub") are
fully backward-compatible — collection names are not purely numeric so
there is no ambiguity when parsing.

* refactor(zotero): per-library env var resolution via _zotero_env helper

Introduce _zotero_env(key, library_id, default) which checks
ZOTERO_<KEY>_<library_id> before falling back to ZOTERO_<KEY>. Apply
it uniformly to every configurable setting so that each source entry
in .oikb.yaml can be tuned independently when multiple libraries are
in use:

  ZOTERO_CHECKSUM_<id>              overrides  ZOTERO_CHECKSUM
  ZOTERO_INCLUDE_NOTES_<id>                    ZOTERO_INCLUDE_NOTES
  ZOTERO_INCLUDE_ANNOTATIONS_<id>              ZOTERO_INCLUDE_ANNOTATIONS
  ZOTERO_LIBRARY_TYPE_<id>                     ZOTERO_LIBRARY_TYPE
  ZOTERO_EXCLUDE_<id>                          ZOTERO_EXCLUDE
  ZOTERO_UNFILED_DIR_<id>                      ZOTERO_UNFILED_DIR
  ZOTERO_WEBDAV_{URL,USER,PASSWORD}_<id>       ZOTERO_WEBDAV_*

Single-library setups are unaffected — the helper falls through to the
global vars unchanged.

* fix(sync): skip empty file content before upload

Files with no extractable text (e.g. Zotero items with no fulltext and
no downloadable PDF) were uploaded as zero-byte payloads, causing
Open WebUI to reject them with EMPTY_CONTENT errors on every sync cycle.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

---------

Co-authored-by: Pierre-Louis Suckrow <pierreroutine@mac.speedport.ip>
Co-authored-by: Pierre-Louis Suckrow <pierreroutine@MacBook-Air-von-Pierre-Louis.local>
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-09-16 15:23:38 -04:00
Jaren Goldberg 1969950aaf Feat/sharepoint non root sites (#97)
* feat: add support for non-root sites and subsites

* Refactor SharePointConnector initialization

* Add site_path parameter to SharePoint connector

* Clean up comments in parse_sharepoint_source function

Removed redundant comments and examples from the parse_sharepoint_source function.

* Enhance SharePointConnector for multi-cloud support

Updated SharePoint connector to support multiple cloud environments by adding cloud-specific endpoints. Adjusted token retrieval methods to use the appropriate graph base URL based on the selected cloud.

* fix: reorder default param

* fix: pass source token to gitlab and github connectors

* Add auth parameter to _resolve_connector function

Updated the _resolve_connector function to accept an optional auth parameter, allowing for source-specific credentials to be passed. Modified calls to _resolve_connector throughout the code to include the auth argument where applicable.

* Add auth parameter to connector resolution
2026-09-16 15:23:27 -04:00
Dakota McCarty c7e9eb183a Confluence: keep the text held in macro bodies, skip pages that have none (#104)
`<[^>]+>` treats `<![CDATA[...]]>` as a single tag and deletes it whole, so
everything Confluence keeps in a macro body — code blocks, info and note panels,
expand sections — never reaches the Knowledge Base. The page still syncs, quietly
missing the part that was usually worth reading. Across one 321-page space five
pages were affected, the worst losing 1.3KB of a documented HTML snippet.

Macro bodies are now parked before the markup passes and restored after the
whitespace pass, so a code block survives with its own line breaks, indentation
and angle brackets intact rather than having half of itself stripped as tags.
Block ends become newlines too: everything used to collapse onto one line, which
reads as a single thought and chunks as one.

Link labels are dropped along with their links. `<ac:plain-text-link-body>` holds
the title of another page in the space, and that page syncs as its own file, so
keeping labels turns every section index into a document that is nothing but
titles already in the Knowledge Base.

That leaves pages which genuinely have no text — a blank page, or one holding
only a children-display macro. They extract to zero bytes, and Open WebUI
extracts text as part of POST /files/ and answers a bare 400 for a file it can
get nothing out of, so each one fails on every run for as long as it exists and
the space can never sync clean. read_file now raises SourceFileUnavailable for
them, which run_sync already reports as a warning rather than an error.

Note for anyone with a space already synced: a Confluence checksum is built from
the page version rather than the page text, so pages pick up the better
extraction when their version next changes. Salting the manifest to force one
re-upload would fix that immediately but re-uploads every page of every
Confluence space, so it seemed a call for a maintainer rather than this patch.
2026-09-16 15:23:16 -04:00
Tobias Goerke 8fe00166af Add hierarchical Confluence paths (#107) 2026-09-16 12:00:22 -04:00
Braddandk1rb 4c62921f65 Fix: Increased outline document limit (#98)
Co-authored-by: k1rb <bradd.roberson@protonmail.com>
2026-09-16 11:59:25 -04:00
Jaren Goldberg e5d7a9fe19 Enhance SharePointConnector for multi-cloud support (#103)
* Enhance SharePointConnector for multi-cloud support

Updated SharePoint connector to support multiple cloud environments by adding cloud-specific endpoints. Adjusted token retrieval methods to use the appropriate graph base URL based on the selected cloud.

* fix: reorder default param
2026-09-16 11:59:16 -04:00
crspi 813460655e fix: recurse into Google Drive subfolders (#99) 2026-09-16 11:59:03 -04:00
naamvalandnaamval 6f14b8970e fix Zotero sync specific collections (#109)
* fix Zotero sync specific collections

* Add missing comment

---------

Co-authored-by: naamval <mail@naamval.net>
2026-09-16 11:58:53 -04:00
Jaren Goldberg 545860b353 fix: pass source token to gitlab and github connectors (#119)
* feat: add support for non-root sites and subsites

* Refactor SharePointConnector initialization

* Add site_path parameter to SharePoint connector

* Clean up comments in parse_sharepoint_source function

Removed redundant comments and examples from the parse_sharepoint_source function.

* Enhance SharePointConnector for multi-cloud support

Updated SharePoint connector to support multiple cloud environments by adding cloud-specific endpoints. Adjusted token retrieval methods to use the appropriate graph base URL based on the selected cloud.

* fix: reorder default param

* fix: pass source token to gitlab and github connectors

* Add auth parameter to _resolve_connector function

Updated the _resolve_connector function to accept an optional auth parameter, allowing for source-specific credentials to be passed. Modified calls to _resolve_connector throughout the code to include the auth argument where applicable.

* Add auth parameter to connector resolution
2026-09-16 11:58:18 -04:00
Adam Nych b7fc3d7fad fix(sharepoint): use SHA-1 thumbprint in the x5t assertion header (#120)
Certificate auth built the x5t header from cert.signature_hash_algorithm,
which for any SHA-256-signed certificate is a 32-byte digest. The Microsoft
identity platform matches the registered key on its SHA-1 thumbprint, so
every such certificate was rejected:

  AADSTS700027: The certificate with identifier used to sign the client
  assertion is not registered on application. [Reason - The key was not found.]

Verified against a live Entra app registration: identical assertion, only
the x5t digest swapped, turns the 401 into an issued token.
2026-09-16 11:58:06 -04:00
Adam Nych f370f3480a fix(sharepoint): percent-encode item paths in Graph URLs (#121)
Folder and file names were interpolated into the /root:/{path}: addressing
form as-is. A name containing '#' truncates the request at the fragment
marker, so walking a library with a folder like '#Archive' asks Graph for
/drives/{id}/root:/ and gets 400; '?', '%' and other reserved characters
are wrong in the same way, and read_file has the same flaw on download.

Encode with quote() so only the separators stay structural.
2026-09-16 11:57:53 -04:00
Timothy Jaeryang Baekandhexsm 26bbdc9f24 refac
Co-Authored-By: hexsm <255071365+hexsm@users.noreply.github.com>
2026-08-01 00:13:08 -04:00
Timothy Jaeryang BaekandOlivier Cornelis 988c2e8111 refac
Co-Authored-By: Olivier Cornelis <26625900+thiswillbeyourgithub@users.noreply.github.com>
2026-08-01 00:12:54 -04:00
Timothy Jaeryang Baek f99d2e66e7 refac v0.4.0 2026-07-17 16:16:41 -04:00
Timothy Jaeryang Baek 1287e660b0 refac 2026-07-17 15:56:22 -04:00
Timothy Jaeryang Baek 6158eefb40 refac 2026-07-17 15:50:34 -04:00