but the move action link was: ttp://myLocalUmbracoWebSite/umbraco/dialogs/moveOrCopy.aspx?app=docslibrary&mode=cut&id=60024&rnd=5.4&rndo=20
and logically I have no permissions for app docslibrary (but for app docLibrary) 'cause it doesn't exist
At the first I tried to rename my section with all lowercase characters, and changing all references on Db. but it was the same.
So I created a new section/class named "docslibrary" (with everything in lower) and finally it works!
So I think that somewhere there's some method (client or server side) that makes all lowercase...
Unfortunaly again I can't move a media, cause when the pop-up window is opened, you have to choose a destination node, the nodes tree works but when you select a node you can't click on Ok button and there's yet the message "No node selected yet, please select a node in the list above before clicking 'ok'"
Where I can search for a solution? Every ideas or advices are really well-accepted
I think is quite ugly code, but I need a quick solution now and that's working...
I hope somebody can advice me to improve that code, or at least it could be helpfull to anybody with the same problem
I have a question now, in my custom media section I enabled Move and Copy function, but I figured out that in standar Media section there's only Move function.
Why? and anyway can I enable also Copy function there?
Move & Copy action error on Media custom section (UMB 4.5)
Hi,
I've got an umbraco server 4.5 migrated from a 4.0.
I have a custom area to manage a part of media tree.
I enabled Move & Copy action:
protected override void CreateAllowedActions(ref List<IAction> actions)
{
actions.Clear();
actions.Add(ActionRefresh.Instance);
actions.Add(ActionCopy.Instance);
actions.Add(ActionMove.Instance);
actions.Add(ActionNew.Instance);
actions.Add(ActionSort.Instance);
actions.Add(ActionDelete.Instance);
}
so now I have these two option on the right-click menu.
The problem is that when I click on Move or Copy, the pop-up window opens with this error:
The current user doesn't have access to this application.
Stack Trace:
[ArgumentException: The current user doesn't have access to this application. Please contact the system administrator.]
umbraco.controls.Tree.TreeControl.Initialize() +364
umbraco.controls.Tree.TreeControl.OnPreRender(EventArgs e) +109
System.Web.UI.Control.PreRenderRecursiveInternal() +103
System.Web.UI.Control.PreRenderRecursiveInternal() +175
System.Web.UI.Control.PreRenderRecursiveInternal() +175
System.Web.UI.Control.PreRenderRecursiveInternal() +175
System.Web.UI.Control.PreRenderRecursiveInternal() +175
System.Web.UI.Control.PreRenderRecursiveInternal() +175
System.Web.UI.Control.PreRenderRecursiveInternal() +175
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2496
I'm administrator and I have all rights to move or copy.
On standard Media section the error doesn't appear.
the BeforeMove event is not fired.
I tried all solutions about "The current user doesn't have access to this application" in forum threads but nothing changes.
Any idea about it?
Thanks to everybody
I solved that problem:
My custom section was called "docLibrary"
but the move action link was:
ttp://myLocalUmbracoWebSite/umbraco/dialogs/moveOrCopy.aspx?app=docslibrary&mode=cut&id=60024&rnd=5.4&rndo=20
and logically I have no permissions for app docslibrary (but for app docLibrary) 'cause it doesn't exist
At the first I tried to rename my section with all lowercase characters, and changing all references on Db. but it was the same.
So I created a new section/class named "docslibrary" (with everything in lower) and finally it works!
So I think that somewhere there's some method (client or server side) that makes all lowercase...
Unfortunaly again I can't move a media, cause when the pop-up window is opened, you have to choose a destination node, the nodes tree works but when you select a node you can't click on Ok button and there's yet the message "No node selected yet, please select a node in the list above before clicking 'ok'"
Where I can search for a solution? Every ideas or advices are really well-accepted
Thx
I found the problem:
in my RenderJS there was:
function openDocLibraryFolder(id) {
parent.right.document.location.href = 'editMedia.aspx?id=' + id;
}
but you have to call the dialogHandler js function to use the nodes tree on the popup page.
but if you call only the dialogHandler you cannot show the properties of the node when you just click.
So I replace the renderJs method with following code:
public override void RenderJS(ref System.Text.StringBuilder Javascript)
{
Javascript.Append(
@"
function openMedia(id) {
if(window.location.href.indexOf('moveOrCopy.aspx')>-1)
{
dialogHandler(id);
}else
{
parent.right.document.location.href = 'editMedia.aspx?id=' + id;
}
}
");
}
I think is quite ugly code, but I need a quick solution now and that's working...
I hope somebody can advice me to improve that code, or at least it could be helpfull to anybody with the same problem
I have a question now, in my custom media section I enabled Move and Copy function, but I figured out that in standar Media section there's only Move function.
Why? and anyway can I enable also Copy function there?
Thx
is working on a reply...