Repository navigation
docs(15.10): no-break spaces in permissions, the admin API session and an ok crawl job - #684
Merged
Merged
Conversation
…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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.rstandconfig/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#isSpacecountsCharacter.isSpaceCharas a space, andisSpacedEntry/isInvisibleLeadEntry/isFullWidthSyntaxEntryuse it.install/upgrade.rst: the existing no-break space item gains whatUPGRADING.mdsays 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 APIPOSTof a Web, file or data store configuration whosepermissionsholds only such spaces gets{role}guestlike a blank one (PermissionHelper#isBlankinFessApiAdminAction#permissionsOrDefault).Which API calls stopped creating a session (codelibs/fess#3953)
install/upgrade.rstsaid that the admin API and/api/v2stopped creating an HTTP session, and gave an anonymous/api/v2search as an example. #3953 changesFessRequestManager#saveUserLocaleToSession, which LastaFlute calls for an action./api/v2is answered byWebApiFilter, which runs beforeLastaToActionFilterinweb.xml, so it never reached that code, and an anonymous/api/v2search 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
okcrawl job is not a complete indexadmin/joblog-guide.rstgets a note under Status. The job isokwhen the crawler process exits with 0. A document whose write the search engine refuses is logged byIndexingHelper#logFailedItemsasFailed to index a documentinfess-crawler.log, and the exception is caught inIndexUpdater, so the crawl goes on and endsok. 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 ofconfig/admin-logging.rst.Verification
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.