• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Knute Snortum
  • Bear Bibeault
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Frits Walraven
  • Carey Brown
  • Tim Holloway

Multi-Upload and deletion of one file

 
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A user of my forum (2.1.16) reported that he posted a message and uploaded 3 files, than deleted one of these three, and all three files disappear.

Can you confirm that this is fixed in release 2.1.17?
By the way, is 2.1.17 ready?

Thanks
Evgeny
[originally posted on jforum.net by Evgeny]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Let's test it here? ;)

I will upload the files 1, 2 and 3 in this message!
[originally posted on jforum.net by leandro_salvador]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Now I will add 1, 2 and 3!
So, I will delete 2 and post it!
[originally posted on jforum.net by leandro_salvador]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Now I will add 1, 2 and 3!
So, I will delete 3 and post it!
[originally posted on jforum.net by leandro_salvador]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Now I will add 1, 2 and 3!
So, I will delete 1 and post it!
[originally posted on jforum.net by leandro_salvador]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Now I will add 1, 2 and 3!
So, I will delete 1.
After, I will add 4.

Detail: The files 2 and 3 already disappeared from the list too! The expected should be only the file 1 disappearing.
And plus: the button [Add another file] is there, but unavailable!

Now I will post this message! I suppose that just the file 4 will be showed, but the desired should be: 2, 3 and 4, don't you agree?
[originally posted on jforum.net by leandro_salvador]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
None image appeared in the above message!!!

Now I will add 1, 2 and 3!
So, I will delete 2.
After, I will add 4.

OK, the list shows 1 and 4! Let's check it now... without bits ;)
[originally posted on jforum.net by leandro_salvador]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Just the image 1 appeared in the above message!!! :?

Now I will add 1, 2 and 3!
So, I will delete 3.
After, I will add 4.

The list shows 1, 2 and 4! Let's pray to JForum upload them all! :lol:
[originally posted on jforum.net by leandro_salvador]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well Guys!!!

I don't want to be seen as a f. spammer tester!!! :roll:
So, let's stop with the funny... 8)
If I could come back in the time, I had used smaller images, but it wasn't planned ok? Sorry...
Maybe the above tests be usefull...

My tremble is that JForum organize the file attachment engine using a data structure like pile (pt_BR: pilha), deleting the files from the last putted to the previous: FILO - First In Last Out.

But, when we delete one file from the middle or the beginning of the structure, the engine is deleting all the files putted last in the structure! It's exactly how it should be done in a pile data structure!

If the above premise will be right, so it could be corrected just changing the data structure from pile to ##### (I don't remember the name now, but when I remember, I promess to change the ##### ok? Certainly it wouldn't be FIFO - First In First Out - too.).

In this way, the engine could delete files from any place of the structure, not affecting the others files inserted there!

Another error must be than despite of the structure to have less files, the counter of files is not reduced! It could be the motive because the file 4 never was sent! :idea:

Anyway, I don't want let anybody curious... so, I finish this test topic celebrating you with the image from "Vanessa da Mata", a brazilian singer

Now I will add 4.

I'm 99.9% sure that it will be posted with this message :P

[ ]'s
[originally posted on jforum.net by leandro_salvador]
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!