thaond / magento-openerp-smile-synchro

Automatically exported from code.google.com/p/magento-openerp-smile-synchro
0 stars 0 forks source link

Forbidden file access #19

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Install Magento 1.1.7
2. Install magento-openerp-smile-synchro
3. Copied the XML into the etc file
5. try the test URL's

and tried the pure path and check the file permissions.
rwxrwxrwx 1 www-data www-data 11013 25. Nov 19:30 openerp-synchro.php 

What is the expected output? What do you see instead?
XML output would be expected, but only a forbidden message comes. That can
be caused by invalid URL's or maybe some .htaccess file
ive tried:
/app/code/local/Smile/OpenERPSync/openerp-synchro.php
/app/code/local/Smile_OpenERP_Synchro/openerp-synchro.php
/app/code/community/Smile_OpenERP_Synchro/openerp-synchro.php

What version of the product are you using? On what operating system?
Magento 1.1.17
synchro 0.9.9

Please provide any additional information below.
your doing a awesome job! Hope keep it up!

Original issue reported on code.google.com by esync...@googlemail.com on 26 Nov 2008 at 12:14

GoogleCodeExporter commented 9 years ago
can be ugly fixed by editing the .htaccess file magento/app/.htaccess and set 
it from 

Deny from all

to

Allow from all

this can be done more secure if you just copy the .htaccess file into your
openerp-synchro directory. And rewrite the rule like descripted above.

but the next trap follows up:

Traceback (most recent call last):
  File "/usr/lib/tinyerp-server/netsvc.py", line 202, in _dispatch
    r=m(*params)
  File "/usr/lib/tinyerp-server/service/web_services.py", line 422, in execute
    return self._execute(db, uid, wiz_id, datas, action, context)
  File "/usr/lib/tinyerp-server/service/web_services.py", line 402, in _execute
    return wiz.execute(db, uid, self.wiz_datas[wiz_id], action, context)
  File "/usr/lib/tinyerp-server/wizard/__init__.py", line 160, in execute
    res = self.execute_cr(cr, uid, data, state, context)
  File "/usr/lib/tinyerp-server/wizard/__init__.py", line 75, in execute_cr
    action_res = action(self, cr, uid, data, context)
  File
"/usr/lib/tinyerp-server/addons/magento_openerp_smile.zip/magento_openerp_smile/
wizard/magento_product_synchronize.py",
line 117, in _do_export
    updated_magento_id = server.product_sync([webproduct])
  File "/usr/lib/python2.5/xmlrpclib.py", line 1147, in __call__
    return self.__send(self.__name, args)
  File "/usr/lib/python2.5/xmlrpclib.py", line 1437, in __request
    verbose=self.__verbose
  File "/usr/lib/python2.5/xmlrpclib.py", line 1201, in request
    return self._parse_response(h.getfile(), sock)
  File "/usr/lib/python2.5/xmlrpclib.py", line 1340, in _parse_response
    return u.close()
  File "/usr/lib/python2.5/xmlrpclib.py", line 787, in close
    raise Fault(**self._stack[0])
Fault: <Fault 620: 'Method "product_sync" does not exist'>

Original comment by esync...@googlemail.com on 29 Nov 2008 at 12:50

GoogleCodeExporter commented 9 years ago
after fixing some includes in the openerp-synchro.php file OpenERP gets allways 
in
the logfiles:

Sat, 29 Nov 2008 14:20:22 ERROR:Magento Export:product ID 1 has error !
Error junk after document element: line 2, column 0
Sat, 29 Nov 2008 14:20:25 ERROR:Magento Export:product ID 2 has error !
Error junk after document element: line 2, column 0
Sat, 29 Nov 2008 14:20:28 ERROR:Magento Export:product ID 3 has error !
Error junk after document element: line 2, column 0

and import nothing  (cause every element themes to fail) :/

Original comment by esync...@googlemail.com on 29 Nov 2008 at 1:30

GoogleCodeExporter commented 9 years ago
Please tell us what is in your Magento logs (inside the Magento extension).

Original comment by rva...@gmail.com on 4 Dec 2008 at 11:16