Stephan
d6fc106588
fix DisposableTimer so args can be evaluated _after_ completion
2012-11-20 08:34:32 -01:00
Stephan
68fc833280
U4-1186 - bugfix previous commit
2012-11-19 16:09:43 -01:00
Stephan
7c524abb84
U4-1186 - support wildcard domains to change the culture
2012-11-19 14:11:34 -01:00
Shannon Deminick
9554c6a1c6
Fixes #U4-1174 - allows MVC views to render when using RenderTemplate. Added new UmbracoHelper method RenderTemplate. Cleaned up some code and
...
ensuring that the string writers are disposed. Moved TemplateRenderer to a better namespace.
2012-11-14 10:47:40 +05:00
Shannon Deminick
8597876c92
Fixed up the library calls to RenderTemplate, no longer a ton of duplicated code and removed
...
the requirement to build up query strings as this is completley not required since we use 'preserveForm'
in the Server.Execute.
2012-11-14 09:31:20 +05:00
Shannon Deminick
3df7d81bde
Fixed up the webforms url gen
2012-11-14 09:19:39 +05:00
Shannon Deminick
f82ae4fdda
Fixes: #U4-1174, this now works for all webforms related templates, however RenderTemplate will currently not work for
...
MVC templates... this will come soon. If you try to it will just throw a NotImplementedException.
2012-11-14 09:13:53 +05:00
Bitmapped
33eb9d40f3
Catches exception thrown by native ActiveDirectoryMembershipProvider when there
...
is no current user.
Fixes U4-709
2012-11-11 09:40:48 -01:00
Shannon Deminick
c3795d7e5a
Added some code comments and did a check for redirects (returns null if this is the case)
2012-10-30 06:49:36 +06:00
Stephan
be3f95610b
U4-1081 - treat missing template at 404
2012-10-29 12:35:39 -01:00
Stephan
80dca1e3f2
U4-1089 - non-ascii chars in urls cause 404
2012-10-28 11:58:48 -01:00
Shannon Deminick
6bf3a7a74a
Merge
2012-10-26 03:01:21 +05:00
Shannon Deminick
07f8f79620
Fixes: #U4-1077, found an bug with both our code and Microsoft's code in that if you RemapPath with an incorrect URL which contains
...
2 '?' the internals of ASP.net actually force a secondary internal request which causes BeginRequest to fire but doesn't follow the normal
chain of the module. It was a bug with our code having two query strings, however its pretty strange behavior on their part!
Have removed UmbracoContext.ClientUrl since it is not necessary to have. Have renamed UmbracoContext.UmbracoUrl = CleanedUmbracoUrl and UmbracoContext.RequextUrl = OriginalRequestUrl
Have moved the route processing logic to a static method on PublishedContentRequest which auto assigns the request back to the UmbracoContext, plus this is a cleaner
way to do the processing, including allowing us to unit test this one aspect.
Lastly, we are now rewriting the path back to the original URL in the RenderRouteHandler so that in MVC controllers the HttpContext.Request actually
reflects the URL that the client requested, not the rewritten URL (we do this in webforms too)
2012-10-26 02:55:57 +05:00
Stephan
62a48df421
bugfix NiceUrlProvider when running in a virtual directory
2012-10-25 12:14:21 -02:00
Shannon Deminick
a9d6c7872a
Changed the PublishedContentRequestBuild to use the cached template lookup instead of going to the db each time,
...
added caching to the business logic template class's GetByAlias method. All of this will save db queries for each request meaning even
faster rendering. Fixed GetTemplateAlias extension method to use the correct Template class with caching.
2012-10-24 11:02:36 +05:00
Sebastiaan Janssen
7309c7c02f
Templates that have a space in the alias will be created without spaces in the
...
file name, when determining if the template exists, remove spaces from the alias
2012-10-22 10:36:54 -02:00
Shannon Deminick
9022894d23
Changed EnableMvcSupport config section and classes to be: DefaultRenderingEngine which uses an enum.
...
Added a real handy Enum<T> class for parsing/traversing enums.
2012-10-09 02:42:09 +05:00
Shannon Deminick
6bd005775d
After talks with morten and stephane, this renames
...
DocumentNotFoundHandler -> PublishedContentNotFoundHandler
2012-10-02 01:43:59 +05:00
Shannon Deminick
73c79e8528
After talks with morten and stephane, this renames
...
IDocumentLookup -> IPublishedContentLookup
2012-10-02 01:43:05 +05:00
Shannon Deminick
827d4dd6c0
After talks with morten and stephane, this renames
...
DocumentRequestBuilder -> PublishedContentRequestBuilder
2012-10-02 01:41:54 +05:00
Shannon Deminick
ffd14c839b
After talks with morten and stephane, this renames
...
DocumentRequest -> PublishedContentRequest
2012-10-02 01:40:19 +05:00
Shannon Deminick
053df24640
After talks with morten and stephane, this renames
...
IDocument -> IPublishedContent
DynamicDocument -> DynamicPublishedContent
2012-10-02 01:35:39 +05:00
Stephan
c19541cb11
handle routing cache corruption cases, more unit tests
2012-10-01 12:20:51 -02:00
Stephan
3cddc5e4dc
merge
2012-09-30 14:04:38 -02:00
Stephan
8cd49749ec
fix routing, more unit tests
2012-09-30 14:02:11 -02:00
Stephan
3e99dd0d55
fix NiceUrl and add more tests
2012-09-30 12:24:23 -02:00
Shannon Deminick
8fb159ddc2
Changes IThumbnailProvider to exist under Umbraco.Core.Media instead of just Umbraco.Core.
...
Moves many of the MVC extension methods into the Umbraco.Web.Mvc namespace and tidies up a few other
class's namespaces
2012-09-29 08:07:00 +07:00
Shannon Deminick
34e71027b3
Changed Is404 on DocumentRequest to internal as only the DocumentRequestBuilder should set this, removed the Is404 being set in the
...
DefaultLastChanceLookup as lookups shouldn't set the 404.
Cleaned up ObjectExtensions TryConvertValue method.
Ensures that the routes are created before the CoreBootManager complete is called.
2012-09-29 07:20:23 +07:00
Stephan
d82cbfccc5
remove a ref to requestHandler, fix DefaultRoutesCache management
2012-09-28 09:04:49 -02:00
Stephan
6c4869f931
merge
2012-09-28 07:08:37 -02:00
Stephan
b0e336e01f
routing, fix "no content" splash, fix "no template" handling, fix redirects
2012-09-28 07:04:33 -02:00
Shannon Deminick
0b7f04ab37
Added all code to support auto-routing surface controllers and started implementing the code for
...
BeginUmbracoForm.
2012-09-25 13:09:59 +07:00
Stephan
12c0ce258b
fixing routing + add Lookup tests
2012-09-24 12:10:25 -02:00
Stephan
343c14db48
fixing routing, 404, domains + add NiceUrl and UriUtility tests
2012-09-24 11:36:25 -02:00
Casey Neehouse
0225047a52
Removes .ChildNode calls for .SelectNodes() with correct element selection. Allows comments in configuration.
...
Also updates some Macro Properties to work with new schema.
2012-09-21 01:53:43 +04:00
Shannon Deminick
458f1d3b8f
Fixed setting the Is404 flag
2012-09-13 12:23:58 +07:00
Shannon Deminick
9e5f2f3c9a
Fixed template engine selection... oops :) Should all work now!
...
Fixed DefaultPublishedContentStore to correctly find a secondary root document that doesn't have a domain assigned.
2012-09-13 12:19:56 +07:00
Shannon Deminick
0ed15db408
Fixed the NiceUrlProvider as it some refactor on a previous commit broke some stuff.
...
Fixed up some unit tests with NiceUrlProvider to ensure that the second node under the root get's
the correct URL assigned.
Added unit test to ensure that route caches are persisted correctly.
2012-09-13 11:45:06 +07:00
Shannon Deminick
89cd2772dc
add note
2012-09-13 06:48:06 +07:00
Shannon Deminick
f2a7b3b255
Updated the published content stores so that content doesn't inherit from media, instead there is a base
...
interface IPublishedDataStore.
Simplified the interface structure and removed the GetDocumentProperty method as it is not needed and i think existed
before we updated the codebase to not rely on xml.
2012-09-11 05:58:16 +07:00
Shannon Deminick
5e9d791523
Moved the DocumentNotFoundHandler to diff namespace, created new NoTemplateHandler and updated the engine
...
to route to it when no template is selected and when there are no hijacked routes.
2012-09-07 08:28:18 +07:00
Shannon Deminick
9127061194
Added support for determining rendering engine based on template chosen.
2012-09-07 07:57:25 +07:00
Shannon Deminick
a293f53438
Fixes type finder to ensure editorControls are found
2012-09-01 08:52:14 +07:00
Shannon Deminick
c961eb368c
Fixed up NiceUrl caching inconsistencies
2012-09-01 08:27:16 +07:00
Shannon Deminick
529c52844d
Started writing NiceUrlProvider unit tests as there are a bunch of issues with it. Have fixed one of them.
...
Updated unit test hierarchy of classes so that if one doesn't require a db it can opt out and thus it runs much much faster.
2012-09-01 08:11:40 +07:00
Shannon Deminick
6949178f4b
removed formHandlers.config... pretty sure we removed this functionality about a zillion versions ago.
...
Removed old Nant build folder and files.
removed the umbVersion query string check as this was used for the old preview functionality and isn't used anymore (plus it could never work the way its implemented).
2012-09-01 07:03:56 +07:00
Shannon Deminick
b511ae3a1a
Created new LookupByIdQuery ILookup which is now the first thing that is looked up. Have cleaned up
...
all of the default.aspx stuff so that no routing logic takes place there, all routing logic now takes
place entirely in the module.
2012-08-30 08:26:01 +07:00
Shannon Deminick
05ebc8d2f9
Changed the Template prop of documentrequest to be a new TemplateLookup object since we are going
...
to need to support MVC and the old Template object is for webforms. I've added a lot of TODO's here
because we'll need to enable the lookups properly in each ILookup and also set the rendering engine (IsMvc)
in the ILookups too. This hasn't been enabled, yet, just a bunch of TODO's written.
2012-08-29 08:54:29 +07:00
Shannon Deminick
c251c9f0d3
Changed the Is404 property on the doc request to be set by the last chance lookup, not by the module
...
because in the future if people override the last chance lookup, they might not want it to be 404, it will
be up to them.
2012-08-29 08:10:10 +07:00
Shannon Deminick
5213d6de5c
renamed IContentStore to IPublishedContentStore. Migrating DynamicNode to Umbraco.Core and cleaning up it's supported codebase.
...
Starting writing a few unit tests for the new DynamicNode codebase. Will of course leave the original DynamicNode stuff in its
current place for backwards compatibility but will deprecate many of the classes which will call the new ones.
2012-08-17 04:27:47 +06:00