Skip to content

docs(15.10): no-break spaces in permissions, the admin API session and an ok crawl job - #684

Merged
marevol merged 3 commits into
mainfrom
docs/permission-nbsp-api-session-joblog-ok
Nov 28, 2026
Merged

marevol merged 3 commits into
mainfrom
docs/permission-nbsp-api-session-joblog-ok

Conversation

@marevol

@marevol marevol commented Nov 28, 2026

Copy link
Copy Markdown
Contributor

Summary

Three corrections to the 15.10 docs, in all seven languages (ja, en, de, es, fr, ko, zh-cn).

No-break spaces in permission entries (codelibs/fess#3955)

  • admin/webconfig-guide.rst, admin/fileconfig-guide.rst, admin/dataconfig-guide.rst and config/security-role.rst: the whitespace that is refused right after (allow) / (deny) or before {user} / {group} / {role} now says it includes a no-break space, next to the full-width space. PermissionHelper#isSpace counts Character.isSpaceChar as a space, and isSpacedEntry / isInvisibleLeadEntry / isFullWidthSyntaxEntry use it.
  • install/upgrade.rst: the existing no-break space item gains what UPGRADING.md says and it lacked: U+2007 is covered too, such a space is removed at the start and the end of an entry (stripSpaces; 15.9 saved it and the entry matched nobody), and an Admin API POST of a Web, file or data store configuration whose permissions holds only such spaces gets {role}guest like a blank one (PermissionHelper#isBlank in FessApiAdminAction#permissionsOrDefault).

Which API calls stopped creating a session (codelibs/fess#3953)

install/upgrade.rst said that the admin API and /api/v2 stopped creating an HTTP session, and gave an anonymous /api/v2 search as an example. #3953 changes FessRequestManager#saveUserLocaleToSession, which LastaFlute calls for an action. /api/v2 is answered by WebApiFilter, which runs before LastaToActionFilter in web.xml, so it never reached that code, and an anonymous /api/v2 search did not create a session in 15.9 either. The item now names the admin API only, with valid and invalid tokens (including a call refused with 401) as the calls that used to create one.

An ok crawl job is not a complete index

admin/joblog-guide.rst gets a note under Status. The job is ok when the crawler process exits with 0. A document whose write the search engine refuses is logged by IndexingHelper#logFailedItems as Failed to index a document in fess-crawler.log, and the exception is caught in IndexUpdater, so the crawl goes on and ends ok. On Web and file crawls nothing is recorded as a failure URL. The note points to the existing "Index Document Count and Crawl Freshness" section of config/admin-logging.rst.

Verification

  • Each statement was checked against the codelibs/fess main source.
  • The changed files were parsed with docutils (doctitle_xform=False). They report the same diagnostics as before the change: no new warning, and each file still has exactly one top-level section.

…d an ok crawl job

- Permission fields (Web, file and data store config guides, role-based
  search): the whitespace that is refused after (allow)/(deny) or before
  {user}/{group}/{role} also includes a no-break space (#3955).
- Upgrade guide: complete the no-break space item with U+2007, the
  stripping at both ends of an entry and the {role}guest default of an
  Admin API POST whose permissions hold only such spaces.
- Upgrade guide: the HTTP session change of #3953 applies to the admin
  API. /api/v2 is served before the action that saved the locale to the
  session, so an anonymous /api/v2 search did not create a session in
  15.9 either.
- Job log guide: an ok crawl job does not mean every document was
  indexed; a document whose write is refused is only logged as
  "Failed to index a document" in fess-crawler.log.
…api-session-joblog-ok

# Conflicts:
#	de/15.10/install/upgrade.rst
#	en/15.10/install/upgrade.rst
#	es/15.10/install/upgrade.rst
#	fr/15.10/install/upgrade.rst
#	ja/15.10/install/upgrade.rst
#	ko/15.10/install/upgrade.rst
#	zh-cn/15.10/install/upgrade.rst
… an example

A send that throws instead of returning per-item failures leaves a
different warning, and the job status after IndexUpdater gives up was
not traced, so the joblog note no longer states either as certain.
@marevol
marevol merged commit 0fb0567 into main Nov 28, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant