cancel
Showing results for 
Search instead for 
Did you mean: 

Mediawiki files are not stored in Alfresco repository

quovadit
Champ in-the-making
Champ in-the-making
I integrated mediawiki to alfresco 2.1 following the instructions on http://wiki.alfresco.com/wiki/Alfresco_MediaWiki_Installation_Instructions

If I write a new article in the wiki, it automatically gets stored in the alfresco repository.  Smiley Very Happy

But if I upload a file to that article in the wiki, this file (.jpg, .pdf) gets stored in the wiki-file-system, not in alfresco  Smiley Sad

I can see the image-file in the alfresco wiki-space, but it has the size 0KB and if I want to open it via web-client, I get the error-message:

The node's content is missing: 
   node: workspace://SpacesStore/3b3582ed-59fe-11dc-bfeb-4b939856bcd4
   reader: null 
Please contact your system administrator.


It is very important for me, that uploaded files in the wiki only get stored in the alfresco repository, because that's the reason why we plan to use alfresco+wiki in our whole company (500+ users).

Thanks for every answer

Harald


some technical infos:
I installed alfresco 2.1 community edition with tomcat and mediawiki 1.10.1. with xampp  1.6.3a on a windows xp machine
5 REPLIES 5

rwetherall
Confirmed Champ
Confirmed Champ
Hi Harold,

I presume you are talking about storing files uploaded into MediaWiki into Alfresco?

If this is the case then its not something we have yet tackled.  The current MediaWiki integration is our first stab and as such there are serveral points of integration we want to improve/add in the next interation, storing uploaded documents being one.

I'm not sure what the development schedule for this area of work is going forward, so in the mean time I'll take a quick look and see if there is something simple that can be done to help overcome this issue.

Cheers,
Roy

quovadit
Champ in-the-making
Champ in-the-making
Hi,

yes, that's excactly what I'm looking for.

It's really very bad news, that this feature is not yet implemented.

On a optaros-alfresco seminar in munich on june 26th I talked to a representative of alfresco, and he assured, that uploaded files in the wiki will get stored in the alfresco-repository in release 2.1.

It would be great, if you could find a solution for that, and if you could tell me when this feature will be available approximately.

Is it possible to install mediawiki 1.10.1 now, start using it (without uploading files), and installing the mediawiki-alfresco-integration afterwards? What about the articles already stored in the wiki until then?

Thanks in advance

Harald

robain
Champ in-the-making
Champ in-the-making
Has this been resolved yet ???

uploading images on mediawiki does not upload the file on alfresco, though it creates the content.

nicof
Champ in-the-making
Champ in-the-making
I am trying to get a quick and dirty solution for this problem. Here is my approach:

We are using Alfresco 2.1 CE on Centos 5. On a non-Linux-Server, this hack may probably have to be adjusted.


In the beginning, I created another space in the mediawiki-space I use.
Next, I mounted Alfresco's CIFS in Linux:
mount.cifs //servername/Alfresco/ /tmp/alfrewiki -o user=XXX,password=XXX,rw
Then I deleted the images-foder of the Mediawiki and created a symbolic link to the space defined above:
cd /var/www/html/mediawiki
rm images
ln -s /tmp/alfrewiki/(the following is the path inside Alfresco)Projects/Archiv/mediawiki/mediawiki/ images
It is important, that the user you use to mount the drive has full rights on the space!

After uploading a file, I now did receive an errormessage. Mediawiki tries to create new paths inside the folde, but Alfresco/CIFS obviously does not allow the creation of complete paths with the php-function mkdir, but only one folder by another. For example, if Mediawiki tries to create //var/www/html/mediawiki/images/public/e/7, it would have to create public/e/7. It will give out an errormessage, and each time you refresh it, a new 'level' will be created, first public, next time e and so on.

As solution, open includes/GlobalFunctions.php of Mediawiki and replace
return mkdir( str_replace( '/', DIRECTORY_SEPARATOR, $fullDir ), $mode, true );
with
exec ('mkdir -p ' . $fullDir);
return true

From now on, all Uploads will be stored and indexed in Alfresco.

Problem: It is still not possible to update or actually delete files. Deletion will be acknowledged by Mediawiki, but the files are not deleted and will make problems, if uploading another file of the same name. I am working on it and will post a solution, if I find one.

faba
Champ in-the-making
Champ in-the-making
Hello all
Does anyone know if this issue has been resolved in the standard community package?
Please let me know since this feature is of great interest for us…
Regards
/FaBa