kumarsivarajan / mollify

Automatically exported from code.google.com/p/mollify
0 stars 0 forks source link

Can't add a folder that doesn't exist. #531

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. In Folder Configuration, click the + button to add a folder.
2. Enter a folder name and a path to a folder that doesn't exist yet.
3. Click Save.

What is the expected output? What do you see instead?
Gives the message: "Request failed."  It should indicate that the folder 
doesn't exist.  There should be an option to automatically create new folders.  
Previous versions of Mollify could do this.

What version of the product are you using? On what operating system?
Mollify 2.5.5, Ubuntu 12.04

Original issue reported on code.google.com by l...@d5.ca on 1 Apr 2014 at 10:43

GoogleCodeExporter commented 8 years ago
Could you dig out the server PHP error log? It should offer to create this 
folder if it does not exist, but since you get request failed, there is some 
error.

Original comment by samuli.j...@gmail.com on 2 Apr 2014 at 11:02

GoogleCodeExporter commented 8 years ago
Here is the excerpt from the server error log:

 MOLLIFY DEBUG: MySQLi DB: mollify@localhost:mollify(mollify_), referer: https://devsvr/drop/
 MOLLIFY DEBUG: DB QUERY: select id, user_id, ip, time, last_access from mollify_session where id = '1533c203de53dc' and last_access >= 20140402063717, referer: https://devsvr/drop/
 MOLLIFY DEBUG: DB QUERY: select name, value from mollify_session_data where session_id = '1533c203de53dc', referer: https://devsvr/drop/
 MOLLIFY DEBUG: DB QUERY: SELECT id, name, user_type, lang, email, expiration FROM mollify_user WHERE id='1' AND (expiration is null or expiration > 20140402083717), referer: https://devsvr/drop/
 MOLLIFY DEBUG: DB QUERY: select id, name, description from mollify_user where id in (SELECT user_group.group_id FROM mollify_user as user, mollify_user_group as user_group where user_group.user_id = user.id and user.id = '1') ORDER BY id ASC, referer: https://devsvr/drop/
 MOLLIFY DEBUG: DB QUERY: UPDATE mollify_session set last_access=20140402083717 where id='1533c203de53dc', referer: https://devsvr/drop/
 MOLLIFY DEBUG: Filesystem registered: local, referer: https://devsvr/drop/
 MOLLIFY DEBUG: VERSION: 2.5.5 SERVER: {HTTPS:on, SSL_TLS_SNI:devsvr, SSL_SERVER_S_DN_C:CA, SSL_SERVER_S_DN_ST:****, SSL_SERVER_S_DN_L:****, SSL_SERVER_S_DN_O:Ubuntu Server, SSL_SERVER_S_DN_CN:devsvr, SSL_SERVER_S_DN_Email:****, SSL_SERVER_I_DN_C:CA, SSL_SERVER_I_DN_ST:****, SSL_SERVER_I_DN_L:****, SSL_SERVER_I_DN_O:Ubuntu Server, SSL_SERVER_I_DN_CN:devsvr, SSL_SERVER_I_DN_Email:****, SSL_VERSION_INTERFACE:mod_ssl/2.2.22, SSL_VERSION_LIBRARY:OpenSSL/1.0.1, SSL_PROTOCOL:TLSv1.2, SSL_SECURE_RENEG:true, SSL_COMPRESS_METHOD:NULL, SSL_CIPHER:DHE-RSA-AES128-SHA, SSL_CIPHER_EXPORT:false, SSL_CIPHER_USEKEYSIZE:128, SSL_CIPHER_ALGKEYSIZE:128, SSL_CLIENT_VERIFY:NONE, SSL_SERVER_M_VERSION:1, SSL_SERVER_M_SERIAL:A6DF99F42F712BD0, SSL_SERVER_V_START:Apr  1 20:49:48 2014 GMT, SSL_SERVER_V_END:Apr  1 20:49:48 2015 GMT, SSL_SERVER_S_DN:****, SSL_SERVER_I_DN:****, SSL_SERVER_A_KEY:rsaEncryption, SSL_SERVER_A_SIG:sha1WithRSAEncryption, SSL_SESSION_ID:ED18B51BAC057CCED14C14744325B0B28126BAE26DF7A72F6B7FD7FD353EC689, CONTENT_TYPE:application/json; charset=UTF-8, HTTP_MOLLIFY_SESSION_ID:1533c203de53dc, HTTP_X_REQUESTED_WITH:XMLHttpRequest, HTTP_REFERER:https://devsvr/drop/, CONTENT_LENGTH:31, HTTP_COOKIE:mollify_app_session=1533c203de53dc, HTTP_PRAGMA:no-cache, HTTP_CACHE_CONTROL:no-cache, SCRIPT_FILENAME:/var/www/mollify/public_html/backend/r.php, SERVER_PROTOCOL:HTTP/1.1, REQUEST_METHOD:POST, QUERY_STRING:, REQUEST_URI:/drop/backend/r.php/configuration/folders, SCRIPT_NAME:/drop/backend/r.php, PATH_INFO:/configuration/folders, PATH_TRANSLATED:/var/www/secure/configuration/folders, PHP_SELF:/drop/backend/r.php/configuration/folders, REQUEST_TIME:1396449436}, referer: https://devsvr/drop/
 MOLLIFY DEBUG: SETTINGS: {db:{type:mysql, user:mollify, password:, host:localhost, database:mollify, table_prefix:mollify_, charset:utf8}, email_login:, session_name:, session_time:7200, timezone:America/Edmonton, enable_change_password:1, enable_descriptions:, enable_mail_notification:1, enable_retrieve_url:, allowed_file_upload_types:{}, mail_notification_from:drop@devsvr, new_folder_permission_mask:493, convert_filenames:, support_output_buffer:, url_retriever_class:UrlRetriever.class.php, mime_types:{}, authentication_methods:{0:pw, 1:ldap}, ldap_server:ldap://devdom.local, ldap_conn_string:devdom\\[USER], upload_temp_dir:/var/www/mollify/temp, enable_thumbnails:1, enable_folder_protection:, debug:1, debug_log:/var/www/mollify/debug.log, published_folders_root:/var/www/mollify/users}, referer: https://devsvr/drop/
 MOLLIFY DEBUG: FEATURES: {limited_http_methods:1, change_password:1, descriptions:, user_groups:1, mail_notification:1, retrieve_url:, folder_protection:, thumbnails:1, guest_mode:1}, referer: https://devsvr/drop/
 MOLLIFY DEBUG: FILESYSTEM: allowed_file_upload_types={}, referer: https://devsvr/drop/
 MOLLIFY DEBUG: SESSION: is_active=1, user={id:1, name:sysadmin, user_type:a, lang:, email:, expiration:}, data={auth:}, referer: https://devsvr/drop/
 MOLLIFY DEBUG: AUTH: is_authenticated=1, referer: https://devsvr/drop/
 MOLLIFY DEBUG: REQUEST: method=post, path={0:configuration, 1:folders}, ip=192.168.0.50, params={}, data={name:test1, path:test1}, referer: https://devsvr/drop/
 MOLLIFY DEBUG: SERVICE (ConfigurationServices), referer: https://devsvr/drop/
 MOLLIFY ERROR: Exception (NonExistingFolderException): Invalid folder definition, path does not exist [], referer: https://devsvr/drop/
 MOLLIFY ERROR: {0:{file:/var/www/mollify/public_html/backend/include/filesystem/FilesystemController.class.php, line:286, function:assert, class:LocalFilesystem, type:->, args:{}}, 1:{file:/var/www/mollify/public_html/backend/include/filesystem/FilesystemController.class.php, line:330, function:filesystem, class:FilesystemController, type:->, args:{0:{name:test1, path:/var/www/mollify/users/test1, type:local}, 1:1}}, 2:{file:/var/www/mollify/public_html/backend/include/services/ConfigurationServices.class.php, line:535, function:assertFilesystem, class:FilesystemController, type:->, args:{0:{name:test1, path:/var/www/mollify/users/test1, type:local}}}, 3:{file:/var/www/mollify/public_html/backend/include/services/ConfigurationServices.class.php, line:56, function:processPostFolders, class:ConfigurationServices, type:->, args:{}}, 4:{file:/var/www/mollify/public_html/backend/include/services/ServicesBase.class.php, line:59, function:processPost, class:ConfigurationServices, type:->, args:{}}, 5:{file:/var/www/mollify/public_html/backend/include/MollifyBackend.class.php, line:85, function:processRequest, class:ServicesBase, type:->, args:{}}, 6:{file:/var/www/mollify/public_html/backend/r.php, line:63, function:processRequest, class:MollifyBackend, type:->, args:{0:Request}}}, referer: https://devsvr/drop/
 MOLLIFY DEBUG: RESPONSE error {0:105, 1:Invalid configuration, 2:403} Invalid folder definition, path does not exist [] , referer: https://devsvr/drop/

Original comment by l...@d5.ca on 2 Apr 2014 at 3:01

GoogleCodeExporter commented 8 years ago
I just enabled some plugins and executed the update function.  Now it prompts 
to create non-existent folders.  Strange.

Original comment by l...@d5.ca on 2 Apr 2014 at 9:49

GoogleCodeExporter commented 8 years ago
There was something odd when I did the update.  It said that the system needed 
to be updated to version 2.5.1, or something like that, even though I'm 
currently running version 2.5.5.

Original comment by l...@d5.ca on 2 Apr 2014 at 9:52

GoogleCodeExporter commented 8 years ago
That version number was a mistake in the update, I accidentally just increased 
the last db version (2.5) to 2.5.1 when the release version was 2.5.5. This 
will be synced in next release.

Can't see any explanation in the log, perhaps you had some plugin to be 
installed? Anyway, most important that it works now. I'll test if I can 
reproduce myself, but for now I'll close this.

Original comment by samuli.j...@gmail.com on 3 Apr 2014 at 5:23