Compare commits
13 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 0f7de97558 | |||
| 588493e811 | |||
| 87af9b2089 | |||
| ba3cf056fb | |||
| 619acb552b | |||
| 50b636e1c6 | |||
| cedf433bb0 | |||
| 00c19e3830 | |||
| a5742dcd9a | |||
| 63ee3c72c3 | |||
| fd2550cfe9 | |||
| 78c01801f8 | |||
| ad99d164c9 |
@@ -0,0 +1,66 @@
|
|||||||
|
---
|
||||||
|
name: 🐛 Bug Report
|
||||||
|
about: File a bug report, if you've discovered a problem in Umbraco.
|
||||||
|
---
|
||||||
|
|
||||||
|
A brief description of the issue goes here.
|
||||||
|
|
||||||
|
<!--
|
||||||
|
|
||||||
|
If you haven't yet done so, please read the "contributing guidelines"
|
||||||
|
thoroughly. Then, proceed by filling out the rest of the details in the issue
|
||||||
|
template below. The more details you can give us, the easier it will be for us
|
||||||
|
to determine the cause of a problem.
|
||||||
|
|
||||||
|
See: https://github.com/umbraco/Umbraco-CMS/blob/dev-v7/docs/CONTRIBUTING.md
|
||||||
|
|
||||||
|
-->
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Reproduction
|
||||||
|
------------
|
||||||
|
|
||||||
|
If you're filing a bug, please describe how to reproduce it. Include as much
|
||||||
|
relevant information as possible, such as:
|
||||||
|
|
||||||
|
### Bug summary
|
||||||
|
|
||||||
|
<!--
|
||||||
|
* Write a short summary of the bug
|
||||||
|
* Try to pinpoint it as much as possible
|
||||||
|
* Try to state the _actual problem_, and not just what you _think_ the
|
||||||
|
solution might be.
|
||||||
|
-->
|
||||||
|
|
||||||
|
### Specifics
|
||||||
|
|
||||||
|
<!--
|
||||||
|
* Mention the URL where this bug occurs, if applicable
|
||||||
|
* What version of Umbraco are you using (down to the very last digit!)
|
||||||
|
* What browser and version you are using
|
||||||
|
* Please mention if you've checked it in other browsers as well
|
||||||
|
* Please include *full error messages* and *screenshots* if possible
|
||||||
|
-->
|
||||||
|
|
||||||
|
### Steps to reproduce
|
||||||
|
|
||||||
|
<!--
|
||||||
|
* Clearly mention the steps to reproduce the bug
|
||||||
|
-->
|
||||||
|
|
||||||
|
### Expected result
|
||||||
|
|
||||||
|
<!--
|
||||||
|
* What did you _expect_ that would happen on your Umbraco site?
|
||||||
|
* Describe the intended/desired outcome after you did the steps mentioned.
|
||||||
|
-->
|
||||||
|
|
||||||
|
### Actual result
|
||||||
|
|
||||||
|
<!--
|
||||||
|
* What is the actual result of the above steps?
|
||||||
|
* Describe the behaviour of the bug
|
||||||
|
* Please, please include **error messages** and screenshots. They might mean
|
||||||
|
nothing to you, but they are _very_ helpful to us.
|
||||||
|
-->
|
||||||
@@ -0,0 +1,31 @@
|
|||||||
|
---
|
||||||
|
name: 📮 Feature Request
|
||||||
|
about: Open a feature request, if you want to propose a new feature.
|
||||||
|
---
|
||||||
|
|
||||||
|
A brief description of your feature request goes here.
|
||||||
|
|
||||||
|
|
||||||
|
<!--
|
||||||
|
If you want to discuss the feature you're imagining, please make sure to keep
|
||||||
|
those discussions on the forum at https://our.umbraco.com/ (choose the
|
||||||
|
category "Contributing to Umbraco", Umbraco HQ follows all new topics there).
|
||||||
|
|
||||||
|
Once you've come to a conclusion in the discussion, feel free to propose the
|
||||||
|
new feature here.
|
||||||
|
-->
|
||||||
|
|
||||||
|
How can you help?
|
||||||
|
-------------------------------
|
||||||
|
|
||||||
|
<!--
|
||||||
|
The resources (read: available time and effort) of Umbraco's core team are
|
||||||
|
limited.
|
||||||
|
|
||||||
|
If we can not work on your suggestion, please don't take it personally. Most
|
||||||
|
likely, it's either:
|
||||||
|
|
||||||
|
- We think your idea is valid, but we can't find the time to work on it.
|
||||||
|
- Your idea might be better suited as a package, if it's not suitable for
|
||||||
|
the majority of users.
|
||||||
|
-->
|
||||||
@@ -0,0 +1,9 @@
|
|||||||
|
---
|
||||||
|
name: ⁉️ Support Question
|
||||||
|
about: Having trouble with Umbraco? -> https://our.umbraco.com
|
||||||
|
---
|
||||||
|
|
||||||
|
This issue tracker is NOT meant for support questions. If you have a question,
|
||||||
|
please join us on the forum at https://our.umbraco.com.
|
||||||
|
|
||||||
|
Thanks!
|
||||||
@@ -0,0 +1,9 @@
|
|||||||
|
---
|
||||||
|
name: 📖 Documentation Issue
|
||||||
|
about: See https://github.com/umbraco/UmbracoDocs/issues for documentation issues
|
||||||
|
---
|
||||||
|
|
||||||
|
The Umbraco documentation has its own dedicated repository. Please open your
|
||||||
|
documentation-related issue at https://github.com/umbraco/UmbracoDocs/issues
|
||||||
|
|
||||||
|
Thanks!
|
||||||
@@ -0,0 +1,31 @@
|
|||||||
|
---
|
||||||
|
name: 🔐 Security Issue
|
||||||
|
about: Discovered a Security Issue in Umbraco?
|
||||||
|
---
|
||||||
|
|
||||||
|
⚠️ PLEASE DON'T DISCLOSE SECURITY-RELATED ISSUES PUBLICLY, SEE BELOW.
|
||||||
|
|
||||||
|
If you have found a security issue in Umbraco, please send the details to
|
||||||
|
security@umbraco.com and don't disclose it publicly until we can provide a fix for
|
||||||
|
it. If you wish, we'll credit you for finding verified issues, when we release
|
||||||
|
the patched version.
|
||||||
|
|
||||||
|
❗ Please read more about how to report security issues on https://umbraco.com/security
|
||||||
|
|
||||||
|
A note on "Self XSS"
|
||||||
|
--------------------
|
||||||
|
|
||||||
|
Umbraco is a CMS, that allows users to edit content on a website. As such,
|
||||||
|
all _authenticated users_ can:
|
||||||
|
|
||||||
|
- Edit content, and (depending on the field types) insert HTML and CSS in that
|
||||||
|
content, with a variety of allowed attributes.
|
||||||
|
- Depending on the user level: Edit template files, and insert C#, HTML, CSS and
|
||||||
|
javascript in so on.
|
||||||
|
- Upload files to the site, which will become publicly available.
|
||||||
|
|
||||||
|
We see these functionalities as _features_, and not as security issues. Please
|
||||||
|
report the mentioned items only if they can be performed by non-authorized
|
||||||
|
users, or other exploitable vulnerabilities.
|
||||||
|
|
||||||
|
Thanks!
|
||||||
@@ -1,11 +1,11 @@
|
|||||||
### Prerequisites
|
### Prerequisites
|
||||||
|
|
||||||
- [ ] I have written a descriptive pull-request title
|
- [ ] I have [created an issue](https://github.com/umbraco/Umbraco-CMS/issues) for the proposed changes in this PR, the link is:
|
||||||
- [ ] I have linked this PR to an issue on the tracker at http://issues.umbraco.org
|
- [ ] I have added steps to test this contribution in the description below
|
||||||
|
|
||||||
### Description
|
### Description
|
||||||
<!-- A description of the changes proposed in the pull-request -->
|
<!-- A description of the changes proposed in the pull-request -->
|
||||||
|
<!-- Make sure to link to the related issue number so we can easily find it in the issue tracker -->
|
||||||
|
|
||||||
|
|
||||||
<!-- Thanks for contributing to Umbraco CMS! -->
|
<!-- Thanks for contributing to Umbraco CMS! -->
|
||||||
|
|||||||
@@ -260,7 +260,7 @@ function contentEditingHelper(fileManager, $q, $location, $routeParams, notifica
|
|||||||
// if save button is alread the default don't change it just update the label
|
// if save button is alread the default don't change it just update the label
|
||||||
if (buttons.defaultButton && buttons.defaultButton.letter === "A") {
|
if (buttons.defaultButton && buttons.defaultButton.letter === "A") {
|
||||||
buttons.defaultButton.labelKey = "buttons_saveAndSchedule";
|
buttons.defaultButton.labelKey = "buttons_saveAndSchedule";
|
||||||
return;
|
return buttons;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(buttons.defaultButton && buttons.subButtons && buttons.subButtons.length > 0) {
|
if(buttons.defaultButton && buttons.subButtons && buttons.subButtons.length > 0) {
|
||||||
|
|||||||
@@ -60,11 +60,6 @@
|
|||||||
border-radius: 3px;
|
border-radius: 3px;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Hide Circle when not active
|
|
||||||
i.small{
|
|
||||||
display: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Circle behind the checkmark
|
// Circle behind the checkmark
|
||||||
i.small.active{
|
i.small.active{
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
z-index: 10000;
|
z-index: 65537;
|
||||||
top: 0;
|
top: 0;
|
||||||
left: 0;
|
left: 0;
|
||||||
margin: 0 !important;
|
margin: 0 !important;
|
||||||
|
|||||||
@@ -181,7 +181,7 @@
|
|||||||
<form method="POST" name="requestPasswordResetForm" ng-submit="requestPasswordResetSubmit(email)">
|
<form method="POST" name="requestPasswordResetForm" ng-submit="requestPasswordResetSubmit(email)">
|
||||||
<div class="control-group" ng-class="{error: requestPasswordResetForm.email.$invalid}">
|
<div class="control-group" ng-class="{error: requestPasswordResetForm.email.$invalid}">
|
||||||
<label><localize key="general_email">Email</localize></label>
|
<label><localize key="general_email">Email</localize></label>
|
||||||
<input type="email" ng-model="email" name="email" class="-full-width-input" localize="placeholder" placeholder="@placeholders_email" />
|
<input type="email" val-email ng-model="email" name="email" class="-full-width-input" localize="placeholder" placeholder="@placeholders_email" />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="control-group" ng-show="requestPasswordResetForm.$invalid">
|
<div class="control-group" ng-show="requestPasswordResetForm.$invalid">
|
||||||
|
|||||||
@@ -480,6 +480,7 @@
|
|||||||
<key alias="currentListViewDesc" version="7.2">The active list view data type</key>
|
<key alias="currentListViewDesc" version="7.2">The active list view data type</key>
|
||||||
<key alias="createListView" version="7.2">Create custom list view</key>
|
<key alias="createListView" version="7.2">Create custom list view</key>
|
||||||
<key alias="removeListView" version="7.2">Remove custom list view</key>
|
<key alias="removeListView" version="7.2">Remove custom list view</key>
|
||||||
|
<key alias="aliasAlreadyExists">A content type, media type or member type with this alias already exists</key>
|
||||||
</area>
|
</area>
|
||||||
<area alias="renamecontainer">
|
<area alias="renamecontainer">
|
||||||
<key alias="renamed">Renamed</key>
|
<key alias="renamed">Renamed</key>
|
||||||
|
|||||||
@@ -480,6 +480,7 @@
|
|||||||
<key alias="currentListViewDesc" version="7.2">The active list view data type</key>
|
<key alias="currentListViewDesc" version="7.2">The active list view data type</key>
|
||||||
<key alias="createListView" version="7.2">Create custom list view</key>
|
<key alias="createListView" version="7.2">Create custom list view</key>
|
||||||
<key alias="removeListView" version="7.2">Remove custom list view</key>
|
<key alias="removeListView" version="7.2">Remove custom list view</key>
|
||||||
|
<key alias="aliasAlreadyExists">A content type, media type or member type with this alias already exists</key>
|
||||||
</area>
|
</area>
|
||||||
<area alias="renamecontainer">
|
<area alias="renamecontainer">
|
||||||
<key alias="renamed">Renamed</key>
|
<key alias="renamed">Renamed</key>
|
||||||
|
|||||||
@@ -46,7 +46,7 @@ namespace Umbraco.Web
|
|||||||
//start the background task runner for processing instructions
|
//start the background task runner for processing instructions
|
||||||
const int delayMilliseconds = 60000;
|
const int delayMilliseconds = 60000;
|
||||||
var instructionProcessingRunner = new BackgroundTaskRunner<IBackgroundTask>("InstructionProcessing", ApplicationContext.ProfilingLogger.Logger);
|
var instructionProcessingRunner = new BackgroundTaskRunner<IBackgroundTask>("InstructionProcessing", ApplicationContext.ProfilingLogger.Logger);
|
||||||
var instructionProcessingTask = new InstructionProcessing(instructionProcessingRunner, this, _appContext.ScopeProvider, delayMilliseconds, Options.ThrottleSeconds * 1000);
|
var instructionProcessingTask = new InstructionProcessing(instructionProcessingRunner, this, _appContext.ScopeProvider, ApplicationContext.ProfilingLogger.Logger, delayMilliseconds, Options.ThrottleSeconds * 1000);
|
||||||
instructionProcessingRunner.TryAdd(instructionProcessingTask);
|
instructionProcessingRunner.TryAdd(instructionProcessingTask);
|
||||||
e.Add(instructionProcessingTask);
|
e.Add(instructionProcessingTask);
|
||||||
}
|
}
|
||||||
@@ -78,18 +78,36 @@ namespace Umbraco.Web
|
|||||||
{
|
{
|
||||||
private readonly DatabaseServerMessenger _messenger;
|
private readonly DatabaseServerMessenger _messenger;
|
||||||
private readonly IScopeProvider _scopeProvider;
|
private readonly IScopeProvider _scopeProvider;
|
||||||
|
private readonly ILogger _logger;
|
||||||
|
|
||||||
public InstructionProcessing(IBackgroundTaskRunner<RecurringTaskBase> runner,
|
public InstructionProcessing(IBackgroundTaskRunner<RecurringTaskBase> runner,
|
||||||
DatabaseServerMessenger messenger,
|
DatabaseServerMessenger messenger,
|
||||||
IScopeProvider scopeProvider,
|
IScopeProvider scopeProvider,
|
||||||
|
ILogger logger,
|
||||||
int delayMilliseconds, int periodMilliseconds)
|
int delayMilliseconds, int periodMilliseconds)
|
||||||
: base(runner, delayMilliseconds, periodMilliseconds)
|
: base(runner, delayMilliseconds, periodMilliseconds)
|
||||||
{
|
{
|
||||||
_messenger = messenger;
|
_messenger = messenger;
|
||||||
_scopeProvider = scopeProvider;
|
_scopeProvider = scopeProvider;
|
||||||
|
_logger = logger;
|
||||||
}
|
}
|
||||||
|
|
||||||
public override bool PerformRun()
|
public override bool PerformRun()
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
TryPerformRun();
|
||||||
|
}
|
||||||
|
catch (Exception e)
|
||||||
|
{
|
||||||
|
_logger.Error<InstructionProcessing>("Failed (will repeat).", e);
|
||||||
|
}
|
||||||
|
|
||||||
|
//return true to repeat
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
private void TryPerformRun()
|
||||||
{
|
{
|
||||||
// beware!
|
// beware!
|
||||||
// DatabaseServerMessenger uses _appContext.DatabaseContext.Database without creating
|
// DatabaseServerMessenger uses _appContext.DatabaseContext.Database without creating
|
||||||
@@ -102,8 +120,6 @@ namespace Umbraco.Web
|
|||||||
_messenger.Sync();
|
_messenger.Sync();
|
||||||
scope.Complete();
|
scope.Complete();
|
||||||
}
|
}
|
||||||
//return true to repeat
|
|
||||||
return true;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public override bool IsAsync
|
public override bool IsAsync
|
||||||
@@ -167,7 +183,7 @@ namespace Umbraco.Web
|
|||||||
// can get the http context from it
|
// can get the http context from it
|
||||||
var httpContext = (UmbracoContext.Current == null ? null : UmbracoContext.Current.HttpContext)
|
var httpContext = (UmbracoContext.Current == null ? null : UmbracoContext.Current.HttpContext)
|
||||||
// if this is null, it could be that an async thread is calling this method that we weren't aware of and the UmbracoContext
|
// if this is null, it could be that an async thread is calling this method that we weren't aware of and the UmbracoContext
|
||||||
// wasn't ensured at the beginning of the thread. We can try to see if the HttpContext.Current is available which might be
|
// wasn't ensured at the beginning of the thread. We can try to see if the HttpContext.Current is available which might be
|
||||||
// the case if the asp.net synchronization context has kicked in
|
// the case if the asp.net synchronization context has kicked in
|
||||||
?? (HttpContext.Current == null ? null : new HttpContextWrapper(HttpContext.Current));
|
?? (HttpContext.Current == null ? null : new HttpContextWrapper(HttpContext.Current));
|
||||||
|
|
||||||
|
|||||||
@@ -227,9 +227,9 @@ namespace Umbraco.Web.Editors
|
|||||||
// works since that is based on aliases.
|
// works since that is based on aliases.
|
||||||
var allAliases = Services.ContentTypeService.GetAllContentTypeAliases();
|
var allAliases = Services.ContentTypeService.GetAllContentTypeAliases();
|
||||||
var exists = allAliases.InvariantContains(contentTypeSave.Alias);
|
var exists = allAliases.InvariantContains(contentTypeSave.Alias);
|
||||||
if ((exists) && (ctId == 0 || ct.Alias != contentTypeSave.Alias))
|
if (exists && (ctId == 0 || ct.Alias.InvariantEquals(contentTypeSave.Alias) == false))
|
||||||
{
|
{
|
||||||
ModelState.AddModelError("Alias", "A content type, media type or member type with this alias already exists");
|
ModelState.AddModelError("Alias", Services.TextService.Localize("editcontenttype/aliasAlreadyExists"));
|
||||||
}
|
}
|
||||||
|
|
||||||
//now let the external validators execute
|
//now let the external validators execute
|
||||||
|
|||||||
@@ -647,10 +647,15 @@ namespace Umbraco.Web.Security
|
|||||||
var provider = _membershipProvider;
|
var provider = _membershipProvider;
|
||||||
|
|
||||||
string username;
|
string username;
|
||||||
|
|
||||||
if (provider.IsUmbracoMembershipProvider())
|
if (provider.IsUmbracoMembershipProvider())
|
||||||
{
|
{
|
||||||
var member = GetCurrentPersistedMember();
|
var member = GetCurrentPersistedMember();
|
||||||
|
// If a member could not be resolved from the provider, we are clearly not authorized and can break right here
|
||||||
|
if (member == null)
|
||||||
|
return false;
|
||||||
username = member.Username;
|
username = member.Username;
|
||||||
|
|
||||||
// If types defined, check member is of one of those types
|
// If types defined, check member is of one of those types
|
||||||
var allowTypesList = allowTypes as IList<string> ?? allowTypes.ToList();
|
var allowTypesList = allowTypes as IList<string> ?? allowTypes.ToList();
|
||||||
if (allowTypesList.Any(allowType => allowType != string.Empty))
|
if (allowTypesList.Any(allowType => allowType != string.Empty))
|
||||||
@@ -669,6 +674,9 @@ namespace Umbraco.Web.Security
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
var member = provider.GetCurrentUser();
|
var member = provider.GetCurrentUser();
|
||||||
|
// If a member could not be resolved from the provider, we are clearly not authorized and can break right here
|
||||||
|
if (member == null)
|
||||||
|
return false;
|
||||||
username = member.UserName;
|
username = member.UserName;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user