Page MenuHomePhabricator

special characters in wgDBname lead to "could not create directory" error during file uploads
Closed, DuplicatePublic

Description

to reproduce: get a fresh installation of mw, name the database with a dot in the name eg. "foo.bar" (I've tried sqlite only but shouldn't matter), uploading a file will yield Could not create directory "mwstore://local-backend/local-public/<path>".

I think this misleading error is due to the fact that inside resolveStoragePath by default the container name gets expanded (var fullContainerName) via wfWikiID (i.e. dbname + dbprefix) and that in turn fails to get validated by isValidContainerName.

Event Timeline

fgiunchedi raised the priority of this task from to Needs Triage.
fgiunchedi updated the task description. (Show Details)
fgiunchedi added a subscriber: fgiunchedi.
Restricted Application added a project: Multimedia. · View Herald TranscriptJan 19 2015, 9:18 PM
Restricted Application added a subscriber: Aklapper. · View Herald Transcript