Commit Graph

16 Commits

Author SHA1 Message Date
Renaud Paquay
0ac6091b74 17875: Too many InvalidOperationExceptions during startup
Prevent common cases exception by explicitly rejecting invalid
virtual paths.

--HG--
branch : 1.x
2011-05-25 17:36:27 -07:00
Andre Rodrigues
78bd74479b Adding one more test for root directory validation and improving algorithm.
--HG--
branch : 1.x
2011-03-30 18:07:48 -07:00
Andre Rodrigues
e33f07ecc5 #17601: Avoiding exceptions by proactively handling the scenario where the path falls outside of the app directory.
--HG--
branch : 1.x
2011-03-30 17:31:31 -07:00
Sebastien Ros
f50e47bfdd Removing the finalizer and implementing thread safety
--HG--
branch : indexing
2011-03-02 12:33:50 -08:00
Sebastien Ros
919585be1a Adding a new file locking service
- ILockFileManager to create and check lock files
- ILockFile represent an acquired lock file
- Lock files expire after 10 minutes by default
- Lock files are created in ~/App_Data
- Default implementation provided (as it is in Orchard.Framework)

--HG--
branch : indexing
2011-03-01 22:51:09 -08:00
Suha Can
c97a8d26cb Cleanup (includes)
--HG--
branch : dev
2010-12-07 15:47:45 -08:00
Renaud Paquay
a2d456e6f8 Adding GAC lookup policy for assembly name resolution
For dynamic compilation, there is a limited set of thing Orchard can
do to load assemblies referenced in .csproj files. With this checkin,
there are now 4 policies for resolving short assembly names to full
assembly names:
1. Try to load the assembly with its short name
2. Try to find the assembly in the list of assemblies in the AppDomain
3. Try to find the assembly in the list of assemblies referenced
   by Orchard.Framework
4. Try to find the assembly in the list of assemblies commonly
   installed in the GAC with .NET 4.0.

Work Items: 16940, 16946

--HG--
branch : dev
2010-12-06 23:01:31 -08:00
Renaud Paquay
e4ba511525 Tweak IAssemblyLoader loadig policy
A few common .net framework assemblies are referenced by the Orchard.Framework
assembly. Look into those to see if we can find the assembly we are looking for.

This is useful for orchard modules project files, where commonly used assemblies
don't need to be specified with a strong name.

--HG--
branch : dev
2010-11-21 21:59:24 -08:00
Renaud Paquay
509a051a3c Fix unit tests
--HG--
branch : perf
2010-11-10 15:14:35 -08:00
Renaud Paquay
3982bbdb87 Simplify caching of NHibernate configuration
--HG--
branch : dev
2010-07-15 14:59:17 -07:00
Renaud Paquay
ea6d5849ec Fix dynaic compilation
When a new set of assemblies is enabled, we need to invalidate the
nhibernate serialized configuration (since it contains not only types
names for records, but also assembly names)

--HG--
branch : dev
2010-07-15 13:43:11 -07:00
Renaud Paquay
d3c393cc41 Add Unit Tests for AssemblyProbingFolder
--HG--
branch : dev
rename : src/Orchard/FileSystems/Dependencies/IAssenblyProbyFolder.cs => src/Orchard/FileSystems/Dependencies/IAssemblyProbingFolder.cs
2010-06-16 17:23:33 -07:00
Renaud Paquay
ec0e452c3a Add more unit test for IDependenciesFolder
--HG--
branch : dev
2010-06-15 19:05:49 -07:00
Renaud Paquay
4ad1abc4c9 Add more unit test for IDependenciesFolder
--HG--
branch : dev
2010-06-15 18:56:37 -07:00
Renaud Paquay
b45ccb6864 Add more unit tests
--HG--
branch : dev
2010-06-15 14:18:07 -07:00
Renaud Paquay
9444fc83f5 Add unit test for IDepdendenciesFolder
--HG--
branch : dev
rename : src/Orchard.Tests/Environment/Configuration/AppDataFolderTests.cs => src/Orchard.Tests/FileSystems/AppData/AppDataFolderTests.cs
2010-06-15 14:04:55 -07:00