Modify

Opened 16 years ago

Closed 16 years ago

#2506 closed defect (fixed)

Download Plugin doens't work under Win2k

Reported by: anonymous Owned by: Radek Bartoň
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 16 years ago by w.frasson@…

I fotgot my email.

comment:2 Changed 16 years ago by Radek Bartoň

Status: newassigned

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 16 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 16 years ago by Radek Bartoň

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 16 years ago by anonymous

Ok! Now it seem to work also under win2K.

comment:6 Changed 16 years ago by Radek Bartoň

Resolution: fixed
Status: assignedclosed

Changes ported to 0.10 branch -> closing.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Radek Bartoň.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


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

 
Note: See TracTickets for help on using tickets.