Michal Ludvig
January 20, 2011 8:56 PM


The line 2 column 258083 refers to the XML received from Amazon. If you
run your s3cmd command with --debug you'll see it.

With --debug I see this XML on standard out. Are you saying that I can just redirect this output to a file and examine this output in an XML parser/editor? Is there some sort of built in capability to assist with this? Doing this the last XML outputted to stdout doesn't appear to have any unusual characters or have anything that appears unusual:

<ID>f382298166b851aed8fedc00a8bdbc98525ef2f73a94a7d9997ec8c531eb6826</ID><DisplayName>besson3c</DisplayName></Owner><StorageClass>STANDARD</StorageClass></Contents><Contents><Key>phrygiandata/homedirs/canadianbrass/newsletter/nm_webkitcopy</Key><LastModified>2009-12-14T08:04:42.000Z</LastModified><ETag>&quot;d66759af42f282e1ba19144df2d405d0&quot;</ETag><Size>38</Size><Owner><ID>f382298166b851aed8fedc00a8bdbc98525ef2f73a94a7d9997ec8c531eb6826</ID><DisplayName>besson3c</DisplayName></Owner><StorageClass>STANDARD</StorageClass></Contents></ListBucketResult>'}



Michal

------------------------------------------------------------------------------
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires
February 28th, so secure your free ArcSight Logger TODAY!
http://p.sf.net/sfu/arcsight-sfd2d
_______________________________________________
S3tools-general mailing list
S3tools-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/s3tools-general


Joe Auty
January 20, 2011 8:36 PM

Michal Ludvig
January 20, 2011 7:08 PM

I guess the ^H character was put there by an older version of s3cmd.

s3cmd 1.0 should sanitise the filenames before upload.

On the other hand having a backspace in the filename is not a very good
idea anyway, you may just want to rename it locally.

Hmmm... well, the sanitizing part doesn't seem to be working, at least not for me. I've run fixbucket on the last directory outputted to the screen and it said it fixed some characters, and I've tried deleting this directory/object from my bucket so that it would upload a new copy, and but I'm still getting:

WARNING: 1 non-printable characters replaced in: homedirs/canadianbrass/oldsite/nm_webkitold/mediaplayer/^Hmediaplayer.swf
WARNING: 1 non-printable characters replaced in: homedirs/canadianbrass/oldsite/nm_webkitold/mediaplayer/._^Hmediaplayer.swf
WARNING: 1 non-printable characters replaced in: homedirs/canadianbrass/oldsite/nm_webkitold/mediaplayer/._^Hmediaplayer.fla
WARNING: 1 non-printable characters replaced in: homedirs/canadianbrass/oldsite/nm_webkitold/mediaplayer/^Hmediaplayer.fla
ERROR: reference to invalid character number: line 2, column 258083
ERROR: Parameter problem: Bucket contains invalid filenames. Please run: s3cmd fixbucket s3://your-bucket/

I'll try deleting these files from the source directory and attempt another sync, but it would be great for the sanitize to work because I have absolutely no clue where those backspace characters came from. Is there a way to see what is in line 2, column 258083 of what I'm assuming is some sort of s3cmd tmp file?




--
Joe Auty, NetMusician
NetMusician helps musicians, bands and artists create beautiful, professional, custom designed, career-essential websites that are easy to maintain and to integrate with popular social networks.
www.netmusician.org
j...@netmusician.org

------------------------------------------------------------------------------
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires 
February 28th, so secure your free ArcSight Logger TODAY! 
http://p.sf.net/sfu/arcsight-sfd2d
_______________________________________________
S3tools-general mailing list
S3tools-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/s3tools-general

Reply via email to