Modify

Opened 7 years ago

Closed 7 years ago

#2506 closed defect (fixed)

Download Plugin doens't work under Win2k

Reported by: anonymous Owned by: Blackhex
Priority: high Component: DownloadsPlugin
Severity: normal Keywords:
Cc: Trac Release: 0.11

Description

I have create the folder: "E:\PROJECTS\trac\MyProj\downloads\"

I set the trac.ini file as follow: [downloads] ext = zip gz bz2 rar path = E:\PROJECTS\trac\MyProj\downloads\ title = Downloads unique_filename = false visible_fields = id file description size time count author tags component version architecture platform type

Then i execute the trac-admin upgrade as required.

then when i try to updload a file an error message appear. It ask me if the folder specified in "path" is existing. This is the log: .. 10.12.00 Trac[api] DEBUG: ext: zip 10.12.00 Trac[api] DEBUG: filepath: EPROJECTS/trac/MyProj/downloads/1/addcommentmacro.zip 10.12.00 Trac[api] DEBUG: path: EPROJECTS/trac/MyProj/downloads/1 10.12.00 Trac[api] DEBUG: [Error 2] Impossibile trovare il percorso specificato: u'EPROJECTS/trac/SaveEnergy/downloads/1' 10.12.00 Trac[api] DEBUG: DELETE FROM download WHERE id = 1 10.12.00 Trac[chrome] DEBUG: Prepare chrome data for request 10.12.00 Trac[main] WARNING: 500 Trac Error (Error storing file addcommentmacro.zip! Is directory specified in path config option in [downloads] section of trac.ini existing?)

I see that the the path where the plugin is searching is EPROJECTS/trac/MyProj/downloads/1, instead of E:/PROJECTS/trac/MyProj/downloads/1

Do I have set something wrong?

Attachments (0)

Change History (6)

comment:1 Changed 7 years ago by w.frasson@…

I fotgot my email.

comment:2 Changed 7 years ago by Blackhex

  • Status changed from new to assigned

I'm not sure how should Python on Windows handle paths, but I barely remember that EPROJECTS/trac/MyProj/downloads/1 should be correct. I'll consult it with manual. What does "Impossibile trovare il percorso specificato" mean in english?

comment:3 Changed 7 years ago by anonymous

The sentence : "Impossibile trovare il percorso specificato" means: "Unable to find the specified path". Sorry i forgot to translate the sentence.

comment:4 Changed 7 years ago by Blackhex

Try it please with r3166 and try also to upload file with local characters in filename. According to your report it's 0.11 branch, I'll port changes to 0.10 if they appear to be working.

comment:5 Changed 7 years ago by anonymous

Ok! Now it seem to work also under win2K.

comment:6 Changed 7 years ago by Blackhex

  • Resolution set to fixed
  • Status changed from assigned to closed

Changes ported to 0.10 branch -> closing.

Add Comment

Modify Ticket

Action
as closed The owner will remain Blackhex.
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.