]> BookStack Code Mirror - bookstack/log
bookstack
3 years agoNew Crowdin updates (#3023)
Dan Brown [Mon, 1 Nov 2021 13:16:15 +0000 (13:16 +0000)]
New Crowdin updates (#3023)

* New translations errors.php (Polish)

* New translations activities.php (Dutch)

* New translations auth.php (Dutch)

* New translations common.php (Dutch)

* New translations entities.php (Dutch)

* New translations auth.php (Dutch)

* New translations auth.php (Dutch)

* New translations auth.php (Dutch)

* New translations settings.php (Latvian)

3 years agoUpdated AzureAD provider to use microsoft graph
Dan Brown [Sun, 31 Oct 2021 13:08:01 +0000 (13:08 +0000)]
Updated AzureAD provider to use microsoft graph

Since AzureAD graph is going away.
Tested using old AzureAD graph usage for backwards-compatbility, did not
seem to break things. Could not test with conditional access though due
to azure never enforcing it no matter what I attempted.

Fpr #3028

3 years agoUpdated sponsor link
Dan Brown [Sat, 30 Oct 2021 10:51:49 +0000 (11:51 +0100)]
Updated sponsor link

3 years agoAdded sponsors to readme, updated license file
Dan Brown [Fri, 29 Oct 2021 20:37:10 +0000 (21:37 +0100)]
Added sponsors to readme, updated license file

3 years agoNew Crowdin updates (#3014)
Dan Brown [Thu, 28 Oct 2021 14:55:13 +0000 (15:55 +0100)]
New Crowdin updates (#3014)

* New translations entities.php (Estonian)

* New translations entities.php (Estonian)

3 years agoMade further changes to page image extraction validation
Dan Brown [Thu, 28 Oct 2021 14:54:00 +0000 (15:54 +0100)]
Made further changes to page image extraction validation

Fixes #3019
Increased testing to cover the failing case amoung others.

3 years agoAdded test to cover #3010
Dan Brown [Wed, 27 Oct 2021 11:29:01 +0000 (12:29 +0100)]
Added test to cover #3010

3 years agoMerge branch 'master' of https://github.com/haxatron/BookStack into haxatron_upload_issue
Dan Brown [Wed, 27 Oct 2021 11:21:27 +0000 (12:21 +0100)]
Merge branch 'master' of https://github.com/haxatron/BookStack into haxatron_upload_issue

3 years agoNew Crowdin updates (#3006)
Dan Brown [Wed, 27 Oct 2021 11:17:53 +0000 (12:17 +0100)]
New Crowdin updates (#3006)

* New translations auth.php (Latvian)

* New translations errors.php (Latvian)

* New translations auth.php (Latvian)

* New translations entities.php (Latvian)

* New translations settings.php (Latvian)

* New translations settings.php (Estonian)

* New translations entities.php (Estonian)

* New translations settings.php (Estonian)

* New translations validation.php (Estonian)

* New translations entities.php (Estonian)

* New translations settings.php (Spanish, Argentina)

* New translations settings.php (Vietnamese)

* New translations settings.php (Slovenian)

* New translations settings.php (Swedish)

* New translations settings.php (Turkish)

* New translations settings.php (Ukrainian)

* New translations settings.php (Chinese Simplified)

* New translations settings.php (Chinese Traditional)

* New translations settings.php (Portuguese, Brazilian)

* New translations settings.php (Russian)

* New translations settings.php (Indonesian)

* New translations settings.php (Persian)

* New translations settings.php (Croatian)

* New translations settings.php (Latvian)

* New translations settings.php (Bosnian)

* New translations settings.php (Norwegian Bokmal)

* New translations settings.php (Slovak)

* New translations settings.php (Portuguese)

* New translations settings.php (Polish)

* New translations settings.php (Catalan)

* New translations settings.php (Estonian)

* New translations settings.php (Japanese)

* New translations settings.php (French)

* New translations settings.php (Spanish)

* New translations settings.php (Arabic)

* New translations settings.php (Bulgarian)

* New translations settings.php (Czech)

* New translations settings.php (Dutch)

* New translations settings.php (Danish)

* New translations settings.php (German)

* New translations settings.php (Hebrew)

* New translations settings.php (Hungarian)

* New translations settings.php (Italian)

* New translations settings.php (Korean)

* New translations settings.php (Lithuanian)

* New translations settings.php (German Informal)

* New translations settings.php (Polish)

* New translations settings.php (French)

* New translations settings.php (German)

* New translations settings.php (German Informal)

3 years agoAdded security policy md file
Dan Brown [Tue, 26 Oct 2021 15:09:41 +0000 (16:09 +0100)]
Added security policy md file

3 years agoMerge pull request #3008 from IndrekHaav/et-typo
Dan Brown [Tue, 26 Oct 2021 12:33:27 +0000 (13:33 +0100)]
Merge pull request #3008 from IndrekHaav/et-typo

Minor capitalisation fix for Estonian

3 years agoUpdated php deps
Dan Brown [Tue, 26 Oct 2021 12:12:40 +0000 (13:12 +0100)]
Updated php deps

Also removes abandoned status of sebastian/resource-operations as per
issue #3007

3 years agoMinor capitalisation fix for Estonian 3008/head
Indrek Haav [Tue, 26 Oct 2021 12:09:38 +0000 (15:09 +0300)]
Minor capitalisation fix for Estonian

3 years agoUpdate ImageRepo.php
Haxatron [Tue, 26 Oct 2021 01:39:16 +0000 (09:39 +0800)]
Update ImageRepo.php

fix image validation vulnerability

3 years agoNew Crowdin updates (#3005)
Dan Brown [Mon, 25 Oct 2021 14:01:32 +0000 (15:01 +0100)]
New Crowdin updates (#3005)

* New translations settings.php (Spanish, Argentina)

* New translations settings.php (Polish)

* New translations settings.php (Estonian)

* New translations errors.php (Spanish, Argentina)

* New translations settings.php (Japanese)

* New translations activities.php (German Informal)

* New translations auth.php (German Informal)

* New translations settings.php (French)

* New translations settings.php (Spanish)

* New translations settings.php (Arabic)

* New translations settings.php (Bulgarian)

* New translations settings.php (Catalan)

* New translations settings.php (Norwegian Bokmal)

* New translations settings.php (German Informal)

* New translations settings.php (Bosnian)

* New translations settings.php (Czech)

* New translations settings.php (Slovak)

* New translations settings.php (Danish)

* New translations settings.php (German)

* New translations settings.php (Hebrew)

* New translations settings.php (Hungarian)

* New translations settings.php (Italian)

* New translations settings.php (Korean)

* New translations settings.php (Lithuanian)

* New translations settings.php (Dutch)

* New translations settings.php (Portuguese)

* New translations settings.php (Russian)

* New translations settings.php (Slovenian)

* New translations settings.php (Latvian)

* New translations settings.php (Swedish)

* New translations settings.php (Turkish)

* New translations settings.php (Ukrainian)

* New translations settings.php (Chinese Simplified)

* New translations settings.php (Chinese Traditional)

* New translations settings.php (Vietnamese)

* New translations settings.php (Portuguese, Brazilian)

* New translations settings.php (Indonesian)

* New translations settings.php (Persian)

* New translations settings.php (Croatian)

* New translations validation.php (German Informal)

3 years agoUpdated translators before v21.10 release
Dan Brown [Mon, 25 Oct 2021 13:49:21 +0000 (14:49 +0100)]
Updated translators before v21.10 release

3 years agoAdded estonian to language logic
Dan Brown [Mon, 25 Oct 2021 13:49:03 +0000 (14:49 +0100)]
Added estonian to language logic

3 years agoNew Crowdin updates (#2983)
Dan Brown [Mon, 25 Oct 2021 12:51:27 +0000 (13:51 +0100)]
New Crowdin updates (#2983)

* New translations auth.php (Polish)

* New translations common.php (Polish)

* New translations entities.php (Polish)

* New translations auth.php (Polish)

* New translations common.php (Polish)

* New translations settings.php (Polish)

* New translations validation.php (Polish)

* New translations activities.php (Estonian)

* New translations auth.php (Estonian)

* New translations common.php (Estonian)

* New translations components.php (Estonian)

* New translations entities.php (Estonian)

* New translations errors.php (Estonian)

* New translations pagination.php (Estonian)

* New translations passwords.php (Estonian)

* New translations settings.php (Estonian)

* New translations validation.php (Estonian)

* New translations activities.php (Estonian)

* New translations activities.php (Estonian)

* New translations auth.php (Estonian)

* New translations common.php (Estonian)

* New translations components.php (Estonian)

* New translations entities.php (Estonian)

* New translations pagination.php (Estonian)

* New translations passwords.php (Estonian)

* New translations entities.php (Estonian)

* New translations errors.php (Estonian)

* New translations validation.php (Estonian)

* New translations settings.php (Estonian)

* New translations auth.php (Estonian)

* New translations entities.php (Estonian)

* New translations passwords.php (Estonian)

* New translations settings.php (Estonian)

* New translations auth.php (Estonian)

* New translations entities.php (Estonian)

* New translations errors.php (Estonian)

* New translations settings.php (Estonian)

* New translations settings.php (Estonian)

* New translations errors.php (German)

* New translations errors.php (Portuguese, Brazilian)

* New translations errors.php (Swedish)

* New translations errors.php (Turkish)

* New translations errors.php (Ukrainian)

* New translations errors.php (Chinese Simplified)

* New translations errors.php (Chinese Traditional)

* New translations errors.php (Vietnamese)

* New translations errors.php (Indonesian)

* New translations errors.php (Slovak)

* New translations errors.php (Persian)

* New translations errors.php (Spanish, Argentina)

* New translations errors.php (Croatian)

* New translations errors.php (Latvian)

* New translations errors.php (Bosnian)

* New translations errors.php (Norwegian Bokmal)

* New translations errors.php (Slovenian)

* New translations errors.php (Russian)

* New translations errors.php (Estonian)

* New translations errors.php (Danish)

* New translations errors.php (French)

* New translations errors.php (Spanish)

* New translations errors.php (Arabic)

* New translations errors.php (Bulgarian)

* New translations errors.php (Catalan)

* New translations errors.php (Czech)

* New translations errors.php (Hebrew)

* New translations errors.php (Portuguese)

* New translations errors.php (Hungarian)

* New translations errors.php (Italian)

* New translations errors.php (Japanese)

* New translations errors.php (Korean)

* New translations errors.php (Lithuanian)

* New translations errors.php (Dutch)

* New translations errors.php (Polish)

* New translations errors.php (German Informal)

* New translations errors.php (Spanish)

* New translations auth.php (Estonian)

* New translations entities.php (Estonian)

* New translations errors.php (Estonian)

* New translations activities.php (Japanese)

* New translations activities.php (Japanese)

* New translations auth.php (Japanese)

* New translations components.php (Japanese)

* New translations passwords.php (Japanese)

* New translations errors.php (Estonian)

* New translations settings.php (Estonian)

* New translations validation.php (Estonian)

* New translations errors.php (French)

* New translations activities.php (Japanese)

* New translations settings.php (Japanese)

* New translations entities.php (Japanese)

* New translations settings.php (Japanese)

* New translations common.php (Japanese)

* New translations settings.php (Japanese)

* New translations settings.php (Japanese)

* New translations entities.php (Japanese)

* New translations settings.php (Japanese)

* New translations settings.php (Japanese)

* New translations entities.php (Japanese)

* New translations settings.php (Japanese)

* New translations common.php (Japanese)

* New translations errors.php (Polish)

* New translations auth.php (Estonian)

* New translations components.php (Estonian)

* New translations entities.php (Estonian)

* New translations validation.php (Estonian)

* New translations errors.php (Estonian)

* New translations settings.php (Estonian)

* New translations errors.php (Chinese Simplified)

* New translations auth.php (Japanese)

* New translations auth.php (Japanese)

* New translations common.php (Japanese)

* New translations entities.php (Japanese)

* New translations errors.php (Italian)

* New translations common.php (Japanese)

* New translations auth.php (Italian)

* New translations entities.php (Italian)

* New translations entities.php (Japanese)

* New translations settings.php (Japanese)

* New translations common.php (Japanese)

* New translations entities.php (Japanese)

* New translations entities.php (Estonian)

* New translations settings.php (Estonian)

* New translations validation.php (Japanese)

* New translations errors.php (Japanese)

* New translations validation.php (Japanese)

* New translations auth.php (Japanese)

* New translations settings.php (Japanese)

* New translations activities.php (Indonesian)

* New translations auth.php (Indonesian)

* New translations validation.php (Estonian)

* New translations settings.php (Estonian)

3 years agoTweaked sidepart list item padding, Review of #3000
Dan Brown [Sat, 23 Oct 2021 21:03:03 +0000 (22:03 +0100)]
Tweaked sidepart list item padding, Review of #3000

- Scoped padding change to just entity-list-items within the sidebar
  side reduction of right-hand-padding to zero was causing other
  entity-list-items, such as those in the homepage listing, would then
  have no padding.
- Updated styles to use css logical properties to retain support for RTL
  languages such as Arabic, where the whole interface flips around.
  Related: https://css-tricks.com/css-logical-properties-and-values/

3 years agoMerge branch 'fix_sidebar_css' of https://github.com/ffranchina/BookStack into ffranc...
Dan Brown [Sat, 23 Oct 2021 20:54:25 +0000 (21:54 +0100)]
Merge branch 'fix_sidebar_css' of https://github.com/ffranchina/BookStack into ffranchina-fix_sidebar_css

3 years agoReviewed SAML SLS changes for ADFS, #2902
Dan Brown [Sat, 23 Oct 2021 16:26:01 +0000 (17:26 +0100)]
Reviewed SAML SLS changes for ADFS, #2902

- Migrated env usages to config.
- Removed potentially unneeded config options or auto-set signed options
  based upon provision of certificate.
- Aligned SP certificate env option naming with similar IDP option.

Tested via AFDS on windows server 2019. To test on other providers.

3 years agoFixes padding issues of the sidebar's items 3000/head
Francesco Franchina [Thu, 21 Oct 2021 23:34:41 +0000 (01:34 +0200)]
Fixes padding issues of the sidebar's items

3 years agoMerge branch 'master' of https://github.com/theodor-franke/BookStack into theodor...
Dan Brown [Thu, 21 Oct 2021 13:04:23 +0000 (14:04 +0100)]
Merge branch 'master' of https://github.com/theodor-franke/BookStack into theodor-franke-master

3 years agoApplied styleci changes
Dan Brown [Wed, 20 Oct 2021 12:40:27 +0000 (13:40 +0100)]
Applied styleci changes

3 years agoMerge pull request #2996 from BookStackApp/saml2_acs_session
Dan Brown [Wed, 20 Oct 2021 12:38:35 +0000 (13:38 +0100)]
Merge pull request #2996 from BookStackApp/saml2_acs_session

Updated SAML ACS post to retain user session

3 years agoUpdated SAML ACS post to retain user session 2996/head
Dan Brown [Wed, 20 Oct 2021 12:30:45 +0000 (13:30 +0100)]
Updated SAML ACS post to retain user session

Session was being lost due to the callback POST request cookies
not being provided due to samesite=lax. This instead adds an additional
hop in the flow to route the request via a GET request so the session is
retained. SAML POST data is stored encrypted in cache via a unique ID
then pulled out straight afterwards, and restored into POST for the SAML
toolkit to validate.

Updated testing to cover.

3 years agoApplied latest changes from styleCI
Dan Brown [Wed, 20 Oct 2021 09:49:45 +0000 (10:49 +0100)]
Applied latest changes from styleCI

3 years agoMerge pull request #2986 from BookStackApp/attachments_api
Dan Brown [Wed, 20 Oct 2021 09:46:35 +0000 (10:46 +0100)]
Merge pull request #2986 from BookStackApp/attachments_api

Attachments API

3 years agoAdjusted API docs table 2986/head
Dan Brown [Wed, 20 Oct 2021 09:46:06 +0000 (10:46 +0100)]
Adjusted API docs table

3 years agoAdded attachment API examples during manual testing
Dan Brown [Wed, 20 Oct 2021 09:43:03 +0000 (10:43 +0100)]
Added attachment API examples during manual testing

3 years agoAdded TestCase for attachments API methods
Dan Brown [Tue, 19 Oct 2021 23:58:56 +0000 (00:58 +0100)]
Added TestCase for attachments API methods

3 years agoFixed bug report yaml formatting
Dan Brown [Tue, 19 Oct 2021 14:15:35 +0000 (15:15 +0100)]
Fixed bug report yaml formatting

3 years agoUpdate support_request.yml
Dan Brown [Tue, 19 Oct 2021 13:52:00 +0000 (14:52 +0100)]
Update support_request.yml

3 years agoConverted issues templates to forms
Dan Brown [Tue, 19 Oct 2021 13:49:49 +0000 (14:49 +0100)]
Converted issues templates to forms

Added support request template

3 years agoUpdate language_request.yml
Dan Brown [Tue, 19 Oct 2021 13:07:45 +0000 (14:07 +0100)]
Update language_request.yml

3 years agoDelete language_request.md
Dan Brown [Tue, 19 Oct 2021 13:06:53 +0000 (14:06 +0100)]
Delete language_request.md

3 years agoCreate language_request.yml
Dan Brown [Tue, 19 Oct 2021 13:05:34 +0000 (14:05 +0100)]
Create language_request.yml

3 years agoBuild out core attachments API controller
Dan Brown [Mon, 18 Oct 2021 16:46:55 +0000 (17:46 +0100)]
Build out core attachments API controller

Related to #2942

3 years agoAdded phpseclib to readme
Dan Brown [Mon, 18 Oct 2021 10:43:54 +0000 (11:43 +0100)]
Added phpseclib to readme

3 years agoAdded base64 image extraction to markdown page content
Dan Brown [Mon, 18 Oct 2021 10:42:50 +0000 (11:42 +0100)]
Added base64 image extraction to markdown page content

- Included tests to cover.
- Manually tested via API update and interface page update.

Closes #2898

3 years agoApplied latest styles changes from style CI
Dan Brown [Sat, 16 Oct 2021 15:01:59 +0000 (16:01 +0100)]
Applied latest styles changes from style CI

3 years agoMerge branch 'oidc'
Dan Brown [Sat, 16 Oct 2021 14:50:50 +0000 (15:50 +0100)]
Merge branch 'oidc'

3 years agoUpdated readme with latest version info
Dan Brown [Fri, 15 Oct 2021 13:30:49 +0000 (14:30 +0100)]
Updated readme with latest version info

Also updated version file to be current

3 years agoNew Crowdin updates (#2980)
Dan Brown [Fri, 15 Oct 2021 13:17:32 +0000 (14:17 +0100)]
New Crowdin updates (#2980)

* New translations entities.php (Spanish, Argentina)

* New translations activities.php (Spanish, Argentina)

* New translations auth.php (Spanish, Argentina)

* New translations settings.php (Spanish, Argentina)

* New translations validation.php (Spanish, Argentina)

* New translations auth.php (Spanish, Argentina)

3 years agoApplied latest styleci changes
Dan Brown [Fri, 15 Oct 2021 13:16:45 +0000 (14:16 +0100)]
Applied latest styleci changes

3 years agoUpdated php dependancies
Dan Brown [Fri, 15 Oct 2021 12:15:32 +0000 (13:15 +0100)]
Updated php dependancies

3 years agoFixed guest user email showing in TOTP setup url
Dan Brown [Thu, 14 Oct 2021 17:02:16 +0000 (18:02 +0100)]
Fixed guest user email showing in TOTP setup url

- Occured during enforced MFA setup upon login.
- Added test to cover.

Fixes #2971

3 years agoMerge pull request #2977 from BookStackApp/custom_debug_view
Dan Brown [Thu, 14 Oct 2021 16:41:06 +0000 (17:41 +0100)]
Merge pull request #2977 from BookStackApp/custom_debug_view

Added custom whoops-based debug view

3 years agoAdded testing to cover debug view 2977/head
Dan Brown [Thu, 14 Oct 2021 16:40:22 +0000 (17:40 +0100)]
Added testing to cover debug view

3 years agoAdded custom whoops-based debug view
Dan Brown [Thu, 14 Oct 2021 14:33:08 +0000 (15:33 +0100)]
Added custom whoops-based debug view

Provides a simple bookstack focused view that does not rely on JavaScript.
Contains links to BookStack specific resources in addition to commonly
desired debug details.

3 years agoFixed lack of oidc discovery filtering during testing 2960/head
Dan Brown [Thu, 14 Oct 2021 12:37:55 +0000 (13:37 +0100)]
Fixed lack of oidc discovery filtering during testing

Tested oidc system on okta, Keycloak & Auth0

3 years agoFleshed out testing for OIDC system
Dan Brown [Wed, 13 Oct 2021 15:51:27 +0000 (16:51 +0100)]
Fleshed out testing for OIDC system

3 years agoRenamed OIDC files to all be aligned
Dan Brown [Tue, 12 Oct 2021 22:04:28 +0000 (23:04 +0100)]
Renamed OIDC files to all be aligned

3 years agoAdded OIDC basic autodiscovery support
Dan Brown [Tue, 12 Oct 2021 22:00:52 +0000 (23:00 +0100)]
Added OIDC basic autodiscovery support

3 years agoAdded further OIDC core class testing
Dan Brown [Tue, 12 Oct 2021 15:48:54 +0000 (16:48 +0100)]
Added further OIDC core class testing

3 years agoAdded positive test case for OIDC implementation
Dan Brown [Mon, 11 Oct 2021 23:01:51 +0000 (00:01 +0100)]
Added positive test case for OIDC implementation

- To continue coverage and spec cases next.

3 years agoGot OIDC custom solution to a functional state
Dan Brown [Mon, 11 Oct 2021 22:00:45 +0000 (23:00 +0100)]
Got OIDC custom solution to a functional state

- Validation of all key/token elements now in place.
- Signing key system updated to work with jwk-style array or with
  file:// path to pem key.

3 years agoAdded token and key handling elements for oidc jwt
Dan Brown [Mon, 11 Oct 2021 18:05:16 +0000 (19:05 +0100)]
Added token and key handling elements for oidc jwt

- Got basic signing support and structure checking done.
- Need to run through actual claim checking before providing details
  back to app.

3 years agoMerge pull request #2965 from Haxatron/master
Dan Brown [Mon, 11 Oct 2021 09:25:28 +0000 (10:25 +0100)]
Merge pull request #2965 from Haxatron/master

Update DOMPDF chroot directory

3 years agoStarted on a custom oidc oauth provider
Dan Brown [Sun, 10 Oct 2021 18:14:08 +0000 (19:14 +0100)]
Started on a custom oidc oauth provider

3 years agoUpdate dompdf.php 2965/head
Haxatron [Sat, 9 Oct 2021 17:06:08 +0000 (01:06 +0800)]
Update dompdf.php

base_path => public_path

3 years agoAdded throttling to password reset requests
Dan Brown [Fri, 8 Oct 2021 22:19:37 +0000 (23:19 +0100)]
Added throttling to password reset requests

3 years agoUpdated translator attribution before release v21.08.5
Dan Brown [Fri, 8 Oct 2021 21:24:32 +0000 (22:24 +0100)]
Updated translator attribution before release v21.08.5

3 years agoApplied changes from styleci
Dan Brown [Fri, 8 Oct 2021 21:23:17 +0000 (22:23 +0100)]
Applied changes from styleci

3 years agoNew Crowdin updates (#2953)
Dan Brown [Fri, 8 Oct 2021 21:22:01 +0000 (22:22 +0100)]
New Crowdin updates (#2953)

* New translations settings.php (Chinese Simplified)

* New translations entities.php (Slovak)

* New translations entities.php (Portuguese, Brazilian)

* New translations entities.php (Slovenian)

* New translations entities.php (Swedish)

* New translations entities.php (Turkish)

* New translations entities.php (Ukrainian)

* New translations entities.php (Chinese Simplified)

* New translations entities.php (Chinese Traditional)

* New translations entities.php (Indonesian)

* New translations entities.php (Portuguese)

* New translations entities.php (Persian)

* New translations entities.php (Spanish, Argentina)

* New translations entities.php (Croatian)

* New translations entities.php (Latvian)

* New translations entities.php (Bosnian)

* New translations entities.php (Norwegian Bokmal)

* New translations entities.php (Russian)

* New translations entities.php (Polish)

* New translations entities.php (Vietnamese)

* New translations entities.php (Danish)

* New translations entities.php (French)

* New translations entities.php (Spanish)

* New translations entities.php (Arabic)

* New translations entities.php (Bulgarian)

* New translations entities.php (Catalan)

* New translations entities.php (Czech)

* New translations entities.php (German)

* New translations entities.php (Dutch)

* New translations entities.php (Hebrew)

* New translations entities.php (Hungarian)

* New translations entities.php (Italian)

* New translations entities.php (Japanese)

* New translations entities.php (Korean)

* New translations entities.php (Lithuanian)

* New translations entities.php (German Informal)

* New translations entities.php (French)

* New translations entities.php (Spanish)

* New translations settings.php (Czech)

* New translations entities.php (Czech)

* New translations activities.php (Czech)

* New translations auth.php (Czech)

* New translations common.php (Czech)

* New translations validation.php (Czech)

* New translations entities.php (Portuguese)

* New translations settings.php (Portuguese)

* New translations entities.php (Portuguese)

* New translations activities.php (Portuguese)

* New translations auth.php (Portuguese)

* New translations common.php (Portuguese)

* New translations validation.php (Portuguese)

* New translations entities.php (Chinese Simplified)

* New translations entities.php (Chinese Simplified)

* New translations activities.php (Ukrainian)

* New translations activities.php (Ukrainian)

3 years agoAdded testing to cover work done in last commit
Dan Brown [Fri, 8 Oct 2021 20:47:59 +0000 (21:47 +0100)]
Added testing to cover work done in last commit

Relevant to comments in 7224fbcc89f00f2b71644e36bb1b1d96addd1d5a.
Added test cases. Ensured they failed pre-commit.
Also tested a range of the altered endpoints manually on both local and
s3-like filesystems.

3 years agoAdded protections against path traversal in file system operations
Dan Brown [Fri, 8 Oct 2021 16:47:14 +0000 (17:47 +0100)]
Added protections against path traversal in file system operations

- Files within the storage/ path could be accessed via path traversal
  references in content, accessed upon HTML export.
- This addresses this via two layers:
  - Scoped local flysystem filesystems down to the specific image &
    file folders since flysystem has built-in checking against the
    escaping of the root folder.
  - Added path normalization before enforcement of uploads/{images,file}
    prefix to prevent traversal at a path level.

Thanks to @Haxatron via huntr.dev for discovery and reporting.
Ref: https://huntr.dev/bounties/ac268a17-72b5-446f-a09a-9945ef58607a/

3 years agoFixed search query issues when table prefixes are used
Dan Brown [Fri, 8 Oct 2021 14:25:12 +0000 (15:25 +0100)]
Fixed search query issues when table prefixes are used

- Old raw select query was causing bad select clause in query
  when table prefixes were active.

3 years agoForced response cache revalidation on logged-in responses
Dan Brown [Fri, 8 Oct 2021 14:22:09 +0000 (15:22 +0100)]
Forced response cache revalidation on logged-in responses

- Prevents authenticated responses being visible when back button
  pressed in browser.
- Previously, 'no-cache, private' was added by default by Symfony which
  would have prevents proxy cache issues but this adds no-store and a
  max-age option to also invalidate all caching.

Thanks to @haxatron via huntr.dev
Ref: https://huntr.dev/bounties/6cda9df9-4987-4e1c-b48f-855b6901ef53/

3 years agoContinued review of #2169
Dan Brown [Wed, 6 Oct 2021 22:05:26 +0000 (23:05 +0100)]
Continued review of #2169

- Removed uneeded custom refresh or logout actions for OIDC.
- Restructured how the services and guards are setup for external auth
  systems. SAML2 and OIDC now directly share a lot more logic.
- Renamed any OpenId references to OIDC or OpenIdConnect
- Removed non-required CSRF excemption for OIDC

Not tested, Come to roadblock due to lack of PHP8 support in upstream
dependancies. Certificate was deemed to be non-valid on every test
attempt due to changes in PHP8.

3 years agoStarted refactor for merge of OIDC
Dan Brown [Wed, 6 Oct 2021 16:12:01 +0000 (17:12 +0100)]
Started refactor for merge of OIDC

- Made oidc config more generic to not be overly reliant on the library
  based upon learnings from saml2 auth.
- Removed any settings that are redundant or not deemed required for
  initial implementation.
- Reduced some methods down where not needed.
- Renamed OpenID to OIDC
- Updated .env.example.complete to align with all options and their
  defaults

Related to #2169

3 years agoMerge branch 'openid' of https://github.com/jasperweyne/BookStack into jasperweyne...
Dan Brown [Wed, 6 Oct 2021 12:17:30 +0000 (13:17 +0100)]
Merge branch 'openid' of https://github.com/jasperweyne/BookStack into jasperweyne-openid

3 years agoMerge pull request #2957 from BookStackApp/dependabot/composer/composer/composer...
Dan Brown [Wed, 6 Oct 2021 09:52:02 +0000 (10:52 +0100)]
Merge pull request #2957 from BookStackApp/dependabot/composer/composer/composer-2.1.9

Bump composer/composer from 2.1.8 to 2.1.9

3 years agoBump composer/composer from 2.1.8 to 2.1.9 2957/head
dependabot[bot] [Tue, 5 Oct 2021 20:57:31 +0000 (20:57 +0000)]
Bump composer/composer from 2.1.8 to 2.1.9

Bumps [composer/composer](https://github.com/composer/composer) from 2.1.8 to 2.1.9.
- [Release notes](https://github.com/composer/composer/releases)
- [Changelog](https://github.com/composer/composer/blob/master/CHANGELOG.md)
- [Commits](https://github.com/composer/composer/compare/2.1.8...2.1.9)

---
updated-dependencies:
- dependency-name: composer/composer
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <redacted>
3 years agoReviewed and refactored additional editor draft save warnings
Dan Brown [Mon, 4 Oct 2021 19:26:55 +0000 (20:26 +0100)]
Reviewed and refactored additional editor draft save warnings

- Added testing to cover warning cases.
- Refactored logic to be simpler and move much of the business out of
  the controller.
- Added new message that's more suitable to the case this was handling.
- For detecting an outdated draft, checked the draft created_at time
  instead of updated_at to better fit the scenario being checked.
- Updated some method types to align with those potentially being used
  in the logic of the code.
- Added a cache of shown messages on the front-end to prevent them
  re-showing on every save during the session, even if dismissed.

3 years agoMerge branch 'conflict_warnings' of https://github.com/MatthieuParis/BookStack into...
Dan Brown [Mon, 4 Oct 2021 16:10:40 +0000 (17:10 +0100)]
Merge branch 'conflict_warnings' of https://github.com/MatthieuParis/BookStack into MatthieuParis-conflict_warnings

3 years agoUpdated translator attribution before release v21.08.4
Dan Brown [Mon, 4 Oct 2021 15:24:17 +0000 (16:24 +0100)]
Updated translator attribution before release v21.08.4

3 years agoNew Crowdin updates (#2926)
Dan Brown [Mon, 4 Oct 2021 15:22:16 +0000 (16:22 +0100)]
New Crowdin updates (#2926)

* New translations settings.php (French)

* New translations auth.php (French)

* New translations settings.php (French)

* New translations entities.php (French)

* New translations activities.php (French)

* New translations common.php (French)

* New translations entities.php (French)

* New translations common.php (French)

* New translations components.php (French)

* New translations settings.php (French)

* New translations auth.php (French)

* New translations settings.php (Russian)

* New translations validation.php (Russian)

* New translations settings.php (Russian)

* New translations auth.php (Russian)

* New translations settings.php (Russian)

* New translations auth.php (Russian)

* New translations entities.php (French)

* New translations auth.php (French)

* New translations entities.php (French)

* New translations auth.php (French)

* New translations settings.php (French)

* New translations validation.php (French)

* New translations settings.php (French)

* New translations entities.php (French)

* New translations errors.php (French)

* New translations passwords.php (French)

* New translations settings.php (French)

* New translations entities.php (French)

* New translations settings.php (French)

* New translations entities.php (German)

* New translations settings.php (German)

* New translations entities.php (German Informal)

* New translations settings.php (German Informal)

* New translations settings.php (German)

* New translations settings.php (German Informal)

* New translations settings.php (French)

* New translations settings.php (Vietnamese)

* New translations settings.php (Slovenian)

* New translations settings.php (Swedish)

* New translations settings.php (Turkish)

* New translations settings.php (Ukrainian)

* New translations settings.php (Chinese Simplified)

* New translations settings.php (Chinese Traditional)

* New translations settings.php (Portuguese, Brazilian)

* New translations settings.php (Portuguese)

* New translations settings.php (Indonesian)

* New translations settings.php (Persian)

* New translations settings.php (Spanish, Argentina)

* New translations settings.php (Croatian)

* New translations settings.php (Latvian)

* New translations settings.php (Bosnian)

* New translations settings.php (Slovak)

* New translations settings.php (Polish)

* New translations settings.php (Russian)

* New translations settings.php (Czech)

* New translations settings.php (German)

* New translations settings.php (German Informal)

* New translations settings.php (Spanish)

* New translations settings.php (Arabic)

* New translations settings.php (Bulgarian)

* New translations settings.php (Catalan)

* New translations settings.php (Danish)

* New translations settings.php (Dutch)

* New translations settings.php (Hebrew)

* New translations settings.php (Hungarian)

* New translations settings.php (Italian)

* New translations settings.php (Japanese)

* New translations settings.php (Korean)

* New translations settings.php (Lithuanian)

* New translations settings.php (Norwegian Bokmal)

* New translations settings.php (Spanish)

* New translations activities.php (Slovak)

* New translations errors.php (Slovak)

* New translations settings.php (Slovak)

* New translations auth.php (Slovak)

* New translations common.php (Slovak)

* New translations entities.php (Slovak)

* New translations settings.php (Slovak)

* New translations activities.php (Slovak)

* New translations settings.php (French)

* New translations settings.php (Russian)

* New translations settings.php (German)

* New translations settings.php (Polish)

* New translations validation.php (Polish)

* New translations auth.php (Vietnamese)

* New translations auth.php (Vietnamese)

* New translations activities.php (Vietnamese)

* New translations common.php (Vietnamese)

* New translations entities.php (Vietnamese)

* New translations settings.php (Chinese Simplified)

* New translations settings.php (Italian)

* New translations auth.php (Italian)

* New translations common.php (Italian)

* New translations common.php (German)

* New translations common.php (German Informal)

* New translations settings.php (German)

* New translations common.php (German)

* New translations common.php (German Informal)

* New translations errors.php (German)

3 years agoAllowed page includes on custom home
Dan Brown [Mon, 4 Oct 2021 10:26:26 +0000 (11:26 +0100)]
Allowed page includes on custom home

For #2279
Old hold-over for when include content permissions were handled less
delicately.

3 years agoApplied StyleCI changes
Dan Brown [Wed, 29 Sep 2021 22:53:11 +0000 (23:53 +0100)]
Applied StyleCI changes

3 years agoReviewed addition to db table prefix
Dan Brown [Wed, 29 Sep 2021 17:41:11 +0000 (18:41 +0100)]
Reviewed addition to db table prefix

Review of #2935

- Removed from .env files and added warnings for use if found in config
  file.
- Updated permission service to use whereColumn queries to auto-handle
  use of prefixes.

3 years agoMerge branch 'floviolleau-db-prefixes' of https://github.com/floviolleau/BookStack...
Dan Brown [Wed, 29 Sep 2021 17:13:38 +0000 (18:13 +0100)]
Merge branch 'floviolleau-db-prefixes' of https://github.com/floviolleau/BookStack into floviolleau-floviolleau-db-prefixes

3 years agoReviewed adding IP recording to activity & audit log
Dan Brown [Sun, 26 Sep 2021 16:18:12 +0000 (17:18 +0100)]
Reviewed adding IP recording to activity & audit log

Review of #2936

- Added testing to cover
- Added APP_PROXIES to .env.example.complete with details.
- Renamed migration to better align the name and to set the migration
  date to fit with production deploy order.
- Removed index from IP column in migration since an index does not yet
  provide any value.
- Updated table header text label.
- Prevented IP recording when in demo mode.

3 years agoMerge branch 'log-ip-address' of https://github.com/johnroyer/BookStack into johnroye...
Dan Brown [Sun, 26 Sep 2021 15:17:28 +0000 (16:17 +0100)]
Merge branch 'log-ip-address' of https://github.com/johnroyer/BookStack into johnroyer-log-ip-address

3 years agoApplied style ci changes again
Dan Brown [Sun, 26 Sep 2021 14:49:25 +0000 (15:49 +0100)]
Applied style ci changes again

3 years agoApplied styleci changes
Dan Brown [Sun, 26 Sep 2021 14:48:22 +0000 (15:48 +0100)]
Applied styleci changes

3 years agoCaught old string helper function usage
Dan Brown [Sun, 26 Sep 2021 14:41:11 +0000 (15:41 +0100)]
Caught old string helper function usage

Found by Laravel Shift Workbench

3 years agoStandardised facade usage to use via their FQCN
Dan Brown [Sun, 26 Sep 2021 14:37:55 +0000 (15:37 +0100)]
Standardised facade usage to use via their FQCN

Done via Laravel Shift Workbench

3 years agoFix coding style 2936/head
Zero [Thu, 23 Sep 2021 03:07:13 +0000 (11:07 +0800)]
Fix coding style

3 years agoUpdate translation file
Zero [Fri, 27 Aug 2021 04:54:18 +0000 (12:54 +0800)]
Update translation file

3 years agoAdd user IP into audit table
Zero [Fri, 27 Aug 2021 04:53:47 +0000 (12:53 +0800)]
Add user IP into audit table

3 years agoSave user IP to audit log
Zero [Fri, 27 Aug 2021 04:42:02 +0000 (12:42 +0800)]
Save user IP to audit log

3 years agoAdd IP column
Zero [Fri, 27 Aug 2021 04:18:50 +0000 (12:18 +0800)]
Add IP column

3 years agoAllow to use DB tables prefix 2935/head
floviolleau [Sun, 19 Sep 2021 12:33:54 +0000 (14:33 +0200)]
Allow to use DB tables prefix

3 years agoAllow to use DB tables prefix
floviolleau [Sun, 19 Sep 2021 12:32:35 +0000 (14:32 +0200)]
Allow to use DB tables prefix

3 years agoAllow to use DB tables prefix
floviolleau [Sun, 19 Sep 2021 12:31:18 +0000 (14:31 +0200)]
Allow to use DB tables prefix

3 years agoAllow to use DB tables prefix
floviolleau [Sun, 19 Sep 2021 12:28:57 +0000 (14:28 +0200)]
Allow to use DB tables prefix

3 years agoFixed dodgy test helper signature causing tests to fail
Dan Brown [Sat, 18 Sep 2021 20:29:42 +0000 (21:29 +0100)]
Fixed dodgy test helper signature causing tests to fail

Just needed some argument defaults to make them optional for existing
uses.

3 years agoMerge pull request #2928 from BookStackApp/browserkit_removal
Dan Brown [Sat, 18 Sep 2021 20:28:16 +0000 (21:28 +0100)]
Merge pull request #2928 from BookStackApp/browserkit_removal

Convert old BrowserKit tests

3 years agoApplied styleci style changes 2928/head
Dan Brown [Sat, 18 Sep 2021 20:21:44 +0000 (21:21 +0100)]
Applied styleci style changes

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