GithubHelp home page GithubHelp logo

provisoner's Introduction

provisoner's People

Contributors

fireproofsocks avatar pbowyer avatar sentience avatar shamblett avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

provisoner's Issues

Check for CURL Installation

Provisioner should check for the php-curl extensions being present and fail the login with a suitable user message if not present.

replacetag on resource tree import

I've find that your tag replace only work on per individual resource import.
I've copied your single import replace tag into import tree code...
Please let me know if you need the file.

thanks.

import with document group setting

Hi,

i've found that the import resource/resources doesn't include importing document group to the resources.
I've done modification in which it will send the list of document group name from evo snippet and send it over to receiver side. It will then find for the document group of the resource it is importing, and insert document_group record accordingly.

Please let me know on how i could submit my file to you.

thanks.

New Site Import Tab

It seems work great for resources, but no TV or TV data. Upon several attempts I see some TVs came into Revo but without their values.

I assume if evo site is huge, should I check for some database/php settings to let provisioner keep working long enough to fetch everything?

Still not working in modx 2.2

It appears that the original issue of Access Denied when trying to use this in versions above 2.1.3 is still there. What was the 2.2 fix that was made in Jan. Should this be fully functional now?

File import fails

File importing is failing on my XP box, need to check this on linux it was working on linux last time I checked.

[REQ] - import context's resources

Being able to import all resources from one context would be nice (from a revo source), either by right click on the context name or allow multi resource selection (via ctrl/option)

File import from Evolution

All file imports from evolution sites now use base64_encode/decode so binary files are correctly transferred across

Apache base authentication

To allow authentication of sites that use password protected apache base auth Provisoner needs to be modified to send the correct auth headers :-

function curl_init(){
$this->_curlSession = curl_init();
curl_setopt($this->_curlSession, CURLOPT_HTTPAUTH, CURLAUTH_BASIC ) ;
curl_setopt($this->_curlSession, CURLOPT_USERPWD, "username:password");
}

Note: replace "username" and "password" in the function above with the appropriate values for your site.

Then search for "$this->_curlSession = curl_init();" and replace it with "$this->curl_init();"

Original reporter user Jayster

Non-alphanumeric characters in password fail login

From the 1.6-beta support thread, reporter jrotering :-

I think the authentication may be choking on certain password characters. My remote site password initially had a '&' and a '!' in it, and I kept getting username/password errors until I changed it to a password with only alphanumeric characters. I haven't done exhaustive testing on this, but I can verify that I was definitely entering my password correctly, so I'm guessing it was one or both of those non-alphanumeric characters.

Translate tags in TV values

For evo->revo migrations it would save a lot of time if individual TV tags could have translated tags as well.

Recursive resource import

This only works if the node to be imported is in the 'collapsed' state.

Original reporters users Jayster/zi

JSON encode/decode in revogateway

From user nowhinjing :-

Currently the revogateway uses the json_encode/decode php functions, only php 5.2 and later have these, Provisioner should test for this and ifr not present instatiate its own encoder/decoder.

Assign resource group on import

Hi,
is it possible to also import resources group assigned to each resources,
and recreate the resources group locally if it doesnt exists?

Error when trying to preview of imported page

I've migrated one website (MODx 0.963) with provisioner(v1.6), but getting error when I tried to view any page:

Fatal error: Cannot pass parameter 1 by reference in
C:\test\modx\core\model\modx\modx.class.php on line 2237

These are the steps I took:

  1. I followed the instructions. Everything is OK except importing files. So manually copied files under assets directory of old site to new site (/assets/components/provisioner/imports).
  2. Changed index.php under root to swich to new context "provisioner"
    ** commented out the following line
    //$modx->initialize('web');
    ** add the following line
    $modx->initialize('provisioner');

Can you pls help me to figure out the problem? I am new to MODx and need to upgrade the site. I've tried migration several times but no avail. After migration, should I do something else to make the site work?

Thanks in advance

evo import: pub_date, unpub_date, publishedon

the date doesnt not appear correctly for all 3 dates: pub_date, unpub_date, publishedon

