Hi Florent,
could you please try the appended patch?
Rainer
______________________________________________________________________
On Thu, 23 Sep 2010, florent andré wrote:
> no messages in logs....
>
> Documents are "checked in" when I try to modify.
> The tiny editor open well, I can do text modification, and when I clic on
> save the message appear on top of the editor.
>
> Click on "cancel" do nothing, document is still open.
>
> I have to clic on another doc to escape from the editor.
>
> I can edit with no problem the same document with another editor.
>
> Maybe a complete rebuild on 20X give you the same error...
>
> A rgrep give me the source of this message :
> ** rgrep "Usecase messages for" . | grep -v .svn
> * ./src/modules/tinymce/xslt/page2edit.xsl: <p><strong>Usecase messages
> for "<xsl:value-of select="$usecaseName"/>":</strong></p>
>
> Thanks for invest on it !
>
> ++
>
> On 09/23/2010 07:14 PM, Rainer Schöpf wrote:
> > Hello Florent,
> >
> > > Hi Rainer,
> > >
> > > Sorry, I don't know this tutorial page.
> > >
> > > Just try it on the 2_0_X branch, and I still have this message when I
> > try to
> > > save the document (test on imported documents) :
> > >
> > > Usecase messages for "tinymce.edit":
> > >
> > > * Involved objects are checked out.
> > >
> > >
> > > I can edit the same page with others editors with no problems.
> > >
> > > Can you reproduce it ?
> >
> > No. Any message in one of the log files in the .../webapp/WEB-INF/logs
> > directory?
> >
> > Can you please try to force a checkin and edit again?
> >
> > >
> > > My conf :
> > > - java 6
> > > - ubuntu 10.04, 64 bits
> >
> > My setup is java 5, ubuntu 10.04 32 bits.
> >
> > I can try a complete rebuild from sources, if necessary.
> >
> > Rainer
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: dev-unsubscr...@lenya.apache.org
> > For additional commands, e-mail: dev-h...@lenya.apache.org
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscr...@lenya.apache.org
> For additional commands, e-mail: dev-h...@lenya.apache.org
>
Rainer
Index: src/modules/tinymce/java/src/org/apache/lenya/cms/editors/tinymce/TinyMce.java
===================================================================
--- src/modules/tinymce/java/src/org/apache/lenya/cms/editors/tinymce/TinyMce.java (revision 999889)
+++ src/modules/tinymce/java/src/org/apache/lenya/cms/editors/tinymce/TinyMce.java (revision 1024309)
@@ -36,6 +36,7 @@
import org.apache.lenya.cms.usecase.xml.UsecaseErrorHandler;
import org.apache.lenya.cms.workflow.WorkflowUtil;
import org.apache.lenya.cms.workflow.usecases.UsecaseWorkflowHelper;
+import org.apache.lenya.util.ServletHelper;
import org.apache.lenya.xml.DocumentHelper;
import org.apache.lenya.xml.Schema;
import org.apache.lenya.xml.ValidationUtil;
@@ -77,6 +78,10 @@
super.doCheckPreconditions();
UsecaseWorkflowHelper.checkWorkflow(this.manager, this, getEvent(), getSourceDocument(),
getLogger());
+ if (!ServletHelper.isUploadEnabled(this.manager)) {
+ addErrorMessage("upload-disabled");
+ }
+
}
/**
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@lenya.apache.org
For additional commands, e-mail: dev-h...@lenya.apache.org