Stephan
d1af20424e
merge branch '6.2.0' into '7.0.0'
2013-09-12 13:09:04 +02:00
Stephan
32e3048717
Core.Attempt - refactor Succ() into Succeed()
2013-09-11 09:30:00 +02:00
Stephan
85ab96f71a
Core.Attempt - refactor and cleanup
2013-09-10 17:56:47 +02:00
Shannon
261828f7e5
Streamlined response messages and http codes for validation and authorization all relating to U4-2749 Fix auth filters to return 401 when not logged in and 403 when the user has no access
2013-09-10 15:37:44 +10:00
Shannon
5036df4174
Fixes permissions issue with default permissions and ensures default permissions come from the user type instead of the unused db column in the umbracoUser table. Fixes up the FilterAllowedOutgoingContentAttributeTests attribute with the new permissions changes. Fixes: U4-2771 Content sort dialog, ysod on loading children
2013-09-10 13:38:45 +10:00
Shannon
f6ea604101
First attempt at getting legacy tree dialog to work with new trees. Just saving this revision since I might need to reference the code later but am going to revert since this doesn't seem like the way to go.
2013-09-04 12:01:41 +10:00
Shannon
7c9f5eda9d
Fixes up more permissions checks, refactors MediaController.PostAddFile to use the correct WebAPI usage. Fixes issue with UmbracoClientManager throwing errors because the treeProps didn't include all called props.
2013-09-03 16:35:36 +10:00
Shannon
f0a2bfdea4
Updates EntityController with corrected permissions checking, updated media controller with correct permissions checking, added unit tests for the permisions filters.
2013-09-03 13:59:25 +10:00
Shannon
0ebe9ec0fa
Updated some of the property editor API to ensure that when formatting data for persistence we have access to the pre-values as well since these might need to be used to format the persisted data. Completed the new property editor: Multiple text box and it is saving the data in a backwards compatible format. Changed the internal AsDictionary method of the pre value collection to be a public method called FormatAsDictionary.
2013-08-28 17:53:31 +10:00
Shannon
949748a7f7
Added some overloads to the data type service to be able to save data types + pre-values in one transaction, and also to be able to update pre-values (before we could only insert). Got the data type editor now validating and saving values back to the db. Updated the content views (content/media) to have a correct form structure with ng-submit working.
2013-08-20 14:44:59 +10:00
perploug
e825c08901
Added events.Service and xmlhelper.service
2013-08-12 15:17:34 +02:00
Shannon
4241916d14
Started adding more permissions checks for media
2013-08-09 18:18:32 +10:00
Shannon
f518076ab8
Added permissions check to sort on content controller
2013-08-09 18:13:05 +10:00
Shannon
437f2dc588
Added more security checks to the content controller
2013-08-09 18:04:44 +10:00
Shannon
b8df64742c
Fixes up the permissions attribute and tests... was accidentally storing persisted data in the attribute.
2013-08-09 17:27:02 +10:00
Shannon
f04d5f43e0
Fixed media editor (to be the same as content). Implemented media permissions check when retreiving node.
2013-08-09 16:53:20 +10:00
Shannon
49f3c9e4b2
Adds more code and tests for permissions checks
2013-08-09 16:39:09 +10:00
Shannon
4267b88f77
Changed the PermissionsRepository to be more like the RecycleBinRepository in that it is stand alone and just gets created by other repos that need it (instead of being inhertied from). Added more methods for querying permissions and added these methods to the user service/repository. Converted one of the webapi permission check filters to use the new api.
2013-08-09 15:26:34 +10:00
Shannon
3169b52bf4
Updates more of WebSecurity to use the new user api.
2013-08-09 13:45:57 +10:00
Shannon
c5a80ccb03
Changed WebSecurity to expose IUser instead of User, then fixed up the knock-on effect, obsoleted all calls to the legacy User object in the base classes to point to use the WebSecurity class to access the new user object.
2013-08-09 13:24:26 +10:00
Shannon
a72512da72
Changed the outgoing date/time format to the base content controller
2013-08-08 16:31:55 +10:00
Shannon
cbc841301b
Got more of the sorting stuff working, started implementing much of the back office security checks in the content controller, updates some of the c# unit tests and got a self-hosted test running (but commented out currently until we can mock things properly).
2013-08-07 19:28:32 +10:00
Shannon
66fc7e91dd
Got the GetChildren wired up to the back end, updated the sort and list view controls to use the new resource with promises, updated unit tests to support.
2013-08-06 18:42:36 +10:00
Shannon
813750b0a9
Fixes merge issues
2013-07-31 19:14:02 +10:00
Shannon
66c2157bea
Merge remote-tracking branch 'origin/6.1.4' into 7.0.0
...
Conflicts:
src/Umbraco.Core/UriExtensions.cs
src/Umbraco.Tests/TestHelpers/BaseDatabaseFactoryTest.cs
src/Umbraco.Tests/Umbraco.Tests.csproj
src/Umbraco.Web.UI/Umbraco.Web.UI.csproj
src/Umbraco.Web/Editors/MediaController.cs
src/Umbraco.Web/Install/UmbracoInstallAuthorizeAttribute.cs
src/Umbraco.Web/Mvc/UmbracoAuthorizeAttribute.cs
src/Umbraco.Web/Mvc/UmbracoAuthorizedController.cs
src/Umbraco.Web/Security/WebSecurity.cs
src/Umbraco.Web/Umbraco.Web.csproj
src/Umbraco.Web/UmbracoContext.cs
src/Umbraco.Web/UmbracoModule.cs
src/Umbraco.Web/WebApi/MemberAuthorizeAttribute.cs
src/Umbraco.Web/WebApi/UmbracoApiController.cs
src/Umbraco.Web/WebApi/UmbracoAuthorizeAttribute.cs
src/Umbraco.Web/WebApi/UmbracoAuthorizedApiController.cs
src/Umbraco.Web/umbraco.presentation/umbraco/developer/DataTypes/editDatatype.aspx.cs
2013-07-31 18:52:14 +10:00
Shannon
dcf730a1bc
ensures the ui cultures are set in the back office. adds WebSecurity as a dependency for UmbracoContext.
2013-07-31 18:21:27 +10:00
Shannon
cbda86fe92
Fixes build error, streamlines all calls to validate a user for base controllers.
2013-07-31 17:24:36 +10:00
Shannon
6f464567bb
Implements real FormsAuthentication for back office cookie authentication... finally :)
2013-07-31 17:08:56 +10:00
Shannon
e2eeafcbfc
Fixes: U4-2232 UmbracoAuthorizeAttribute breaks Relfection methods - ensures that no singleton instances are passed into attributes since they only ever get created once, meaning we're left with a stale version in the attribute.
2013-07-31 16:45:11 +10:00
Shannon
bf1f78e3aa
Finished content and media model mapping using AutoMapper and now the tabs display composite properties correctly.
2013-07-25 16:08:18 +10:00
Shannon
4b8fed9f06
Started converting content model mapping over to use AutoMapper to fix the composite tabs/properties. New unit tests for the mapping as well.
2013-07-25 15:31:26 +10:00
Shannon
118f9b02e2
Fixes: U4-1027 Media Sort Usability -> changed the sorting to use Web API instead of asmx web service.
2013-07-25 12:29:41 +10:00
Shannon
feb1892e9e
Gets notification msgs on the server side to be displayed. Fixes property existence checking... was checking on id before but that is incorrect, needs to be on alias since a new property id is gen'd on each save and we're not re-wiring them back up. Fixes YSOD messaging for content as well. Changes the ModelState to modelState to be consistent in js.
2013-07-22 18:16:50 +10:00
Shannon
d3fe37a080
Adds RequiredForPersistenceAttribute to easily detect if any entity fails validation in a way that it cannot be persisted to the data store. Changes all tree events to not be jquery events and to not require a 'callback' jquery object, instead we just use angular events broadcast globally, much nicer.
2013-07-18 17:05:40 +10:00
Shannon
e2fa610358
Lots of work for validation. We have a different type of validation model in Umbraco where we still save content even if some things are invalid (we just don't publish) so we have to take all of this into account. We also have other rules where if it is new content but required fields like 'name' are empty we cannot continue to save. Also started working on dealing with server side validation errors for content fields (not just user defined fields).
2013-07-16 18:23:20 +10:00
Shannon
e2ef802f65
Got delete working for legacy items... just need to get the tree to respond, do tree syncing, etc... but it is working.
2013-07-12 14:36:35 +10:00
Shannon
cdf114df4b
Converted all resources over to use a newer structure for generating URLs, created unit tests for those, fixed the js build so that the name is still "umbraco" not "umbraco 7" since that causes problems with css and other file references.
2013-07-12 13:26:11 +10:00
Shannon
a077836936
Implemented the required/regex validation that is applied to PropertyType's on a Document type (this might be temporary if we get around to implementing pre-value overrides). Changed the name from ManifestValueValidator to just ValueValidator and allows for property editors to override the defaults if they need to change how the regex/required validation is processed against the property's value. Have streamlined all of the validation directives to require an FormController which we then listen to. Have removed valBubble as we don't actually need that functionality anymore and this simplfies input elements too.
2013-06-28 12:23:15 +10:00
Shannon
b50658121d
Started integrating authorization services.
2013-06-17 01:06:31 +02:00
Shannon
d4cfa57b2a
Got media creation working and fixed updating node names.
2013-06-11 14:30:37 +02:00
Shannon
3fee64d6eb
Got media saving now.
...
Signed-off-by: Shannon <sdeminick@gmail.com >
2013-06-11 02:01:17 +02:00
Shannon
aea1a17a03
Last commit into mercurial!!! -- a bunch of model mapping mayhem
2013-06-10 20:24:54 -02:00
Shannon
e8c4063ed1
Fixes data saving services
2013-06-10 15:58:52 -02:00
Shannon
1b59c1ba6e
Got content item creation working and rte property editor working/saving
2013-06-09 11:40:52 -02:00
Shannon Deminick
96fac60c3f
So close to having data saving but now we have issues with HttpContext.Current because we are running async processes... fail.
2013-06-05 14:37:19 -10:00
Shannon Deminick
35ada35257
Updated content model mapper to re-use mappings as much as possible. Added most of the missing properties to content and inline with the expected format
...
in the UI project. Added basic user model and a mapper for that too. updated tree service in UI to automatically create the 'view' for each node based on
the section and id, the same way it updates the level for each node.
2013-06-03 23:50:20 -10:00
Shannon Deminick
160811e190
added new tests for model mapping and serialization of the content display models. Started integrating trees. Committed the compiled
...
angular controllers, directives, services, resources since I'll be modifying them to work with the real data services. Then we'll have
to merge back to the belle repo with the changes.
2013-05-30 21:21:52 -10:00
Shannon Deminick
936c2a87ab
Fixed up the property editors to now all work with saving data, updated the file uploaded to actually save the files, clear the files, and update
...
its UI accordingly. Ensures that when data is saved we send back down the up-to-date model and re-bind everything which works awesome.
2013-05-28 22:58:31 -10:00
Shannon Deminick
c5ff9ddec9
Updated property editors deserialization method to accept more information and original values, updated the upload property editor to now save
...
files in accordance with exactly how we are saving them currently and it is all working... expcept the new uploader can do multiple files. It is
now persisting to the database as well.
2013-05-28 18:27:11 -10:00
Shannon Deminick
cf631974a8
Updated validator definitions, updated ToXml logic to take into account new Property Editors, added Serialization and Deserialization methods
...
for property editor's to override if necessary, updated the ContentItemBinder to bind the db and dto models so now that validator filter
just validates against the model and doesn't actually do any data lookups itself (much nicer). Now saves and retreives from the database !!
2013-05-27 21:32:37 -10:00