change from (assets/snippets/revogateway/connectors/resources/get.php):
//if (!empty($resource['pub_date']) && $resource['pub_date'] != '0000-00-00 00:00:00') {
// $resource['pub_date'] = strftime('%Y-%m-%d %H:%M:%S',strtotime($resource['pub_date']));
//} else $resource['pub_date'] = '';
//if (!empty($resource['unpub_date']) && $resource['unpub_date'] != '0000-00-00 00:00:00') {
// $resource['unpub_date'] = strftime('%Y-%m-%d %H:%M:%S',strtotime($resource['unpub_date']));
//} else $resource['unpub_date'] = '';
//if (!empty($resource) && $resource['publishedon'] != '0000-00-00 00:00:00') {
// $resource['publishedon'] = strftime('%Y-%m-%d %H:%M:%S',strtotime($resource['publishedon']));
//} else $resource['publishedon'] = '';
-------to----------
if (!empty($resource['pub_date'])) {
$resource['pub_date'] = strftime('%Y-%m-%d %H:%M:%S',$resource['pub_date']);
} else $resource['pub_date'] = '';
if (!empty($resource['unpub_date'])) {
$resource['unpub_date'] = strftime('%Y-%m-%d %H:%M:%S',$resource['unpub_date']);
} else $resource['unpub_date'] = '';
if (!empty($resource)) {
$resource['publishedon'] = strftime('%Y-%m-%d %H:%M:%S',$resource['publishedon']);

} else $resource['publishedon'] = '';

hope it helps :)

Suggestion: Import multiple items

Hi great work, just a quick suggestion. It would be great if multiple resources/plugins/chunks could be imported in one go. One suggestion would be to setup the tree with checkboxes next to each item and up top buttons 'import selected', 'import all', 'check all', 'uncheck all', 'import' buttons.

Revogateway web user bug

From this forum thread :-
http://modxcms.com/forums/index.php/topic,55807.msg328740.html#msg328740

One more bug I found in listing Evo users.
Line 93 in revogateway\connectors\users\getlist.php:
$sql = "SELECT fullname, email, blocked FROM " . $table_prefix . "web_user_attributes" .
" WHERE id = " . $web_user['id'];
should be:

$sql =  "SELECT fullname, email, blocked FROM " . $table_prefix . "web_user_attributes" .
        " WHERE `internalKey` = " . $web_user['id'];

Import time period(secs) issue

Hi,

I'm trying to migrate Evo 1.0.5 to Revo 2.0.8 with provisioner 1.0.0, but I have around 5000 resources and provisioner doesnt complete the migration.

I've tried to increase the max_execution_time in my php.ini and Import time period(secs): in the provisioner settings and no luck. Any suggestions?

Apache error log (Wamp): [error] [client ::1] PHP Fatal error: Maximum execution time of 120 seconds exceeded in C:\wamp\www\revolution\core\xpdo\xpdo.class.php on line 424, referer:

other logged in users can use provisioner connection

I had an open Provisioner connection from one MODX Revolution installation to another... logged in as admin user. I created some additional users, and when I log in as a different user, in a different browser, the other user can access the Provisioner connection without logging in(!) As long as I don't log out of Provisioner from the session that opened the connection, the Provisioner connection seems to be open for other logged in users. Once I close it in one session, it seems to close in the others.

Resource Auto link to template in target host

Ive done a changed to your code to allow template name to be inserted into the ajax evo before sending to provision receiver side.
On receiver end, it will find for the template name for each resources and replace the template id with the id found on the receiver side.
Please let me know how i could submit my file..

thanks

TV default text field contains newline

On TV import the default_text field in modx_site_tmplvar being populated with a '\n' rather than ''" when the field is blank.

Original reporter rsgca

User Guide updates

Some documentation update suggestions from user kirkhuyser :-

Original Document:
“For each remote Evolution site you wish to provision from you need to install the Revolution gateway code so Provisioner can communicate with it. This is a simple matter of creating a directory named 'revogateway' under the 'assets/snippets' directory of the remote Evolution site and installing an unzipped copy of the file 'revogatway.zip' into it. You should now have an 'index.php' file and a 'connectors' directory visible in your revogateway directory. That's it, nothing more to do.”

Re-Write:
For each remote Evolution site you wish to provision from you need to install the Revolution gateway code so Provisioner can communicate with it. This is a simple matter of uploading an unzipped copy of the file 'revogatway.zip' into the assets folder using Evolution’s Manage Files and unzipping it from there. You should now have a revogateway directory containing an 'index.php' file and a 'connectors' directory. That's it, nothing more to do.

Original Document:
“Before using the component you must log into the remote site, on the Administration tab fill in the account, password and URL details.”

Re-Write:
After starting the Provisioner component log into the remote site on the Administration tab by filling in the account, password and URL details.

auto assign new template id by template name?

Hi,

is it possible to auto assign new template id to resources imported based on template name?
because the new template imported will have different id, so it will be best that on import, the code find for the template based on name and reassign the id to it...

Basedir restrictions stop tempfile creation

From user nowhinjing :-
Getting an open_basedir restriction when trying to create the tempfile used for cookie storage on a VPS where directory access is locked down.

Maybe move the tempfile into assets somewhere.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.