CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Discussion »
  • Extensions (Moderators: mathieu, totten, kasiawaka) »
  • Extension wants to install automatically, I don't
Pages: [1]

Author Topic: Extension wants to install automatically, I don't  (Read 956 times)

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Extension wants to install automatically, I don't
July 12, 2012, 10:48:17 pm
Hi,

Playing for the first time with extension, a few questions/comments/issues

1) it wants to have the extension folder writable, so it can do the automatic download and upgrade directly.
I understand how it makes it easy, but I consider it a major security risk, and I will not let my admin users download extensions and install them. and in general, the less www-data can write php files, the happier I am.

I'm fine with the error message about being not writable, but trying to bypass and download/install manually leads to weird state
- as a test, I downloaded the zip for the extension and unzipped it manually. I did click on the install button, it wrote a couple of error messages about not being able to write (and perfectly normal) and now, it says that the installed version is outdated, and the upgrade page doesn't have any url/author, so I'm assuming the manual install didn't work

How can install manually an extension? In WP, it's fairly easy to do so, I would like to have the same option to download/unzip/enable

2) the extension expects to have cache and tmp files directly under the extension folder. Any reason not to use the normal cache/tmp folder from civicrm install?

Rationale: I don't want www-data to have too many places to write to, and if I start sharing the extension directory between civicrm instances, I can imagine problem arising
-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: Extension wants to install automatically, I don't
July 12, 2012, 10:58:32 pm
I solved the outdated version :

When I unziped org.civicrm.search.basic, the info.xml file was readable only by the owner

Code: [Select]
-rw-r--r-- 1 xavier   xavier 5872 2011-01-24 07:37 Basic.php
rw------- 1 xavier   xavier  877 2011-01-24 08:26 info.xml

I chmoded it so it has the same rights as Basic and now it's ok. Is this a bug I should report or something on my install?
-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

totten

  • Administrator
  • Ask me questions
  • *****
  • Posts: 695
  • Karma: 64
Re: Extension wants to install automatically, I don't
July 25, 2012, 01:43:29 pm
In 4.2, you can mitigate the concerns about downloading untrusted code by setting your own repository URL. Also, Jamie is working on a patch that would allow one to disable downloading entirely -- http://issues.civicrm.org/jira/browse/CRM-10575

For issues involving a read-only, shared extension directory, we should probably make a JIRA issue.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Discussion »
  • Extensions (Moderators: mathieu, totten, kasiawaka) »
  • Extension wants to install automatically, I don't

This forum was archived on 2017-11-26.