Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
File repo - upload your contributions!
02-10-2009, 02:13 PM,
#11
Re: File repo - upload your contributions!
There is a MediStation.zip on server... Maybe the upload process was interrupted the first time you tried and it never found its way into SQL?

Anyways, I've now archived the old upload, it should work now. (In future cases renaming the file should also work.)

As for -

Quote:When i try to update a file to a new revision i get the message that i have no rights to do so, even if i'm the author.

Which file, in what category? I'll have a look.
Reply
02-10-2009, 07:04 PM,
#12
Re: File repo - upload your contributions!
Update doesn't work with any file i created.
I tried props/misc/BarrelwValve, props/misc/AlarmLight and props/infrastructure/PowerTransformer1.
Neither the original, nor a new filename will work.

Seems i can only upload files that don't exist yet.
Can you have a look i files named generator_2.zip or alarmlight_v2.zip exist?
Maybe they got uploaded but don't show up in the frontend.
Reply
02-10-2009, 07:48 PM,
#13
Re: File repo - upload your contributions!
Neither of them appears to be on the server.
Reply
02-10-2009, 07:57 PM,
#14
Re: File repo - upload your contributions!
I read through a relevant chunk of code and the file revision logic appears to be good.

Perhaps there's something else going on here. Are you sure you were consistently logged in when you tried to revise the files? And did the script not output any error messages?

I see both of the files you tried to revise on server. I've coded the file revision functionality in such a way that if the script fails to remove the old file, it won't touch SQL at all and so nothing is changed. In this case, however, it should be obvious to the user that the script has failed. If the process was successful to your eyes, I'm going to need a bit more to go on in order to debug.
Reply
02-10-2009, 08:58 PM,
#15
Re: File repo - upload your contributions!
it's strange,

i'm logged in properly and he is transfering the file as i can see the traffic in my network monitor software, but when it's finished i get
"You are not authorized to update this file."
I tried it with 2 different browers (firefox and iexplore)
I'll send the files from my office computer tomorrow to see if there's a problem with my pc.
Reply
02-10-2009, 09:03 PM,
#16
Re: File repo - upload your contributions!
I'll also have a further look tomorrow and do some testing.
Reply
02-14-2009, 12:08 PM,
#17
Re: File repo - upload your contributions!
There was indeed a bug in the repo which prevented files from being added. It has now been resolved. Would you try revising files again?
Reply
02-14-2009, 04:46 PM,
#18
Re: File repo - upload your contributions!
still no good.
Updating fails with a "no authorized" error.
I can upload new files if the filename doesn't exist in the repo, but not all existing files show up in the interface.
mediStation.zip for example seems to be in the database as the upload fails but i see no entry for it.
Reply
02-14-2009, 06:16 PM,
#19
Re: File repo - upload your contributions!
The files that exist on server but aren't in the database are those that failed due to the bug. If you rename those files and try again, they should upload okay, and also show up in the interface. (I can delete the bugged files if you'll gather a full list, but this isn't actually necessary.)

As for the authorization.. damn. I'll see if I can replicate that one.
Reply
02-14-2009, 06:40 PM,
#20
Re: File repo - upload your contributions!
Geez, I instantly replicated it. The problem was I hadn't tested the revise functionality on user-level privileges and it was bugged too (in two places!). You should've told me earlier the repo was this broken, lol.

It seems to work for me now, can you confirm?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)