https://bugzilla.wikimedia.org/show_bug.cgi?id=63989
Bug ID: 63989
Summary: 'Insert Media' in VE fails to search local repo,
returns blank.
Product: VisualEditor
Version: unspecified
Hardware: All
OS: Linux
Status: UNCONFIRMED
Severity: normal
Priority: Unprioritized
Component: Editing Tools
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected],
[email protected], [email protected],
[email protected]
Web browser: ---
Mobile Platform: ---
Running an up-to-date VisualEditor extension and parsoid server on
mediawiki-1.22.2, when I use 'Insert Media' no matter the search term (exact
filenames are no better) nothing is returned.
Checking server logs and debugging client browser data shows that VE only goes
as far as a call to the API
'api.php?format=json&action=query&meta=filerepoinfo' which returns:
{
query: {
repos: [
{
name: "local",
displayname: null,
rootUrl: "/images",
local: true
}
]
}
}
There are no further queries to the API after this call.
I can add wikiCommons, with "$wgUseInstantCommons = true", which successfully
searches the wikiCommons, but has no effect on local media.
I can manually add media with the standard editor and the [[File:image.ext]]
syntax, but if I double click a previously attached image in VE all of the
fields in the media dialog box are vacant and I can't change any values or even
close the dialog.
A query of 'api.php?action=query&list=allimages&format=json' returns a complete
set of media as expected.
Further, looking at the API documentation on the server the example listed for
filerepoinfo is
'api.php?action=query&meta=filerepoinfo&friprop=apiurl|name|displayname', but
it returns in the warnings field: "Unrecognized value for parameter 'friprop':
apiurl". Suggesting that perhaps a variable in LocalSettings.php is missing or
inaccurate, I've looked over this several times, but don't see any glaring
issues.
The server in question is behind an intranet, but I'm happy to answer any
questions.
Thanks,
Patrick
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l