]> BookStack Code Mirror - bookstack/log
bookstack
2 years agoAdded login throttling test, updated reset-pw test method names 3745/head
Dan Brown [Thu, 22 Sep 2022 16:29:38 +0000 (17:29 +0100)]
Added login throttling test, updated reset-pw test method names

2 years agoSplit out registration and pw-reset tests methods
Dan Brown [Thu, 22 Sep 2022 16:15:15 +0000 (17:15 +0100)]
Split out registration and pw-reset tests methods

2 years agoRemoved usage of laravel/ui dependency
Dan Brown [Thu, 22 Sep 2022 15:54:27 +0000 (16:54 +0100)]
Removed usage of laravel/ui dependency

Brings app auth controller handling aligned within the app, rather than
having many overrides of the framwork packages causing confusion and
messiness over time.

2 years agoUpdated auth controllers with property types
Dan Brown [Thu, 22 Sep 2022 14:12:05 +0000 (15:12 +0100)]
Updated auth controllers with property types

2 years agoUpdated translator attribution before release v22.09.1
Dan Brown [Tue, 20 Sep 2022 12:18:41 +0000 (13:18 +0100)]
Updated translator attribution before release v22.09.1

2 years agoNew Crowdin updates (#3710)
Dan Brown [Tue, 20 Sep 2022 12:16:15 +0000 (13:16 +0100)]
New Crowdin updates (#3710)

2 years agoAdded reason, if existing, into SAML acs error
Dan Brown [Tue, 20 Sep 2022 11:52:44 +0000 (12:52 +0100)]
Added reason, if existing, into SAML acs error

Closes #3731

2 years agoAdded extra setlocale format to help windows support
Dan Brown [Tue, 20 Sep 2022 10:59:36 +0000 (11:59 +0100)]
Added extra setlocale format to help windows support

Related to #3650

2 years agoFixed language request link in readme
Dan Brown [Mon, 19 Sep 2022 16:24:21 +0000 (17:24 +0100)]
Fixed language request link in readme

2 years agoMerge pull request #3728 from BookStackApp/php_formatting
Dan Brown [Sun, 18 Sep 2022 14:04:07 +0000 (15:04 +0100)]
Merge pull request #3728 from BookStackApp/php_formatting

Addition of PHPCS for formatting

2 years agoUpdated readme for phpcs usage, aligned gh action workflows 3728/head
Dan Brown [Sun, 18 Sep 2022 13:50:25 +0000 (14:50 +0100)]
Updated readme for phpcs usage, aligned gh action workflows

2 years agoAdded php lint gh action, updated composer scripts
Dan Brown [Sun, 18 Sep 2022 00:56:45 +0000 (01:56 +0100)]
Added php lint gh action, updated composer scripts

2 years agoAdded and ran PHPCS
Dan Brown [Sun, 18 Sep 2022 00:25:20 +0000 (01:25 +0100)]
Added and ran PHPCS

2 years agoAdded a little protection to migration query
Dan Brown [Thu, 8 Sep 2022 11:26:14 +0000 (12:26 +0100)]
Added a little protection to migration query

Just to be sure the query is filtered as expected to only affect
shelf-based images.

2 years agoNew Crowdin updates (#3701)
Dan Brown [Thu, 8 Sep 2022 10:59:57 +0000 (11:59 +0100)]
New Crowdin updates (#3701)

2 years agoUpdated translator attribution
Dan Brown [Thu, 8 Sep 2022 10:58:55 +0000 (11:58 +0100)]
Updated translator attribution

2 years agoMade a range of rtl fixes
Dan Brown [Tue, 6 Sep 2022 20:30:28 +0000 (21:30 +0100)]
Made a range of rtl fixes

Mostly around dropdowns and other items that had right/left specific
styling.
For #3702

2 years agoRemoved old thai files, added romanian as lang option
Dan Brown [Tue, 6 Sep 2022 16:41:32 +0000 (17:41 +0100)]
Removed old thai files, added romanian as lang option

Also applied styleci changes

2 years agoAdded image view access notice to role form
Dan Brown [Tue, 6 Sep 2022 16:20:35 +0000 (17:20 +0100)]
Added image view access notice to role form

Added to clarify the role permission in scenarios where users may have
not read the docs site to understand image access control.

Related to #3688

2 years agoWidened svg content attribute xss filtering
Dan Brown [Tue, 6 Sep 2022 16:01:56 +0000 (17:01 +0100)]
Widened svg content attribute xss filtering

Takes care of additional cases that can occur.
Closes #3705

2 years agoUpdated OIDC group attr option name
Dan Brown [Tue, 6 Sep 2022 15:32:42 +0000 (16:32 +0100)]
Updated OIDC group attr option name

To match the existing option name for display names.
Closes #3704

2 years agoMerge pull request #3698 from BookStackApp/include_theme_event
Dan Brown [Mon, 5 Sep 2022 15:51:01 +0000 (16:51 +0100)]
Merge pull request #3698 from BookStackApp/include_theme_event

Added "page_include_parse" theme event

2 years agoAdded "page_include_parse" theme event 3698/head
Dan Brown [Mon, 5 Sep 2022 15:40:42 +0000 (16:40 +0100)]
Added "page_include_parse" theme event

For custom control of include tag parsing.

2 years agoAdded permission visiblity control to image-delete button
Dan Brown [Mon, 5 Sep 2022 14:52:12 +0000 (15:52 +0100)]
Added permission visiblity control to image-delete button

Includes test to cover.
For #3697

2 years agoWrapped wysiwyg drawing change in editor transaction
Dan Brown [Mon, 5 Sep 2022 14:06:47 +0000 (15:06 +0100)]
Wrapped wysiwyg drawing change in editor transaction

To make the content changes made a undoable transaction that is picked
up as a change.
From my testing, should address #3682

2 years agoAddressed setlocale issue caught by phpstan
Dan Brown [Mon, 5 Sep 2022 12:33:05 +0000 (13:33 +0100)]
Addressed setlocale issue caught by phpstan

setlocale could be called with no second param if the language given to
the modified function was empty.

2 years agoApplied styleci changes, updated composer deps
Dan Brown [Mon, 5 Sep 2022 12:18:37 +0000 (13:18 +0100)]
Applied styleci changes, updated composer deps

2 years agoNew Crowdin updates (#3643)
Dan Brown [Mon, 5 Sep 2022 12:17:10 +0000 (13:17 +0100)]
New Crowdin updates (#3643)

2 years agoUpdated page revisions link visibility
Dan Brown [Sat, 3 Sep 2022 11:32:21 +0000 (12:32 +0100)]
Updated page revisions link visibility

To match the actual visibilities of the revisions listing page and
options.
Related to #2946

2 years agoUpdated & improved language locale handling
Dan Brown [Fri, 2 Sep 2022 18:19:01 +0000 (19:19 +0100)]
Updated & improved language locale handling

Extracted much of the language and locale work to a seperate, focused class.
Updated php set_locale usage to prioritise UTF8 usage.
Added locale options for windows.
Clarified what's a locale and a bookstack language string.

For #3590 and maybe #3650

2 years agoFixed failing tests due to shelf text changes, applied styleci changes
Dan Brown [Fri, 2 Sep 2022 13:47:44 +0000 (14:47 +0100)]
Fixed failing tests due to shelf text changes, applied styleci changes

2 years agoMerge pull request #3693 from BookStackApp/local_secure_restricted
Dan Brown [Fri, 2 Sep 2022 13:41:25 +0000 (14:41 +0100)]
Merge pull request #3693 from BookStackApp/local_secure_restricted

Addition of a `local_secure_restricted` image storage option

2 years agoFixed local_secure_restricted preventing attachment uploads 3693/head
Dan Brown [Fri, 2 Sep 2022 13:40:17 +0000 (14:40 +0100)]
Fixed local_secure_restricted preventing attachment uploads

Due to option name change and therefore lack of handling.
Added test case to cover.

2 years agoAdded test and handling for local_secure_restricted in exports
Dan Brown [Fri, 2 Sep 2022 13:21:43 +0000 (14:21 +0100)]
Added test and handling for local_secure_restricted in exports

2 years agoAdded test to cover secure restricted functionality
Dan Brown [Fri, 2 Sep 2022 13:03:23 +0000 (14:03 +0100)]
Added test to cover secure restricted functionality

2 years agoFixed shelf covers being stored as 'cover_book'
Dan Brown [Fri, 2 Sep 2022 11:54:54 +0000 (12:54 +0100)]
Fixed shelf covers being stored as 'cover_book'

Are now stored as 'cover_bookshelf' as expected.
Added a migrate to alter existing shelf cover image types.

2 years agoStarted work on local_secure_restricted image option
Dan Brown [Thu, 1 Sep 2022 15:17:14 +0000 (16:17 +0100)]
Started work on local_secure_restricted image option

2 years agoAligned bookshelf terminology to consistently be 'Shelf'
Dan Brown [Thu, 1 Sep 2022 13:55:35 +0000 (14:55 +0100)]
Aligned bookshelf terminology to consistently be 'Shelf'

For #3553
EN only, other languages should be handled via CrowdIn

2 years agoFixed missing nested list indent next to floated content
Dan Brown [Thu, 1 Sep 2022 12:11:59 +0000 (13:11 +0100)]
Fixed missing nested list indent next to floated content

Fixes #3672

2 years agoAdded test & update to prevent page creation w/ empty slug
Dan Brown [Thu, 1 Sep 2022 11:53:34 +0000 (12:53 +0100)]
Added test & update to prevent page creation w/ empty slug

Caused by changes to page repo in reference work,
This adds back in the slug generate although at a more central place.
Adds a test case to cover the problematic scenario.

2 years agoFixed lack of url reference updating on book child move
Dan Brown [Tue, 30 Aug 2022 21:12:52 +0000 (22:12 +0100)]
Fixed lack of url reference updating on book child move

2 years agoAdded book child reference handling on book url change
Dan Brown [Tue, 30 Aug 2022 21:00:32 +0000 (22:00 +0100)]
Added book child reference handling on book url change

Closes #3683

2 years agoApplied StyleCi changes, updated php deps
Dan Brown [Mon, 29 Aug 2022 16:46:41 +0000 (17:46 +0100)]
Applied StyleCi changes, updated php deps

2 years agoMerge pull request #3656 from BookStackApp/x_linking
Dan Brown [Mon, 29 Aug 2022 16:45:05 +0000 (17:45 +0100)]
Merge pull request #3656 from BookStackApp/x_linking

Link reference tracking & updating

2 years agoFixed phpstan wanring about usage of static 3656/head
Dan Brown [Mon, 29 Aug 2022 16:39:50 +0000 (17:39 +0100)]
Fixed phpstan wanring about usage of static

2 years agoAdded maintenance action to regenerate references
Dan Brown [Mon, 29 Aug 2022 16:30:26 +0000 (17:30 +0100)]
Added maintenance action to regenerate references

2 years agoMerge pull request #3616 from BookStackApp/oidc_group_sync
Dan Brown [Thu, 25 Aug 2022 10:17:18 +0000 (11:17 +0100)]
Merge pull request #3616 from BookStackApp/oidc_group_sync

Added OIDC group sync functionality

2 years agoUpdated API docs with better request format explanation
Dan Brown [Tue, 23 Aug 2022 16:05:42 +0000 (17:05 +0100)]
Updated API docs with better request format explanation

Explained the content-types accepted by BookStack.
Made it clear that 'Content-Type' is expected on requests.
Added example to shown how to achieve more complex formats using
non-json requests.
Also added link to api-scripts repo.

Related to #3666 and #3652

2 years agoDoubled default revision limit
Dan Brown [Tue, 23 Aug 2022 15:31:34 +0000 (16:31 +0100)]
Doubled default revision limit

Due to potential increase of revision entries due to auto-changes.

2 years agoRolled out reference link updating logic usage
Dan Brown [Sun, 21 Aug 2022 17:05:19 +0000 (18:05 +0100)]
Rolled out reference link updating logic usage

Added test to cover updating of content on reference url change

2 years agoBuilt out cross link replacer, not yet tested
Dan Brown [Sun, 21 Aug 2022 10:29:34 +0000 (11:29 +0100)]
Built out cross link replacer, not yet tested

2 years agoStarted work on reference on-change-updates
Dan Brown [Sat, 20 Aug 2022 20:09:07 +0000 (21:09 +0100)]
Started work on reference on-change-updates

Refactored out revision-specific actions within PageRepo for
organisition and re-use for cross-linking work.

2 years agoAdded entity meta link to reference page
Dan Brown [Sat, 20 Aug 2022 11:07:38 +0000 (12:07 +0100)]
Added entity meta link to reference page

Not totally happy with implementation as is requires extra service to be
injected to core controllers, but does the job.
Included test to cover.
Updated some controller properties to be typed while there.

2 years agoRolled out reference pages to all entities, added testing
Dan Brown [Fri, 19 Aug 2022 21:40:44 +0000 (22:40 +0100)]
Rolled out reference pages to all entities, added testing

Including testing to check permissions applied to listed references.

2 years agoAdded inbound references listing for pages
Dan Brown [Fri, 19 Aug 2022 12:14:43 +0000 (13:14 +0100)]
Added inbound references listing for pages

2 years agoAdded reference handling on page actions
Dan Brown [Wed, 17 Aug 2022 16:37:27 +0000 (17:37 +0100)]
Added reference handling on page actions

Page update/create/restore/clone/delete.
Added a couple of tests to cover a couple of those.

2 years agoAdded regenerate-references command test
Dan Brown [Wed, 17 Aug 2022 15:59:23 +0000 (16:59 +0100)]
Added regenerate-references command test

Also updated model resolvers to only fetch model ID, to prevent bringing
back way more data from database than desired.

2 years agoAdded reference storage system, and command to re-index
Dan Brown [Wed, 17 Aug 2022 13:39:53 +0000 (14:39 +0100)]
Added reference storage system, and command to re-index

Also re-named/orgranized some files for this, to make them "References"
specific instead of a subset of "Util".

2 years agoAdded system to extract model references from HTML content
Dan Brown [Tue, 16 Aug 2022 12:23:53 +0000 (13:23 +0100)]
Added system to extract model references from HTML content

For the start of a managed cross-linking system.

2 years agoRefactored search-based code to its own folder
Dan Brown [Tue, 16 Aug 2022 10:27:22 +0000 (11:27 +0100)]
Refactored search-based code to its own folder

Also applied StyleCI changes

2 years agoMerge pull request #3653 from krsriq/patch-1
Dan Brown [Mon, 15 Aug 2022 21:31:49 +0000 (22:31 +0100)]
Merge pull request #3653 from krsriq/patch-1

Fix typos

2 years agoFix typos 3653/head
Daniel Schmelz [Mon, 15 Aug 2022 20:41:44 +0000 (22:41 +0200)]
Fix typos

2 years agoMerge branch '3636-security-patch' into development
Dan Brown [Thu, 11 Aug 2022 14:15:19 +0000 (15:15 +0100)]
Merge branch '3636-security-patch' into development

2 years agoUpdated translator attribution pre v22.07.3 release
Dan Brown [Thu, 11 Aug 2022 12:17:18 +0000 (13:17 +0100)]
Updated translator attribution pre v22.07.3 release

2 years agoMerge branch 'persian_translate_22_08_10' into development
Dan Brown [Thu, 11 Aug 2022 12:15:15 +0000 (13:15 +0100)]
Merge branch 'persian_translate_22_08_10' into development

2 years agoNew Crowdin updates (#3635)
Dan Brown [Thu, 11 Aug 2022 12:12:55 +0000 (13:12 +0100)]
New Crowdin updates (#3635)

2 years agoAdded content security section to the api docs
Dan Brown [Thu, 11 Aug 2022 09:49:45 +0000 (10:49 +0100)]
Added content security section to the api docs

Related to #3636

2 years agoAdded content filtering of tags with javascript or data in values attr
Dan Brown [Thu, 11 Aug 2022 09:26:33 +0000 (10:26 +0100)]
Added content filtering of tags with javascript or data in values attr

Case would be blocked by CSP but adding for cases where CSP may not be
active when content taken externally.

For #3636

2 years agoCompletion of Persian translation 2022-08-10 3639/head
samad hassan allafi [Wed, 10 Aug 2022 18:25:31 +0000 (22:55 +0430)]
Completion of Persian translation 2022-08-10

2 years agoMerge pull request #3632 from BookStackApp/ownable_permission_fix
Dan Brown [Wed, 10 Aug 2022 16:59:46 +0000 (17:59 +0100)]
Merge pull request #3632 from BookStackApp/ownable_permission_fix

Fixed failed permission checks due to non-loaded fields

2 years agoReduced the memory usage, db queries and cache hits loading revisions
Dan Brown [Wed, 10 Aug 2022 16:50:35 +0000 (17:50 +0100)]
Reduced the memory usage, db queries and cache hits loading revisions

Updated revision listing to only fetch required fields, massively
reducing memory usage by not loading content.
This also updates user avatar handling to effectively cache the avatar
url within request to avoid re-searching from cache, which may improve
performance of others areas of the application.
This also upates handling of the revisions list view to extract table
row to its own view to break things down a bit.

For #3633

2 years agoImproved WYSWYG editor code block layout update
Dan Brown [Wed, 10 Aug 2022 12:51:54 +0000 (13:51 +0100)]
Improved WYSWYG editor code block layout update

To help prevent against empty areas during inital empty-cache loads.
This delays the original layout update a little to give time for the
layout to render as expected.

For #3637

2 years agoFixed failed permission checks due to non-loaded fields 3632/head
Dan Brown [Wed, 10 Aug 2022 07:06:48 +0000 (08:06 +0100)]
Fixed failed permission checks due to non-loaded fields

Added additional exceptions to prevent such cases in the future, so
that they are caught in dev ideally.
Added test case specifically for reported favourite scenario.

2 years agoUpdated translator attribution before release v22.07.2
Dan Brown [Tue, 9 Aug 2022 12:55:26 +0000 (13:55 +0100)]
Updated translator attribution before release v22.07.2

2 years agoMerge pull request #3630 from BookStackApp/export_template_parts
Dan Brown [Tue, 9 Aug 2022 12:51:24 +0000 (13:51 +0100)]
Merge pull request #3630 from BookStackApp/export_template_parts

Export template partials

2 years agoAdded test to cover export body start/end partial usage 3630/head
Dan Brown [Tue, 9 Aug 2022 12:49:42 +0000 (13:49 +0100)]
Added test to cover export body start/end partial usage

2 years agoAdded convenience theme system partials for export layouts
Dan Brown [Tue, 9 Aug 2022 12:46:52 +0000 (13:46 +0100)]
Added convenience theme system partials for export layouts

To allow easier additions to start/end of body tag in export formats.

2 years agoApplied latest styleci changes
Dan Brown [Tue, 9 Aug 2022 12:26:45 +0000 (13:26 +0100)]
Applied latest styleci changes

2 years agoAdded revision activity types to system and audit log
Dan Brown [Tue, 9 Aug 2022 12:25:18 +0000 (13:25 +0100)]
Added revision activity types to system and audit log

Closes #3628

2 years agoNew Crowdin updates (#3625)
Dan Brown [Tue, 9 Aug 2022 12:00:39 +0000 (13:00 +0100)]
New Crowdin updates (#3625)

2 years agoFixed issue preventing selection of activity type in audit log
Dan Brown [Tue, 9 Aug 2022 11:58:10 +0000 (12:58 +0100)]
Fixed issue preventing selection of activity type in audit log

For #3623

2 years agoSet a fairly sensible limit on user name validation
Dan Brown [Tue, 9 Aug 2022 11:40:59 +0000 (12:40 +0100)]
Set a fairly sensible limit on user name validation

Also updated controller properties with types within modified files.
Related to #3614

2 years agoSprinkled in some user language validation
Dan Brown [Thu, 4 Aug 2022 16:24:04 +0000 (17:24 +0100)]
Sprinkled in some user language validation

For #3615

2 years agoAdded OIDC group sync functionality 3616/head
Dan Brown [Tue, 2 Aug 2022 15:56:56 +0000 (16:56 +0100)]
Added OIDC group sync functionality

Is generally aligned with out SAML2 group sync functionality, but for
OIDC based upon feedback in #3004.
Neeeded the tangental addition of being able to define custom scopes on
the initial auth request as some systems use this to provide additional
id token claims such as groups.

Includes tests to cover.
Tested live using Okta.

2 years agoNew Crowdin updates (#3605)
Dan Brown [Tue, 2 Aug 2022 10:31:24 +0000 (11:31 +0100)]
New Crowdin updates (#3605)

2 years agoUpdated cache busting for tinymce library import
Dan Brown [Tue, 2 Aug 2022 10:17:02 +0000 (11:17 +0100)]
Updated cache busting for tinymce library import

Changes from a manual cache buster string to a app-version-based cache
buster, as per our other scripts and styles.

To address #3611

2 years agoNew Crowdin updates (#3600)
Dan Brown [Thu, 28 Jul 2022 13:12:13 +0000 (14:12 +0100)]
New Crowdin updates (#3600)

2 years agoUpdate translators.txt
Dan Brown [Thu, 28 Jul 2022 13:10:14 +0000 (14:10 +0100)]
Update translators.txt

2 years agoUpdated translator attribution pre 22.07 release
Dan Brown [Thu, 28 Jul 2022 13:01:27 +0000 (14:01 +0100)]
Updated translator attribution pre 22.07 release

2 years agoMerge branch 'lang_de' into development
Dan Brown [Wed, 27 Jul 2022 10:20:08 +0000 (11:20 +0100)]
Merge branch 'lang_de' into development

2 years agoMerge pull request #3556 from GongMingCai/development
Dan Brown [Wed, 27 Jul 2022 10:18:05 +0000 (11:18 +0100)]
Merge pull request #3556 from GongMingCai/development

Fixed comment count update error

2 years agoMerge pull request #3545 from BookStackApp/l10n_development
Dan Brown [Wed, 27 Jul 2022 10:15:45 +0000 (11:15 +0100)]
Merge pull request #3545 from BookStackApp/l10n_development

New Crowdin updates

2 years agoMerge branch 'development' of github.com:BookStackApp/BookStack into development
Dan Brown [Wed, 27 Jul 2022 10:08:03 +0000 (11:08 +0100)]
Merge branch 'development' of github.com:BookStackApp/BookStack into development

2 years agoUpdated composer deps, applied StyleCI changes
Dan Brown [Wed, 27 Jul 2022 10:07:41 +0000 (11:07 +0100)]
Updated composer deps, applied StyleCI changes

2 years agoMerge pull request #3599 from BookStackApp/editor_list_shortcuts
Dan Brown [Wed, 27 Jul 2022 10:03:08 +0000 (11:03 +0100)]
Merge pull request #3599 from BookStackApp/editor_list_shortcuts

Add editor shortcuts for two main list types

2 years agoAdded list shortcuts to markdown editor 3599/head
Dan Brown [Wed, 27 Jul 2022 10:01:37 +0000 (11:01 +0100)]
Added list shortcuts to markdown editor

Added some logic for ordered lists to continue the numbering logic,
while keeping the number list format style the same [1. vs 1)]

2 years agoNew translations entities.php (Spanish) 3545/head
Dan Brown [Tue, 26 Jul 2022 19:14:59 +0000 (20:14 +0100)]
New translations entities.php (Spanish)

2 years agoAdded ordered/unordered WYSIWYG list shortcuts
Dan Brown [Tue, 26 Jul 2022 15:35:21 +0000 (16:35 +0100)]
Added ordered/unordered WYSIWYG list shortcuts

Related to #1269

2 years agoNew translations entities.php (German Informal)
Dan Brown [Tue, 26 Jul 2022 12:13:26 +0000 (13:13 +0100)]
New translations entities.php (German Informal)

2 years agoNew translations entities.php (Dutch)
Dan Brown [Tue, 26 Jul 2022 12:13:25 +0000 (13:13 +0100)]
New translations entities.php (Dutch)

Morty Proxy This is a proxified and sanitized view of the page, visit original site.