|
View:
New views
15 Messages
—
Rating Filter:
Alert me
|
|
|
can't delete collection with long nameI accidentally created a collection whose name is formed from a
paragraph of text, so it includes newlines and an ampersand (&), for example. Now I can no longer delete it! I tried both the webapp admin and the java client. Is there anything else I can try short of deleting the enclosing collection (it includes all my content)? -Mike ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Exist-open mailing list Exist-open@... https://lists.sourceforge.net/lists/listinfo/exist-open |
|
|
Re: can't delete collection with long name> I accidentally created a collection whose name is formed from a
> paragraph of text, so it includes newlines and an ampersand (&), for > example. Now I can no longer delete it! I tried both the webapp admin > and the java client. Is there anything else I can try short of deleting > the enclosing collection (it includes all my content)? It should work if you URL-encode the document name. Maybe try to delete it from an XQuery. Wolfgang ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Exist-open mailing list Exist-open@... https://lists.sourceforge.net/lists/listinfo/exist-open |
|
|
Re: can't delete collection with long nameHmm - well somehow I was able to rename it. But in addition I seem to have
some kind of corruption now, probably unrelated to the naming issue. I think the service was shutdown abruptly; not sure what the cause was, but now the situation is that any attempt to access the contents of the collection /db/foo result in an error like one of the following: (bin/client.sh -s) exist:/db>cd foo Failed to invoke method getPermissions in class org.exist.xmlrpc.RpcConnection: document or collection /db/foo/bazf not found org.xmldb.api.base.XMLDBException: Failed to invoke method getPermissions in class org.exist.xmlrpc.RpcConnection: document or collection /db/foo/bazf not found at org.exist.xmldb.RemoteUserManagementService.getPermissions(RemoteUserManagem entService.java:274) at org.exist.client.InteractiveClient.getResources(InteractiveClient.java:338) at org.exist.client.InteractiveClient.process(InteractiveClient.java:504) at org.exist.client.InteractiveClient.readlineInputLoop(InteractiveClient.java: 2563) at org.exist.client.InteractiveClient.run(InteractiveClient.java:2469) at org.exist.client.InteractiveClient.main(InteractiveClient.java:261) 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.exist.start.Main.invokeMain(Main.java:128) at org.exist.start.Main.run(Main.java:407) at org.exist.start.Main.main(Main.java:59) In the server log: And yet: exist:/db>rmcol foo removing collection foo ...done. but the collection is still there. ?? > -----Original Message----- > From: Wolfgang Meier [mailto:wolfgangmm@...] > Sent: Tuesday, October 27, 2009 6:08 PM > To: Mike Sokolov > Cc: exist-open@... > Subject: Re: [Exist-open] can't delete collection with long name > > > I accidentally created a collection whose name is formed from a > > paragraph of text, so it includes newlines and an ampersand > (&), for > > example. Now I can no longer delete it! I tried both the webapp > > admin and the java client. Is there anything else I can > try short of > > deleting the enclosing collection (it includes all my content)? > > It should work if you URL-encode the document name. Maybe try > to delete it from an XQuery. > > Wolfgang > ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Exist-open mailing list Exist-open@... https://lists.sourceforge.net/lists/listinfo/exist-open |
|
|
|
|
|
Re: can't delete collection with long name> java.lang.NullPointerException
> at > org.exist.storage.NativeBroker.canRemoveCollection(NativeBroker.java:943) It indeed looks like the collection metadata is damaged. We should maybe add some unit tests with really long collection names. I admit I never was in that situation. > at any rate I think my approach now is probably to try and export everything > *else*, flush the system and start over? I'm not sure exactly how best to > do that: is there a utility for export/import? Do you think backup is > likely to work in this state? Is it dangerous to try? A standard backup may not work if reading the collection hierarchy fails. Please try the "emergency export" tool: http://www.exist-db.org/backup.html#N1031B It has the ability to work around most issues in the db. Wolfgang ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Exist-open mailing list Exist-open@... https://lists.sourceforge.net/lists/listinfo/exist-open |
|
|
Re: can't delete collection with long nameOn Wed, 2009-10-28 at 13:33 +0100, Wolfgang wrote:
> > java.lang.NullPointerException > > at > > org.exist.storage.NativeBroker.canRemoveCollection(NativeBroker.java:943) > > It indeed looks like the collection metadata is damaged. We should maybe > add some unit tests with really long collection names. I admit I never > was in that situation. How long was your collection name? -- Cheers, Dmitriy Shabanov ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Exist-open mailing list Exist-open@... https://lists.sourceforge.net/lists/listinfo/exist-open |
|
|
Re: can't delete collection with long name
I don't really know since I can't access it any more, but it was
derived from the full text of a (small) document: I would say somewhere
around 2K?
-Mike Dmitriy Shabanov wrote: On Wed, 2009-10-28 at 13:33 +0100, Wolfgang wrote: ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Exist-open mailing list Exist-open@... https://lists.sourceforge.net/lists/listinfo/exist-open |
|
|
Re: can't delete collection with long nameOn Wed, 2009-10-28 at 09:02 -0400, Mike Sokolov wrote:
> I don't really know since I can't access it any more, but it was > derived from the full text of a (small) document: I would say > somewhere around 2K? Wolfgang, can we limit collection's name size to 256 letters or something? I don't think that collection name should be 200Mb or around. Mike, why did you choose that structure? -- Cheers, Dmitriy Shabanov > Dmitriy Shabanov wrote: > > On Wed, 2009-10-28 at 13:33 +0100, Wolfgang wrote: > > > > > > java.lang.NullPointerException > > > > at > > > > org.exist.storage.NativeBroker.canRemoveCollection(NativeBroker.java:943) > > > > > > > It indeed looks like the collection metadata is damaged. We should maybe > > > add some unit tests with really long collection names. I admit I never > > > was in that situation. > > > > > > > How long was your collection name? > > > > ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Exist-open mailing list Exist-open@... https://lists.sourceforge.net/lists/listinfo/exist-open |
|
|
Re: can't delete collection with long name
As I said in my original post, it was purely an accident. I think your
proposal to limit the length is very reasonable. You might
additionally want to ensure that collection names don't include non-URI
characters (eg backslash, white space, etc.), although this could be a
backwards-incompatibility, I don't know.
-Mike Dmitriy Shabanov wrote: On Wed, 2009-10-28 at 09:02 -0400, Mike Sokolov wrote: ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Exist-open mailing list Exist-open@... https://lists.sourceforge.net/lists/listinfo/exist-open |
|
|
Re: can't delete collection with long nameOn Wed, 2009-10-28 at 09:15 -0400, Mike Sokolov wrote:
> As I said in my original post, it was purely an accident. I think > your proposal to limit the length is very reasonable. You might > additionally want to ensure that collection names don't include > non-URI characters (eg backslash, white space, etc.), although this > could be a backwards-incompatibility, I don't know. > > -Mike > > Dmitriy Shabanov wrote: > > On Wed, 2009-10-28 at 09:02 -0400, Mike Sokolov wrote: > > > > > I don't really know since I can't access it any more, but it was > > > derived from the full text of a (small) document: I would say > > > somewhere around 2K? > > > > > > > Wolfgang, can we limit collection's name size to 256 letters or > > something? I don't think that collection name should be 200Mb or around. Same rule can be apply to document names. -- Cheers, Dmitriy Shabanov ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Exist-open mailing list Exist-open@... https://lists.sourceforge.net/lists/listinfo/exist-open |
|
|
Re: can't delete collection with long name> Wolfgang, can we limit collection's name size to 256 letters or
> something? I don't think that collection name should be 200Mb or around. Yes, I agree it should be limited. I'm not sure what happens if the length of the collection name exceeds 4k (or one page in the index). A limitation to 256 or 512 letters would be wise. Wolfgang ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Exist-open mailing list Exist-open@... https://lists.sourceforge.net/lists/listinfo/exist-open |
|
|
Re: can't delete collection with long nameMaybe this should be made a configurable value with a hard upper
limit. The configurable value should also have a comment on the potential problems with very long names. On Oct 28, 2009, at 10:07 AM, Wolfgang wrote: >> Wolfgang, can we limit collection's name size to 256 letters or >> something? I don't think that collection name should be 200Mb or >> around. > > Yes, I agree it should be limited. I'm not sure what happens if the > length of the collection name exceeds 4k (or one page in the index). A > limitation to 256 or 512 letters would be wise. > > Wolfgang ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Exist-open mailing list Exist-open@... https://lists.sourceforge.net/lists/listinfo/exist-open |
|
|
Re: can't delete collection with long nameMay be useful.
I'm delete corrupted collections (or collection with corrupted docs) so: Fist create a temp collection, for example /db/1. Then move hear a collection I want to remove and remove collection /db/1. In the finish useful to make backup/restore. ----------- Evgeny ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Exist-open mailing list Exist-open@... https://lists.sourceforge.net/lists/listinfo/exist-open |
|
|
Re: can't delete collection with long nameThe error deleting a long-named collection is ultimately caused by:
java.io.IOException: Cannot make collection filesystem directory: /proj/exist/eXist/webapp/WEB-INF/data/fs.journal/txn.143317/db/foo/%0AV&A%20Collection%0AT.29A-1958%0A2006AF5794%0A2006AF5796%0A2006AF5795%0AO88320%0AUnknown%0ABlouse%0AWDD01,%20bloom,%20blouse,%20costume,%20cream,%20cuff,%20cutwork,%20embroidery,%20flower,%20lace,%20linen,%20red,%20rose,%20silk,%20sleeve,%20traditional%0AWDD01,%20bloom,%20blouse,%20costume,%20cream,%20cuff,%20cutwork,%20embroidery,%20fleur-des-lys,%20flower,%20gathering,%20lace,%20linen,%20red,%20rose,%20silk,%20sleeve,%20traditional%0AWDD01,%20blouse,%20costume,%20cream,%20cutwork,%20embroidery,%20flower,%20gathering,%20lace,%20linen,%20pleat,%20silk,%20traditional%0AThe%20three%20panels%20that%20have%20been%20attached%20to%20the%20bodice%20between%20lines%20of%20pintucks%20are%20examples%20of%20machine%20embroidery.%20The%20Schiffli%20embroidery%20machines%20were%20developed%20by%20Isaac%20Groebli%20in%201865%20and%20could%20produce%20many%20varied%20effects,%20from%20simple%20eyelet%20embroidery%20to%20more%20complex%20patterns%20and%20structures%20such%20as%20these,%20which%20resemble%20certain%20types%20of%20lace.%20The%20subtleties%20of%20whitework%20are%20often%20overlooked,%20but%20when%20textures%20are%20skillfully%20combined,%20as%20they%20are%20here,%20so%20that%20light%20is%20alternately%20absorbed%20and%20reflected,%20it%20is%20the%20epitome%20of%20elegance.%20In%20contrast,%20brightly%20coloured,%20solid,%20shiny%20embroidery%20almost%20entirely%20covers%20the%20straight%20sleeves%20on%20this%20blouse.%20There%20is%20no%20finesse%20in%20the%20design,%20no%20great%20skill%20demonstrated%20by%20the%20embroiderer%20but%20there%20is%20obvious%20delight%20in%20the%20abundance%20of%20colour%20and%20in%20the%20scale%20and%20profusion%20of%20the%20blossoms.%20The%20silk%20is%20barely%20twisted,%20its%20fibres%20lying%20almost%20parallel,%20and%20so%20it%20forms%20a%20very%20reflective%20surface.%20Yellow%20silk%20has%20been%20used%20to%20attach%20the%20sleeve%20to%20its%20separate%20cuff%20and%20yellow%20is%20picked%20up%20again%20as%20a%20highlight%20in%20the%20deep%20border%20of%20machine%20embroidery%20that%20forms%20the%20final%20section.%0A%0A01 at org.exist.storage.NativeBroker.getCollectionFile(NativeBroker.java:1633) at org.exist.storage.NativeBroker.removeCollection(NativeBroker.java:983) at org.exist.storage.NativeBroker.removeCollection(NativeBroker.java:1007) at org.exist.xmlrpc.RpcConnection.removeCollection(RpcConnection.java:2658) at org.exist.xmlrpc.RpcConnection.removeCollection(RpcConnection.java:2633) I guess maybe the length is the problem; the filesystem won't allow such long filenames. So it seems that the filesystem limits should be taken into account when choosing the proper limit for collection name length. It is however possible to rename the collection and then delete it. -Mike Wolfgang wrote: >> Wolfgang, can we limit collection's name size to 256 letters or >> something? I don't think that collection name should be 200Mb or around. > > Yes, I agree it should be limited. I'm not sure what happens if the > length of the collection name exceeds 4k (or one page in the index). A > limitation to 256 or 512 letters would be wise. > > Wolfgang ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Exist-open mailing list Exist-open@... https://lists.sourceforge.net/lists/listinfo/exist-open |
|
|
Re: can't delete collection with long nameIn the Java world, the max size of a class name seems to be
related to the JVM specs AND to the OS filename size to store them. In the following thread : http://www.velocityreviews.com/forums/t485415-maximum-length-for-a-java-class-name-.html It is proposed to put the limit to 65535 characters. Best, Serge From: "Mike Sokolov" <sokolov@...> > I guess maybe the length is the problem; the filesystem won't allow such > long filenames. So it seems that the filesystem limits should be taken > into account when choosing the proper limit for collection name length. ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Exist-open mailing list Exist-open@... https://lists.sourceforge.net/lists/listinfo/exist-open |
| Free embeddable forum powered by Nabble | Forum Help |