Commit Graph

124 Commits

Author SHA1 Message Date
Bjarke Berg
88acb07873 Merge pull request #9821 from umbraco/netcore/task/9716-custom-routes
Custom controller routes within an Umbraco context (i.e. virtual nodes)
2021-02-17 12:29:20 +01:00
Bjarke Berg
9ba04c394b Added Directory.Build.props to replace SolutionInfo 2021-02-15 13:53:06 +01:00
Shannon
af42af7425 Simplify UmbracoRouteValues since this is an http request feature which dictates what an Umbraco route is 2021-02-12 16:54:19 +11:00
Shannon
aeae2fcfd2 Removes old classes that merge viewdata and modelstate that are no longer necessary 2021-02-12 16:10:50 +11:00
Shannon
967c150180 Merge branch 'netcore/netcore' into netcore/task/Surface-Routing-9717 2021-02-05 13:22:21 +11:00
Shannon
295e4eb118 Merge branch 'netcore/task/Surface-Routing-9717' of https://github.com/umbraco/Umbraco-CMS into netcore/task/Surface-Routing-9717 2021-02-05 13:14:40 +11:00
Shannon
b883ebfd7d Fixing tests, created constants 2021-02-05 13:14:24 +11:00
Shannon Deminick
7aff288ff1 Apply suggestions from code review
Co-authored-by: Bjarke Berg <mail@bergmania.dk>
2021-02-05 12:32:09 +11:00
Shannon
eed8e4dca8 Fixing tests 2021-02-05 12:19:09 +11:00
Shannon
6273c95a90 Gets UmbracoPageResult working with ViewData and TempData 2021-02-04 14:51:55 +11:00
Shannon
eda98aa41f Changes how controllers are discovered, re-uses aspnetcore to do this, rely directly on the resolved ControllerActionDescriptor since this is how routing works anyways and also saves future lookups (perf), gets the UmbracoPageResult 'working' - at least to proxy a controller execution but now we need to do the model state merging, etc... 2021-02-04 13:09:28 +11:00
Shannon
0c26a82489 Changes the umbraco route values to use http features intead of in route values which is much nicer, fixes the redirect to page result, tests a surface controller POST and it works, ensures the routing takes place before the form check, removes a bunch of old code 2021-02-03 15:47:27 +11:00
Shannon
9e43ff8662 linting 2021-02-02 17:32:17 +11:00
Shannon
c024db9d3c gets surface controllers and front-end api controllers auto-routed, adds tests 2021-02-02 14:48:01 +11:00
Bjarke Berg
14284b64c2 Bugfixes..
- ModelsBuilder: Inject PublishedValueFallback into static Mixins
- ModelsBuilder: Throw exception if compiler can't compile the code
- CheckIfUserTicketDataIsStaleAttribute: Scope issue
- Ambiguous Actions: Couldn't determine the action when empty arrays was passed. Fixed by using more v8 like solution. (Still stupid the client not just have different endpoints)
- Fixed issue with reading the body from post requests. Often we where not allowed to seek in the stream.
- UmbracoHelper: Made available on UmbracoViewPage
- Client entity.resource.js: Don't ask server when getByIds has 0 ids.
- Client content.resource.js: Renamed endpoint GetEmptyBlueprint to avoid ambiguous action name
2021-02-01 13:04:45 +01:00
Shannon
d5f595def2 Enables the Action htmlhelperextension for surface controllers 2021-02-01 17:57:15 +11:00
Shannon
a0cbff2868 linting 2021-02-01 17:53:40 +11:00
Shannon
a974ba71fd linting 2021-02-01 17:50:20 +11:00
Shannon
2a41cec263 Ensures the default PublishedModelFactory is always registered. Ensures AddModelsBuilder is done when adding the website (not required for the back office). 2021-02-01 16:53:24 +11:00
Elitsa Marinovska
01c03c19c3 Migrates PublishedContentExtensions.cs, PublishedElementExtensions.cs and PublishedPropertyExtension.cs 2021-01-26 11:17:55 +01:00
Bjarke Berg
132c4f7910 Merge remote-tracking branch 'origin/netcore/netcore' into netcore/feature/net5 2021-01-21 09:37:44 +01:00
Bjarke Berg
e38972abf0 Updated to net5.0 and updated most nuget packages. Also fixed the nuspec files. + Fix typo Persistance => Persistence. 2021-01-20 21:01:45 +01:00
Shannon
7f1e711481 committing changes, notes, etc... so far 2021-01-14 23:14:35 +11:00
Shannon
d1df6c4719 less allocations with AbsolutePathDecoded. removes more aspx checks, adds UmbracoRouteValueTransformerTests, adds interface for IRoutableDocumentFilter 2021-01-13 11:08:48 +11:00
Shannon
456cb00a2d Add test for UmbracoRouteValuesFactoryTests 2021-01-12 17:06:37 +11:00
Shannon
a83cbc00ef Adding tests for HijackedRouteEvaluator 2021-01-12 16:28:00 +11:00
Shannon
4a8b0f06d1 Merge branch 'netcore/task/9727-published-request' into netcore/task/9733-routabledocumentfilter 2021-01-11 16:44:01 +11:00
Shannon
c2c42ada3b Fixes review notes 2021-01-11 13:55:44 +11:00
Shannon
2feebe7a2c Ensures the routable doc filter is used, adds notes about a small mem leak. 2021-01-08 17:54:21 +11:00
Shannon
0ce90cf359 Moves UrlExtensions methods to new service and reduce the huge amount of allocated strings during routing 2021-01-08 17:21:35 +11:00
Shannon
e1e3200313 Merge branch 'netcore/task/9727-published-request' into netcore/task/9733-routabledocumentfilter 2021-01-08 15:31:20 +11:00
Shannon
b801199e7c missing commit 2021-01-08 15:30:35 +11:00
Shannon
f8033c5281 Moves RoutableDocumentFilter along with tests 2021-01-08 15:27:07 +11:00
Shannon
b4922d2685 re-enables the weird IgnorePublishedContentCollisions, simplifies IPublishedRouter interface (more flexible with request options), 2021-01-08 10:42:57 +11:00
Shannon
b017ed0b1b Gets the UpdateRequestToNotFound thing working 2021-01-08 02:36:55 +11:00
Shannon
bc6768101e Splits up UmbracoRouteValueTransformer and trying to figure out this hijacked route conundrum with no template :( 2021-01-08 02:10:13 +11:00
Shannon
504837054e puts back in events but uses event aggregator, changes IPublishedRouter to async 2021-01-08 00:25:09 +11:00
Shannon
333479666c removes ResponseStatusDescription and others that aren't used, ports the not found handler, ports redirects, headers, etc... 2021-01-06 20:03:49 +11:00
Shannon
f5bd53b223 removes the weird IsInitialPublishedContent 2021-01-06 17:31:46 +11:00
Shannon
295ab504cd Splits PublishedRequest into a builder and a immutable object 2021-01-06 17:04:35 +11:00
Shannon
a126977a4e Simplifies how view locations are determined
AB#9720
2021-01-04 15:43:30 +11:00
Shannon
34427b0104 Moves AddDistributed cache back to being called implicitly, ensures notification handlers are not added twice 2021-01-04 13:22:29 +11:00
Shannon
d46545faa0 For now, we explicitly require AddDistributedCache in Startup so it's not called twice. 2021-01-04 13:01:49 +11:00
Shannon
1a0d961e42 removes WebsiteComposer, BackOfficeComposer 2020-12-24 18:11:16 +11:00
Shannon
e785ac28a3 Moves more services and registrations "up", removes AspNetCoreComposer logic and moves to AddWebComponents 2020-12-24 14:29:26 +11:00
Shannon
b20ce5a92e A bunch of cleanup for DI namespaces, ext methods and dist cache classes 2020-12-24 09:50:05 +11:00
Shannon
d5a19530f3 Fixing tests, more DependencyInjection namespace 2020-12-23 13:06:22 +11:00
Shannon
696dd0b8dc removes partial keyword 2020-12-23 12:11:38 +11:00
Shannon
e62edc7bef missing file 2020-12-23 12:02:23 +11:00
Shannon
7115e0a11e shuffles code with DependencyInjection namespace, forgot to commit changes to Startup 2020-12-23 12:02:01 +11:00