|
View:
New views
1 Messages
—
Rating Filter:
Alert me
|
|
|
[ exist-Bugs-1963345 ] Table corruption on replace; correlates with root attributesBugs item #1963345, was opened at 2008-05-13 20:18
Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=117691&aid=1963345&group_id=17691 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: ggdinger (ggdinger) Assigned to: Nobody/Anonymous (nobody) Summary: Table corruption on replace; correlates with root attributes Initial Comment: Version: 1.2.0-rev7233 When attempting to operate a 'replace' on a child element of root, the table becomes corrupted. The corruption correlates with the number of attributes defined on the root. In the example table included below, the root element 'user' has three attributes. If you count the child-elements up from the bottom, the third element on that count (in this case, element <four>) is the one that will consistently fail to 'replace'. This failure pattern is 100% reproducible; I can change the number of attributes on the root element and move the failure point accordingly (e.g. including four attributes will cause element <three> to fail, five attributes will fail <two>, etc). Interestingly, by supplying more attributes than child-elements, the 'replace' defect appears to be avoided. Original table: =============== <userList xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="user.xsd"> <user a1="a1" a2="a2" userID="admin"> <one> <oneAtt>1</oneAtt> </one> <two> <twoAtt>2</twoAtt> </two> <three> <threeAtt>3</threeAtt> </three> <four> <fourAtt>4</fourAtt> </four> <five> <fiveAtt>5</fiveAtt> </five> <six/> </user> </userList> Input via client tool: ====================== All 'replace' operations on elements <one>,<two>,<three>,<five>, and <six> function without issue. However, the following 'replace' on element <four>: ... update replace //user[@userID='admin']/four with <four> <fourAtt>444</fourAtt> </four> Resulting Table: ================ ...results in the following corrupted table: ... <userList xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="user.xsd"> <user> <four> <fourAtt>4</fourAtt> </four>a1a2admin<one> <oneAtt>1</oneAtt> </one> <two> <twoAtt>2</twoAtt> </two> <three> <threeAtt>3</threeAtt> </three> <five> <fiveAtt>5</fiveAtt> </five> <six/> </user> </userList> If the number of root element attributes is increased from three to four, the 'replace' operation will then function correctly for all child elements except <three>: Original Table: ============== <userList xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="user.xsd"> <user a1="a1" a2="a2" a3="a3" userID="admin"> <one> <oneAtt>1</oneAtt> </one> <two> <twoAtt>2</twoAtt> </two> <three> <threeAtt>3</threeAtt> </three> <four> <fourAtt>4</fourAtt> </four> <five> <fiveAtt>5</fiveAtt> </five> <six/> </user> </userList> Input via client tool: ====================== update replace //user[@userID='admin']/three with <three> <threeAtt>333</threeAtt> </three> Resulting Table: ================ <userList xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="user.xsd"> <user> <three> <threeAtt>3</threeAtt> </three>a1a2a3admin<one> <oneAtt>1</oneAtt> </one> <two> <twoAtt>2</twoAtt> </two> <four> <fourAtt>4</fourAtt> </four> <five> <fiveAtt>5</fiveAtt> </five> <six/> </user> </userList> ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=117691&aid=1963345&group_id=17691 ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Exist-open mailing list Exist-open@... https://lists.sourceforge.net/lists/listinfo/exist-open |
| Free Forum Powered by Nabble | Forum Help |