Commit Graph

141 Commits

Author SHA1 Message Date
Shaun Walker
263b045c75 module creator template updates 2020-05-19 09:08:29 -04:00
Shaun Walker
09b17e142e
Merge pull request #503 from jimspillane/FixMergeFiles
Fix file upload merge
2020-05-19 07:52:07 -04:00
Jim Spillane
b8ce634f85 Fix file upload merge
Allow upload of file names that match the token pattern ".part_", but not in the file extension. For example, a file named, a.part_Y.txt, would not be uploaded.
2020-05-18 19:53:49 -04:00
Shaun Walker
1532eb7586 Optimized downloading of assemblies when using WebAssembly 2020-05-18 18:02:23 -04:00
Shaun Walker
c426302242 enhanced module creator to display location where module will be created 2020-05-16 13:40:59 -04:00
Jim Spillane
13adebb36c Add File Name validation
Apply file name validation rules to the File Controller and client.
2020-05-15 23:12:24 -04:00
Shaun Walker
9394e77fd5
Merge pull request #488 from sbwalker/master
enable module creator to add embeddedresources to csproj for internal modules
2020-05-15 12:35:52 -04:00
Shaun Walker
3cbb6e3e6e enable module creator to add embeddedresources to csproj for internal modules 2020-05-15 12:36:52 -04:00
Shaun Walker
ac03afb146 added ability to set default container at the page level, expanded size of role description in upgrade script for 0.9.2 2020-05-15 09:50:48 -04:00
Shaun Walker
51c27ae0e5
Merge pull request #486 from sbwalker/master
added ability to set default container at the page level, expanded size of role description in upgrade script for 0.9.2
2020-05-15 09:49:45 -04:00
Shaun Walker
0ea4c4d723
Merge pull request #484 from jimspillane/MoveFolderValidationToShared
Move Path and File validation to Shared Utilities
2020-05-15 09:47:37 -04:00
Shaun Walker
24ca9f4ded
Merge pull request #485 from chlupac/FileController
File Controller bug
2020-05-15 07:28:12 -04:00
Pavel Vesely
9850e249fc File Controller bug 2020-05-15 08:20:00 +02:00
Jim Spillane
39641804f1 Move Path and File validation to Shared Utilities
Created extension methods:
IsPathValid(Folder)
IsFileValid(File)
IsPathOrFileValid(string)

Added client side validation check for Folders.
2020-05-14 22:02:57 -04:00
Shaun Walker
caabac3e74 removed redundant assembly download logic, added security on download controller methods 2020-05-14 18:40:53 -04:00
Shaun Walker
82429c2545
Merge pull request #477 from jimspillane/PathTraversal
Add File and Path rules
2020-05-14 11:55:07 -04:00
Shaun Walker
cba5865e81
Merge pull request #478 from sbwalker/master
Allow modules to be installed/uninstalled with embedded scripts or IInstallable interface. Fix module uninstall issues.
2020-05-14 11:53:33 -04:00
Shaun Walker
aa97dd4d0d Allow modules to be installed/uninstalled with embedded scripts or IInstallable interface. Fix module uninstall issues. 2020-05-14 11:54:28 -04:00
Jim Spillane
8afe8e7474 Add File and Path rules
Apply the file and path naming rules found at 
https://docs.microsoft.com/en-us/windows/win32/fileio/naming-a-file

Mitigate path traversal.
2020-05-14 09:53:36 -04:00
Jim Spillane
1cca18c4d2 Add additional reserved names and characters
Added CONIN$,CONOUT$ and characters <>:"/\|?*

Added .Split('.')[0] to folder.Name to catch names like CON.txt and allow names like CONTRACT.
2020-05-12 22:38:28 -04:00
Shaun Walker
598b433cd2
Merge pull request #463 from chlupac/IClientStartup
IClientStartup  implementation
2020-05-12 14:31:10 -04:00
Shaun Walker
f05c7d79e3 add security to site template API 2020-05-12 14:31:18 -04:00
Shaun Walker
6f3fe8d933 validate folder names, handle missing files more gracefully 2020-05-12 13:24:51 -04:00
Pavel Vesely
da73d519d7 IClientStartup implementation 2020-05-12 10:00:28 +02:00
Jim Spillane
a1449fb2dd Fix Uploadable files
When testing for allowable file extensions using a comma separated list, like (jpg,mp3,txt,zip), extensions such as .xt or .p3 will return true.  Adding Split(',') will test each of the extensions correctly.

