Issue Details (XML | Word | Printable)

Key: MARK-50
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Shannon Krebs
Reporter: Vincent Chang
Votes: 1
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
Confluence Social Bookmarking Plugin

Changing space of a bookmark gives error

Created: 10/Dec/07 07:07 PM   Updated: 13/Mar/08 02:44 PM
Component/s: None
Affects Version/s: 1.0.6
Fix Version/s: 1.0.8

Time Tracking:
Not Specified

File Attachments: 1. Text File atlassian-confluence.log (11 kB)

Environment: Confluence 2.6.0
Issue Links:
Duplicate
 

Labels:


 Description  « Hide
Customer is getting an error message when trying to edit the existing bookmarks to a different space.

Here are the steps to reproduce it (I can't reproduce this problem in Confluence 2.5.5).

1. Browse to a space and add a bookmarks.
2. Edit the bookmark and change the space.
3. Save the change and the error shows up.

The errors in the log:

2007-12-10 10:34:53,263 ERROR [TP-Processor2] [opensymphony.webwork.dispatcher.ServletDispatcher] serviceAction Could not execute action
– url: /plugins/socialbookmarking/updatebookmark.action | userName: raluca.metiu
org.springframework.orm.hibernate.HibernateSystemException: this instance does not yet exist as a row in the database; nested exception is net.sf.hibernate.HibernateException: this instance does not yet exist as a row in the database
net.sf.hibernate.HibernateException: this instance does not yet exist as a row in the database
at net.sf.hibernate.impl.SessionImpl.refresh(SessionImpl.java:2186)
at net.sf.hibernate.impl.SessionImpl.refresh(SessionImpl.java:2160)
at sun.reflect.GeneratedMethodAccessor329.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.springframework.orm.hibernate.HibernateTemplate$CloseSuppressingInvocationHandler.invoke(HibernateTemplate.java:1111)
at $Proxy57.refresh(Unknown Source)



 All   Comments   Work Log   Change History   FishEye   Crucible   Builds      Sort Order: Ascending order - Click to sort in descending order
Shannon Krebs added a comment - 13/Jan/08 04:23 AM
I can't reproduce this on a vanalla install of Conf 2.7, has this problem been fixed in the Confluence backend or am I missing something in the test steps?

Vincent Chang added a comment - 14/Jan/08 11:37 AM
Hi, Shannon,

I can reproduce this in Confluence 2.7 standalone (Windows XP). Can you try the following steps again?

Here are exact steps to reproduce it.
1. Create two spaces 1) test1 and 2) test2.

http://localhost:8080/display/test1/Home

http://localhost:8080/display/test2/Home

2. Browse to space 'test1' and add a bookmark.
Dashboard > test1 > Browse Space > Bookmarks

3. Add a bookmark with the following info and save it.
Title: Add test1 Bookmark
URL: http://localhost:8080/display/test1/Home

4. Click on Edit button of the newly added bookmark 'Add test1 Bookmark'.

5. Click on Space dropdown box and select 'test2' and save.

6. The error shows up.

Regards,
-Vincent


Shannon Krebs added a comment - 22/Jan/08 02:50 AM
Reloading the parent page from the database before calling the refresh to update the children details seems to avoid this problem that happens when the bookmark is moved to a space that doesn't have any other bookmarks.

Raluca Metiu added a comment - 14/Feb/08 03:26 PM
This sounds like a workaround. Could you address the issue with a code fix?

Thank you,
Raluca