Skip to Content Skip to Menu

CB Gallery glitch when pasting from OneNote

  • micheleq
  • micheleq
  • ONLINE
  • Posts: 149
  • Thanks: 22
  • Karma: 6
1 day 13 hours ago #344268 by micheleq
Hello,
I'm having very weird behavior when adding a picture to the gallery. 
I add a picture by using the "Share Media" button and then copy text from OneNote and paste it in the title or description of the picture and a new png is created of the text adding it as another image.
Furthermore, after deleting the png created from the pasted "text", that png image is replicated (automatically, by its self) many times. 
The gallery then looks like this:
 
This only seems to happens when pasting from OneNote, I tested MS Word and several text programs, and they were OK. Only OneNote created the issue. 
Thanks,
Tomás
 

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 50586
  • Thanks: 8663
  • Karma: 1473
1 day 5 hours ago #344269 by krileon
Replied by krileon on topic CB Gallery glitch when pasting from OneNote
Nothing I can do about that. That's how OneNote seams to be copying to the clipboard. It's copying an image for whatever reason. The paste logic in CB Gallery cannot process text at all. This seams to be an issue with OneNote for a very long time.

learn.microsoft.com/en-us/answers/questions/5134317/copy-pasting-from-onenote-to-web-pastes-as-image

You'll need to do a raw paste with Ctrl + Shift + V to get around it. Alternatively paste into notepad then copy from there.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.
The following user(s) said Thank You: micheleq

Please Log in or Create an account to join the conversation.

  • micheleq
  • micheleq
  • ONLINE
  • Posts: 149
  • Thanks: 22
  • Karma: 6
22 hours 37 minutes ago #344276 by micheleq
Replied by micheleq on topic CB Gallery glitch when pasting from OneNote
Hi Kyle,
Thanks for the quick reply. 
What I'm concerned is the replication of the text/image. The fact that it makes an image out of the text, maybe something unwanted or not isn't that concerning. 
The problem for me is that it creates the image 20+ times. In the Gallery media I see one published version of the text/image and 20+ versions automatically unpublished. 

 

These are the steps that I took:
  1. Went to My CB Profile and in the Gallery Tab clicked on the button "Share Media"
  2. In the dialog box I dragged and dropped an image
  3. The image is quickly processed and in the resulting window, there are 2 text fields to enter a title and description
  4. Open OneNote and copy text from there (Ctrl + c)
  5. Come back to the image upload and in the title or description field paste the text from OneNote with Ctrl + v
  6. Close the window from the top right "x" without clicking save or anything else. 
  7. Through the admin back end go to CB > Plugins > Gallery > media
The result is the screengrab above. 

Like you mentioned, I tested and if I paste with Ctrl + Shift + v this does not happen, even from OneNote. 

A user brought this to my attention, because in his confusion as to why these images were popping, he kept doing it and it generated several hundred images on the server.

Aside from the space and security implications, the CB Gallery module was displaying these "text" images (even if unpublished), disrupting the intention of the module that is to display a collage of member's pictures. 

The members on my site are quite decent and I doubt they would exploit this, but still the auto-replication of images is concerning to me. 
Thank you,
Tomás

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 50586
  • Thanks: 8663
  • Karma: 1473
20 hours 17 minutes ago #344277 by krileon
Replied by krileon on topic CB Gallery glitch when pasting from OneNote
It creates 20+ images from pasting once? There really isn't anything I can do about someone pasting multiple times, but it shouldn't do multiple uploads from a single paste. They're just uploading multiple times. No real different than someone uploading 100 photos from a directory. I recommend setting upload limits if you want to prevent them uploading too much. Upublished media should only be visible to you as a CB Moderator. Nobody else should see them.

Strangle it seams like a bunch of comment uploads. It's possible there's something bugged in CB Activity picking up global image paste and uploading to every comment stream rendered. Have added a note to investigate that.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in or Create an account to join the conversation.

  • micheleq
  • micheleq
  • ONLINE
  • Posts: 149
  • Thanks: 22
  • Karma: 6
18 hours 47 minutes ago #344279 by micheleq
Replied by micheleq on topic CB Gallery glitch when pasting from OneNote

It creates 20+ images from pasting once? 
Yes.
The screengrab I posted was from the test I did, which was just pasting once. You can also see in the timestamps that every image has the EXACT timestamp. Also the asset value in most cases is "comment.0" 

That's my concern, pasting once creates 20+ images. 
Tomás

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 50586
  • Thanks: 8663
  • Karma: 1473
5 hours 33 minutes ago #344280 by krileon
Replied by krileon on topic CB Gallery glitch when pasting from OneNote
Ok, that looks like a bug in the paste behavior when an activity stream is present as the comment streams media sharing is picking up the paste. Have made a note to look into this further. Currently have a more pressing PayPal bug fix to deal with so I might not have that fixed this week, but it's next on my list.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum