You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@roller.apache.org by Axel <ax...@gmail.com> on 2005/08/29 23:17:18 UTC

Deleting a blog entry

Hi

I tried the following steps in latests sources from 2.0 SVN: 
1. create a blog entry "Test" and "post to blog"
2. Then edited the same blog entry by clicking on "Recent Entries"
3. Press button "Delete Entry"
4. Press "Yes"

The following message sho a wrong "permission denied":

-----

"Entry removed
Permission Denied
Possible causes:

    * You requested a weblog entry that you do not have permission to
edit (perhaps one you've already submitted for review?).
    * You tried to save an object from "stale" web page, left by an
earlier login under a different user account.
    * You logged in using incorrect capitalization of your username.
To resolve this problem, logout and login again with your correct
username.
    * Your blog server's database connection is misconfigured. To
resolve this problem, see your system adminstrator."

-----

Using the browsers "Back" or "Refresh" button from this screen, gives
NPEs (because the entry is removed)

   java.lang.NullPointerException
	at org.roller.presentation.weblog.actions.WeblogEntryFormAction.edit(WeblogEntryFormAction.java:148)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:585)
	at org.apache.struts.actions.DispatchAction.dispatchMethod(DispatchAction.java:276)
	at org.apache.struts.actions.DispatchAction.execute(DispatchAction.java:196)

Re: Deleting a blog entry

Posted by Dave Johnson <da...@rollerweblogger.org>.
I agree. I just committed code to show the error page with a "requested  
entry not found" message rather than a stack trace.

- Dave



On Aug 30, 2005, at 2:42 PM, Axel wrote:
> On 8/30/05, Dave Johnson <da...@rollerweblogger.org> wrote:
>> Thanks *again* for your patience and your bug reports.
> Thanks for *your* great piece of software :-)
>
> And agein an NPE:
> If an entry is not available or the entry is removed, I think roller  
> should say
> "Sorry, entry not found"
>
> but I get an NPE:
> http://localhost:8080/roller/editor/weblog.do? 
> entryid=ff8080810607e13b0106084042a80001&method=edit
>
>    java.lang.NullPointerException
> 	at  
> org.roller.presentation.weblog.actions.WeblogEntryFormAction.edit(Weblo 
> gEntryFormAction.java:153)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at  
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.ja 
> va:39)
> 	at  
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccesso 
> rImpl.java:25)
> 	at java.lang.reflect.Method.invoke(Method.java:585)
> 	at  
> org.apache.struts.actions.DispatchAction.dispatchMethod(DispatchAction. 
> java:276)
>


Re: Deleting a blog entry

Posted by Axel <ax...@gmail.com>.
On 8/30/05, Dave Johnson <da...@rollerweblogger.org> wrote:
> Thanks *again* for your patience and your bug reports.
Thanks for *your* great piece of software :-)

And agein an NPE:
If an entry is not available or the entry is removed, I think roller should say
"Sorry, entry not found"

but I get an NPE:
http://localhost:8080/roller/editor/weblog.do?entryid=ff8080810607e13b0106084042a80001&method=edit

   java.lang.NullPointerException
	at org.roller.presentation.weblog.actions.WeblogEntryFormAction.edit(WeblogEntryFormAction.java:153)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:585)
	at org.apache.struts.actions.DispatchAction.dispatchMethod(DispatchAction.java:276)

Re: Deleting a blog entry

Posted by Dave Johnson <da...@rollerweblogger.org>.
Thanks *again* for your patience and your bug reports.

I just committed code to fix this one as well.

- Dave


On Aug 29, 2005, at 5:17 PM, Axel wrote:

> Hi
>
> I tried the following steps in latests sources from 2.0 SVN:
> 1. create a blog entry "Test" and "post to blog"
> 2. Then edited the same blog entry by clicking on "Recent Entries"
> 3. Press button "Delete Entry"
> 4. Press "Yes"
>
> The following message sho a wrong "permission denied":
>
> -----
>
> "Entry removed
> Permission Denied
> Possible causes:
>
>     * You requested a weblog entry that you do not have permission to
> edit (perhaps one you've already submitted for review?).
>     * You tried to save an object from "stale" web page, left by an
> earlier login under a different user account.
>     * You logged in using incorrect capitalization of your username.
> To resolve this problem, logout and login again with your correct
> username.
>     * Your blog server's database connection is misconfigured. To
> resolve this problem, see your system adminstrator."
>
> -----
>
> Using the browsers "Back" or "Refresh" button from this screen, gives
> NPEs (because the entry is removed)
>
>    java.lang.NullPointerException
> 	at  
> org.roller.presentation.weblog.actions.WeblogEntryFormAction.edit(Weblo 
> gEntryFormAction.java:148)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at  
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.ja 
> va:39)
> 	at  
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccesso 
> rImpl.java:25)
> 	at java.lang.reflect.Method.invoke(Method.java:585)
> 	at  
> org.apache.struts.actions.DispatchAction.dispatchMethod(DispatchAction. 
> java:276)
> 	at  
> org.apache.struts.actions.DispatchAction.execute(DispatchAction.java: 
> 196)
>