Adding ToLower() will allow mixed case extensions, like .JPG or .Zip to return true.
2020-05-09 14:58:39 -04:00
Shaun Walker
f07146fd50 updated external module template to support new assembly loading criteria, fixed minor issue in assembky loading logic 2020-05-07 16:24:36 -04:00
Shaun Walker
d7ad175cd7 fixes for framework upgrade, fixes for control panel CSS styles, added AllPages attrubute for Modules, bumped version to 0.9.1 to test upgrades 2020-05-07 14:38:24 -04:00
Shaun Walker
c394c6ea7a Resolved authentication issue #441 related to alias refactoring #439, fixed breaking change in .NET Core 3.2 related to Blazor WebAssembly identification 2020-05-05 16:28:50 -04:00
Shaun Walker
a02cfea6c9 improve performance of alias handling and allow aliases to be an unlimited number of subfolders in depth 2020-05-05 09:15:36 -04:00
Shaun Walker
7c6dc6d774 Added ability to execute version specific code during framework upgrade (removed ApplicationVersion table and replaced with Version field on Tenant table), updated version number to 0.9.0 and renamed install scripts to match - this will be a baseline release which will be upgradeable 2020-05-01 10:27:14 -04:00
Shaun Walker
34538dd945 install/upgrade refactoring to consolidate all use cases and implement IInstallable interface for modules, moved tenant creation to site management UI, fixed z-order issues in Blazor theme, enhanced JS Interop methods to support integrity and crossorigin 2020-04-30 13:58:04 -04:00
Pavel Vesely
375c706029 Get custom theme and layout on a default install 2020-04-28 14:51:27 +02:00
Shaun Walker
6b2411b396 fixed merge issue 2020-04-26 13:39:56 -04:00
Shaun Walker
df3afb1e21
Merge branch 'master' into master 2020-04-26 13:27:16 -04:00
Shaun Walker
06db9efc08
Merge branch 'master' into PermissionOptimalization 2020-04-26 13:19:54 -04:00
Shaun Walker
58d3c406cd added IInstallable interface and uninstall implementation for modules. Refactoring module installation to use interface still in progress. 2020-04-26 13:15:02 -04:00
Pavel Vesely
7606e7b488 Permission Optimalization 2020-04-26 16:19:20 +02:00
Shaun Walker
ab5257cea2 Security fixes for Site Administrators to ensure proper access. Improvements to User and Role management components. Fix logic in CreateUser so that it does not prevent Administrators from creating users. 2020-04-21 15:16:12 -04:00
Shaun Walker
72995cd8fa added system info admin page/module, improved UI for framework, module, and theme install/upgrade, added version to ModuleDefinitions, fixed bug in logging logic introduced during code standardization 2020-04-20 18:05:37 -04:00
Sean Long
f0043f53ee OS independent file paths & Utility.PathCombine added
System.IO.Path.Combine provides cross-platform support for system paths, however rooted paths discarding of earlier segments
Utilities.PathCombine ensures if any parameters start with root chacters does not discard previous Utilities.PathCombine allows appending of "\\" to translate to the correct cross-platform result
2020-04-18 14:57:31 -04:00
Sean Long
c07ebdd41b Revert "Updated for consistant delimiter presence with source"
This reverts commit ce118096b7.
2020-04-18 12:54:12 -04:00
Sean Long
ce118096b7 Updated for consistant delimiter presence with source 2020-04-18 12:53:41 -04:00
Sean Long
70502cd881 OS independent file paths 2020-04-17 16:25:00 -04:00
Shaun Walker
b9d70dd11a changed ServerAssemblyName to ServerManagerType to optimize processing 2020-04-16 22:27:12 -04:00
Shaun Walker
f5e4c1dd29 fixed user registration, and updated module creator templates to use new Service approach 2020-04-16 10:21:16 -04:00
Pavel Vesely
95e9bee4e2 Migration to using System.Net.Http.Json; part one - functional migration 2020-04-15 23:07:27 +02:00
Shaun Walker
70ebd6eb35 added defensive coding to deal with scenarios where files are deleted but still references from other entities 2020-04-14 12:18:11 -04:00
Shaun Walker
f41dd06f6d fixed external module template so that it generates folder paths correctly 2020-04-13 12:48:49 -04:00
Shaun Walker
c25615546a fix to not execute uninstall script when creating a module from template 2020-04-13 08:01:25 -04:00
Shaun Walker
482747627e added uninstall support for modules 2020-04-12 20:08:19 -04:00