Account Options

  1. Sign in
The old Google Groups will be going away soon.
Switch to the new Google Groups.
Google Groups Home
« Groups Home
General upload failure (3)
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
toluju  
View profile  
 More options Jun 10 2008, 6:53 am
From: toluju <tobias.jun...@gmail.com>
Date: Tue, 10 Jun 2008 03:53:01 -0700 (PDT)
Local: Tues, Jun 10 2008 6:53 am
Subject: General upload failure (3)
Hi there!

Love the tool, it's been an invaluable asset in uploading several GB
worth of photos to flickr. I've run into some problems though - some
photos don't seem to upload properly, and the only way I've gotten
around that so far is to remove them from my upload queue and
uploading them manually. This is obviously somewhat less desirable. :)

What happens on a problem picture is that I get the status bar message
that the picture is uploading, and from my network activity it seems
that the picture is getting uploaded. Once the upload "completes",
however, DFO silently fails and goes back to waiting on the next sync.
The picture never shows up in my photo stream.

To investigate this I checked out the latest source code and ran from
the console, and I ended up with the same problem. This time I had
console output however:

General upload failure (3)
  at FlickrNet.Flickr.UploadPicture (System.IO.Stream stream,
System.String title, System.String description, System.String tags,
Int32 isPublic, Int32 isFamily, Int32 isFriend, ContentType
contentType, SafetyLevel safetyLevel, HiddenFromSearch
hiddenFromSearch) [0x00000]
  at FlickrNet.Flickr.UploadPicture (System.String filename,
System.String title, System.String description, System.String tags,
Boolean isPublic, Boolean isFamily, Boolean isFriend) [0x00000]
  at FlickrCommunicator.CheckPhotosToUpload () [0x00000]
  at FlickrCommunicator.RoutineCheck () [0x00000]

Any ideas how to fix this problem?

Cheers,
Toby
http://www.toluju.com


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
toluju  
View profile  
 More options Jun 10 2008, 7:26 am
From: toluju <tobias.jun...@gmail.com>
Date: Tue, 10 Jun 2008 04:26:25 -0700 (PDT)
Local: Tues, Jun 10 2008 7:26 am
Subject: Re: General upload failure (3)
Another small follow up:

I ran into another bug. This one I could fix myself though. The
problem is as follows:

I added my blog to flickr via the web interface. My blog title
contains an apostrophe. When DFO downloads the blog information on
sync, this apostrophe causes a SQL error:

near "s": syntax error
  at Mono.Data.SqliteClient.SqliteCommand.GetNextStatement (IntPtr
pzStart, System.IntPtr& pzTail, System.IntPtr& pStmt) [0x00000]
  at Mono.Data.SqliteClient.SqliteCommand.ExecuteReader
(CommandBehavior behavior, Boolean want_results, System.Int32&
rows_affected) [0x00000]
  at Mono.Data.SqliteClient.SqliteCommand.ExecuteNonQuery ()
[0x00000]
  at PersistentInformation.RunNonQuery (System.String query)
[0x00000]
  at PersistentInformation.InsertBlog (System.String blogid,
System.String blogtitle) [0x00000]
  at FlickrCommunicator.UpdateBlogs () [0x00000]
  at FlickrCommunicator.RoutineCheck () [0x00000]

I fixed this problem by sanitizing the blog title input before adding
it to the database. It's only a quick sanitation fix and by no means
complete:

In PersistentInformation.cs, line 1585:

public void InsertBlog(string blogid, string blogtitle) {
    lock (_bloglock) {
    RunNonQuery(String.Format(
        "insert into blog (blogid, blogtitle) values ('{0}','{1}');",
        blogid, blogtitle.Replace("'", "''")));
   }

}

Hope that helps. :)

Cheers,
Toby

On Jun 10, 5:53 am, toluju <tobias.jun...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
eichin@gmail.com  
View profile  
 More options Jun 17 2008, 3:40 am
From: "eic...@gmail.com" <eic...@gmail.com>
Date: Tue, 17 Jun 2008 00:40:59 -0700 (PDT)
Local: Tues, Jun 17 2008 3:40 am
Subject: Re: General upload failure (3)
Good catch - I just started playing with dfo, and filed debian bug
486304 on what is basically the same thing in
PersistentInformation.InsertPool; presumably all of those RunQuery's
need to be sanitized (or replaced with something that does real SQL
argument passing instead of String.Format?  Some googling suggests
constructing an SqliteParameter object for this case... (I'd pass on
more detail but this is the first time I've even *read* c-sharp code,
so I don't want to mangle anything in translation :-)

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »