You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lenya.apache.org by "Gregor J. Rothfuss" <gr...@apache.org> on 2004/12/05 00:33:57 UTC
Re: error when trying to edit a document
Doug Chestnut wrote:
> Hi Developers,
> I have installed lenya from the trunk (I guess that this is 1.4) and
> have noticed some errors with the default pub.
> I think that I have taken care of my biggest problem. I couldn't edit a
> doc, with any of the editors (well actually I only tried "one form" and
> bitflux). Bitflux gave an error when I tried to save, and "one form"
> would just give me a blank page and a log entry in the error log:
>
thanks, applied
--
Gregor J. Rothfuss
COO, Wyona Content Management Solutions http://wyona.com
Apache Lenya http://lenya.apache.org
gregor.rothfuss@wyona.com gregor@apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org
Apache Lenya Project http://lenya.apache.org
Re: error when trying to edit a document
Posted by "Gregor J. Rothfuss" <gr...@apache.org>.
Doug Chestnut wrote:
> Ok, I must have been up too late last night.
> This must just be svn user error on my part.
> I did a svn co http://svn.apache.org/repos/asf/lenya/trunk lenya-1.4
> yesterday afternoon, built lenya, restarted tomcat, and got an error
> about invalid characters. My edit-document.js file appeared to be
> corrupt with >>>>>>> characters inbetween the lines that had changed
> (showing the last two changes from antonio and gregor). I removed the
> offending lines (lines before changes had been made) and rebuilt, all
> was well again in my world. I assumed that the corrupt file that I had
> was from the trunk, and not from my lack of experience with svn. Sorry,
> I will be sure to double check the web interface to cvs next time.
>>>> indicates a conflict in the file. probably because you had local
changes, and our commits conflicted.
> Should I go ahead and close the bugzilla entry? use INVALID? (dumb XXXX
> isn't listed in the resolution types).
INVALID is fine, don't sweat it :)
--
Gregor J. Rothfuss
COO, Wyona Content Management Solutions http://wyona.com
Apache Lenya http://lenya.apache.org
gregor.rothfuss@wyona.com gregor@apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org
Apache Lenya Project http://lenya.apache.org
Re: error when trying to edit a document
Posted by Doug Chestnut <dh...@virginia.edu>.
Initially this was the problem with edit-document.js:
var dstUri =
flowHelper.getDocumentHelper(cocoon).getSourceUri(flowHelper.getPageEnvelope(cocoon).getDocument());
The DocumentHelper returned by the FlowHelper doesn't have a
getSourceUri method in the 1.4 api.
There was also a problem with the error being logged from edit-document.js:
cocoon.log.error("Can not edit doucment.", exception);
the exception was better seen in the logs by using its toString() method
The changes I made to my files conflicted with the changes that Gregor
made, causing my confusion. Sorry bout that.
Rolf Kulemann wrote:
> Doug Chestnut wrote:
>
>> Ok, I must have been up too late last night.
>> This must just be svn user error on my part.
>> I did a svn co http://svn.apache.org/repos/asf/lenya/trunk lenya-1.4
>> yesterday afternoon, built lenya, restarted tomcat, and got an error
>> about invalid characters. My edit-document.js file appeared to be
>> corrupt with >>>>>>> characters inbetween the lines that had changed
>> (showing the last two changes from antonio and gregor). I removed the
>> offending lines (lines before changes had been made) and rebuilt, all
>> was well again in my world. I assumed that the corrupt file that I
>> had was from the trunk, and not from my lack of experience with svn.
>> Sorry, I will be sure to double check the web interface to cvs next time.
>>
>> Should I go ahead and close the bugzilla entry? use INVALID? (dumb
>> XXXX isn't listed in the resolution types).
>
>
> Ok, but what was wrong with the file edit-document.js? Nothing? please
> tell me.
>
> --
> Rolf
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
> For additional commands, e-mail: dev-help@lenya.apache.org
> Apache Lenya Project http://lenya.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org
Apache Lenya Project http://lenya.apache.org
Re: error when trying to edit a document
Posted by Rolf Kulemann <ro...@apache.org>.
Doug Chestnut wrote:
> Ok, I must have been up too late last night.
> This must just be svn user error on my part.
> I did a svn co http://svn.apache.org/repos/asf/lenya/trunk lenya-1.4
> yesterday afternoon, built lenya, restarted tomcat, and got an error
> about invalid characters. My edit-document.js file appeared to be
> corrupt with >>>>>>> characters inbetween the lines that had changed
> (showing the last two changes from antonio and gregor). I removed the
> offending lines (lines before changes had been made) and rebuilt, all
> was well again in my world. I assumed that the corrupt file that I had
> was from the trunk, and not from my lack of experience with svn. Sorry,
> I will be sure to double check the web interface to cvs next time.
>
> Should I go ahead and close the bugzilla entry? use INVALID? (dumb XXXX
> isn't listed in the resolution types).
Ok, but what was wrong with the file edit-document.js? Nothing? please
tell me.
--
Rolf
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org
Apache Lenya Project http://lenya.apache.org
Re: error when trying to edit a document
Posted by Doug Chestnut <dh...@virginia.edu>.
Ok, I must have been up too late last night.
This must just be svn user error on my part.
I did a svn co http://svn.apache.org/repos/asf/lenya/trunk lenya-1.4
yesterday afternoon, built lenya, restarted tomcat, and got an error
about invalid characters. My edit-document.js file appeared to be
corrupt with >>>>>>> characters inbetween the lines that had changed
(showing the last two changes from antonio and gregor). I removed the
offending lines (lines before changes had been made) and rebuilt, all
was well again in my world. I assumed that the corrupt file that I had
was from the trunk, and not from my lack of experience with svn. Sorry,
I will be sure to double check the web interface to cvs next time.
Should I go ahead and close the bugzilla entry? use INVALID? (dumb XXXX
isn't listed in the resolution types).
Rolf Kulemann wrote:
> Hi Doug, it seeems you have only added some empty lines?
>
> Doug Chestnut wrote:
>
>> Opps, Sorry forgot to mention, this is for 1.4
>> Here is the Bugzilla link:
>> http://issues.apache.org/bugzilla/show_bug.cgi?id=32555
>>
>> Doug Chestnut wrote:
>>
>>> Hi Gregor,
>>> Still seems to be a problem with
>>> /src/webapp/lenya/usecases/edit-document.js
>>> Here is the patch:
>>>
>>> Index: edit-document.js
>>> ===================================================================
>>> --- edit-document.js (revision 109934)
>>> +++ edit-document.js (working copy)
>>> @@ -40,6 +40,7 @@
>>> try {
>>> var flowHelper = new FlowHelper();
>>> var resolver = cocoon.getComponent(SourceResolver.ROLE);
>>> +
>>> var dstUri =
>>> flowHelper.getPageEnvelope(cocoon).getDocument().getSourceURI();
>>>
>>> SourceUtil.copy(resolver, cocoon.parameters["sourceUri"],
>>> dstUri, _getParameter("useBuffer", "false") == "true");
>>> @@ -56,7 +57,9 @@
>>> cocoon.redirectTo(_getParameter("redirectUrl", "FIXME"));
>>>
>>> } catch (exception) {
>>> +
>>> cocoon.log.error("Can not edit document.",
>>> exception.toString());
>>> +
>>> } finally {
>>> if(resolver != null)
>>> cocoon.releaseComponent(resolver);
>>>
>>> Gregor J. Rothfuss wrote:
>>>
>>>> Doug Chestnut wrote:
>>>>
>>>>> Hi Developers,
>>>>> I have installed lenya from the trunk (I guess that this is 1.4)
>>>>> and have noticed some errors with the default pub.
>>>>> I think that I have taken care of my biggest problem. I couldn't
>>>>> edit a doc, with any of the editors (well actually I only tried
>>>>> "one form" and bitflux). Bitflux gave an error when I tried to
>>>>> save, and "one form" would just give me a blank page and a log
>>>>> entry in the error log:
>>>>>
>>>>
>>>> thanks, applied
>>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
>>> For additional commands, e-mail: dev-help@lenya.apache.org
>>> Apache Lenya Project http://lenya.apache.org
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
>> For additional commands, e-mail: dev-help@lenya.apache.org
>> Apache Lenya Project http://lenya.apache.org
>>
>>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org
Apache Lenya Project http://lenya.apache.org
Re: error when trying to edit a document
Posted by Rolf Kulemann <ro...@apache.org>.
Hi Doug, it seeems you have only added some empty lines?
Doug Chestnut wrote:
> Opps, Sorry forgot to mention, this is for 1.4
> Here is the Bugzilla link:
> http://issues.apache.org/bugzilla/show_bug.cgi?id=32555
>
> Doug Chestnut wrote:
>
>> Hi Gregor,
>> Still seems to be a problem with
>> /src/webapp/lenya/usecases/edit-document.js
>> Here is the patch:
>>
>> Index: edit-document.js
>> ===================================================================
>> --- edit-document.js (revision 109934)
>> +++ edit-document.js (working copy)
>> @@ -40,6 +40,7 @@
>> try {
>> var flowHelper = new FlowHelper();
>> var resolver = cocoon.getComponent(SourceResolver.ROLE);
>> +
>> var dstUri =
>> flowHelper.getPageEnvelope(cocoon).getDocument().getSourceURI();
>>
>> SourceUtil.copy(resolver, cocoon.parameters["sourceUri"],
>> dstUri, _getParameter("useBuffer", "false") == "true");
>> @@ -56,7 +57,9 @@
>> cocoon.redirectTo(_getParameter("redirectUrl", "FIXME"));
>>
>> } catch (exception) {
>> +
>> cocoon.log.error("Can not edit document.",
>> exception.toString());
>> +
>> } finally {
>> if(resolver != null)
>> cocoon.releaseComponent(resolver);
>>
>> Gregor J. Rothfuss wrote:
>>
>>> Doug Chestnut wrote:
>>>
>>>> Hi Developers,
>>>> I have installed lenya from the trunk (I guess that this is 1.4) and
>>>> have noticed some errors with the default pub.
>>>> I think that I have taken care of my biggest problem. I couldn't
>>>> edit a doc, with any of the editors (well actually I only tried "one
>>>> form" and bitflux). Bitflux gave an error when I tried to save, and
>>>> "one form" would just give me a blank page and a log entry in the
>>>> error log:
>>>>
>>>
>>> thanks, applied
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
>> For additional commands, e-mail: dev-help@lenya.apache.org
>> Apache Lenya Project http://lenya.apache.org
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
> For additional commands, e-mail: dev-help@lenya.apache.org
> Apache Lenya Project http://lenya.apache.org
>
>
--
Rolf Kulemann
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org
Apache Lenya Project http://lenya.apache.org
Re: error when trying to edit a document
Posted by Doug Chestnut <dh...@virginia.edu>.
Opps, Sorry forgot to mention, this is for 1.4
Here is the Bugzilla link:
http://issues.apache.org/bugzilla/show_bug.cgi?id=32555
Doug Chestnut wrote:
> Hi Gregor,
> Still seems to be a problem with
> /src/webapp/lenya/usecases/edit-document.js
> Here is the patch:
>
> Index: edit-document.js
> ===================================================================
> --- edit-document.js (revision 109934)
> +++ edit-document.js (working copy)
> @@ -40,6 +40,7 @@
> try {
> var flowHelper = new FlowHelper();
> var resolver = cocoon.getComponent(SourceResolver.ROLE);
> +
> var dstUri =
> flowHelper.getPageEnvelope(cocoon).getDocument().getSourceURI();
>
> SourceUtil.copy(resolver, cocoon.parameters["sourceUri"],
> dstUri, _getParameter("useBuffer", "false") == "true");
> @@ -56,7 +57,9 @@
> cocoon.redirectTo(_getParameter("redirectUrl", "FIXME"));
>
> } catch (exception) {
> +
> cocoon.log.error("Can not edit document.", exception.toString());
> +
> } finally {
> if(resolver != null)
> cocoon.releaseComponent(resolver);
>
> Gregor J. Rothfuss wrote:
>
>> Doug Chestnut wrote:
>>
>>> Hi Developers,
>>> I have installed lenya from the trunk (I guess that this is 1.4) and
>>> have noticed some errors with the default pub.
>>> I think that I have taken care of my biggest problem. I couldn't
>>> edit a doc, with any of the editors (well actually I only tried "one
>>> form" and bitflux). Bitflux gave an error when I tried to save, and
>>> "one form" would just give me a blank page and a log entry in the
>>> error log:
>>>
>>
>> thanks, applied
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
> For additional commands, e-mail: dev-help@lenya.apache.org
> Apache Lenya Project http://lenya.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org
Apache Lenya Project http://lenya.apache.org
Re: error when trying to edit a document
Posted by Doug Chestnut <dh...@virginia.edu>.
Hi Gregor,
Still seems to be a problem with
/src/webapp/lenya/usecases/edit-document.js
Here is the patch:
Index: edit-document.js
===================================================================
--- edit-document.js (revision 109934)
+++ edit-document.js (working copy)
@@ -40,6 +40,7 @@
try {
var flowHelper = new FlowHelper();
var resolver = cocoon.getComponent(SourceResolver.ROLE);
+
var dstUri =
flowHelper.getPageEnvelope(cocoon).getDocument().getSourceURI();
SourceUtil.copy(resolver, cocoon.parameters["sourceUri"],
dstUri, _getParameter("useBuffer", "false") == "true");
@@ -56,7 +57,9 @@
cocoon.redirectTo(_getParameter("redirectUrl", "FIXME"));
} catch (exception) {
+
cocoon.log.error("Can not edit document.", exception.toString());
+
} finally {
if(resolver != null)
cocoon.releaseComponent(resolver);
Gregor J. Rothfuss wrote:
> Doug Chestnut wrote:
>
>> Hi Developers,
>> I have installed lenya from the trunk (I guess that this is 1.4) and
>> have noticed some errors with the default pub.
>> I think that I have taken care of my biggest problem. I couldn't edit
>> a doc, with any of the editors (well actually I only tried "one form"
>> and bitflux). Bitflux gave an error when I tried to save, and "one
>> form" would just give me a blank page and a log entry in the error log:
>>
>
> thanks, applied
>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org
Apache Lenya Project http://lenya.apache.org