[xwiki-users] Unable to upload jpg into Blog
Hi there, just now I tried to upload an image into my blog: It's a jpg-image having 132KB of size. It shows up when editing the blog, however, when previewing or after saving, it only shows a "broken picture" Am I missing something here? XWiki is 2.2.2, running on a MySQL 5 TIA Gregor -- just because you're paranoid, don't mean they're not after you... gpgp-fp: 79A84FA526807026795E4209D3B3FE028B3170B2 gpgp-key available @ http://pgpkeys.pca.dfn.de:11371 @ http://pgp.mit.edu:11371/ skype:rc46fi
On 03/23/2010 01:22 PM, 2smart4u wrote:
Hi there,
just now I tried to upload an image into my blog: It's a jpg-image having 132KB of size.
It shows up when editing the blog, however, when previewing or after saving, it only shows a "broken picture"
Am I missing something here?
XWiki is 2.2.2, running on a MySQL 5
This is a Chrome bug, see http://jira.xwiki.org/jira/browse/XWIKI-4501 To check that this is indeed the bug: - try to reproduce it in Firefox - try to restart the browser and look at the image -- Sergiu Dumitriu http://purl.org/net/sergiu/
On Tue, Mar 23, 2010 at 1:54 PM, Sergiu Dumitriu <sergiu@xwiki.com> wrote:
This is a Chrome bug, see http://jira.xwiki.org/jira/browse/XWIKI-4501
Sorry, I strongly have to disagree: Same behaviour in Firefox 3.6.2, same behaviour in IE 6 FYI: In the upload-dialog, I left everything blank except for the horizontal / vertical alignments, which I set to centre/middle Rgds Gregor -- just because you're paranoid, don't mean they're not after you... gpgp-fp: 79A84FA526807026795E4209D3B3FE028B3170B2 gpgp-key available @ http://pgpkeys.pca.dfn.de:11371 @ http://pgp.mit.edu:11371/ skype:rc46fi
On 03/23/2010 02:28 PM, 2smart4u wrote:
On Tue, Mar 23, 2010 at 1:54 PM, Sergiu Dumitriu<sergiu@xwiki.com> wrote:
This is a Chrome bug, see http://jira.xwiki.org/jira/browse/XWIKI-4501
Sorry, I strongly have to disagree:
Same behaviour in Firefox 3.6.2, same behaviour in IE 6
OK, I said that you should check first. I tried this locally, both in a non-blog document and in a blog document, and it worked fine. Does it only affect one specific image, or all images? Does it affect only blog posts, or all documents? Does the image appear in the attachments tab?
FYI:
In the upload-dialog, I left everything blank except for the horizontal / vertical alignments, which I set to centre/middle
-- Sergiu Dumitriu http://purl.org/net/sergiu/
Some more investigation: Within my list of recent changes, the picture-attachment is listed. Clicking on that link, the picture gets loaded. However, when I view the Blog and right-click on the picture, then "open in new tab" (chrome), it says "Error - this temmplate does not exists". May it be a problem that said URL contains spaces? Here's the original URL that's causing the error-message: http://MyServer/xwiki/bin/download/Blog/Professional%20IT%20/%20My%20Company... Rgds Gregor -- just because you're paranoid, don't mean they're not after you... gpgp-fp: 79A84FA526807026795E4209D3B3FE028B3170B2 gpgp-key available @ http://pgpkeys.pca.dfn.de:11371 @ http://pgp.mit.edu:11371/ skype:rc46fi
On 03/23/2010 02:50 PM, 2smart4u wrote:
Some more investigation:
Within my list of recent changes, the picture-attachment is listed. Clicking on that link, the picture gets loaded. However, when I view the Blog and right-click on the picture, then "open in new tab" (chrome), it says "Error - this temmplate does not exists".
May it be a problem that said URL contains spaces?
Here's the original URL that's causing the error-message:
http://MyServer/xwiki/bin/download/Blog/Professional%20IT%20/%20My%20Company...
Compare this with the URL that you get when correctly viewing the image. I think that @ is to blame, since it's not allowed in an attachment name yet, although the WYSIWYG upload does not remove it. I'd say probably a WYSIWYG bug, please open an issue on Jira. -- Sergiu Dumitriu http://purl.org/net/sergiu/
Hi Sergiu, Gregor, On 03/23/2010 03:55 PM, Sergiu Dumitriu wrote:
On 03/23/2010 02:50 PM, 2smart4u wrote:
Some more investigation:
Within my list of recent changes, the picture-attachment is listed. Clicking on that link, the picture gets loaded. However, when I view the Blog and right-click on the picture, then "open in new tab" (chrome), it says "Error - this temmplate does not exists".
May it be a problem that said URL contains spaces?
Here's the original URL that's causing the error-message:
http://MyServer/xwiki/bin/download/Blog/Professional%20IT%20/%20My%20Company...
Compare this with the URL that you get when correctly viewing the image. I think that @ is to blame, since it's not allowed in an attachment name yet, although the WYSIWYG upload does not remove it. I'd say probably a WYSIWYG bug, please open an issue on Jira.
Sergiu, Wysiwyg does remove all special chars in the name of uploaded files: spaces, @s, etc, it goes through the same code as regular upload file (I wrote that and now I re-tested it on 2.2.2 and 2.3 snap to make sure nothing has changed). Which makes me wonder, how exactly did that attachment name ended up in the wiki? (and also which is actually the name of the attachment) Gregor, can you open the attachments tab (at the bottom) of the blogpost document and tell us which is the name of the image listed there? Also, what is the name of the file _on disk_ that you are attaching? Can you try to repeat that for a new blog post and tell us if it happens again? Thanks, Anca
Hi folks, sorry for the belated reply, was in a meeting. Well, what I did now is, that I renamed the blog-entry (More actions -> rename) and changed the "@" to "at" - and, surprise, surprise, it's working now. Is that info sufficient for you guys? Rgds Gregor -- just because you're paranoid, don't mean they're not after you... gpgp-fp: 79A84FA526807026795E4209D3B3FE028B3170B2 gpgp-key available @ http://pgpkeys.pca.dfn.de:11371 @ http://pgp.mit.edu:11371/ skype:rc46fi
On 03/23/2010 05:01 PM, 2smart4u wrote:
Hi folks,
sorry for the belated reply, was in a meeting.
Well, what I did now is, that I renamed the blog-entry (More actions -> rename) and changed the "@" to "at" - and, surprise, surprise, it's working now.
So, the blog post document had an @ in its name? Well, @ is used to separate the attachment name inside the URL, as in: [[image:Space.Document@photo.png]] If the document name contains an @, then this becomes: [[image:Space.Docum@nt@photo.png]] and this translates into the attachment "nt@photo.png" attached to the document "Space.Docum". Vincent, what's the status on escaping inside URLs?
Is that info sufficient for you guys?
-- Sergiu Dumitriu http://purl.org/net/sergiu/
On Mar 23, 2010, at 5:23 PM, Sergiu Dumitriu wrote:
On 03/23/2010 05:01 PM, 2smart4u wrote:
Hi folks,
sorry for the belated reply, was in a meeting.
Well, what I did now is, that I renamed the blog-entry (More actions -> rename) and changed the "@" to "at" - and, surprise, surprise, it's working now.
So, the blog post document had an @ in its name? Well, @ is used to separate the attachment name inside the URL, as in:
[[image:Space.Document@photo.png]]
If the document name contains an @, then this becomes:
[[image:Space.Docum@nt@photo.png]]
and this translates into the attachment "nt@photo.png" attached to the document "Space.Docum".
Vincent, what's the status on escaping inside URLs?
Not started yet. Thanks -Vincent
Is that info sufficient for you guys?
participants (4)
-
2smart4u -
Anca Luca -
Sergiu Dumitriu -
Vincent Massol