Please help us to make AbanteCart Ideal Open Source Ecommerce Solution for everyone.

Support AbanteCart eCommerce

Author Topic: Hard coded folder paths?  (Read 14473 times)

Offline Nimitz1061

  • Full Member
  • ***
  • Posts: 190
  • Karma: +22/-0
  • No matter where you go, there you are...
    • View Profile
Hard coded folder paths?
« on: September 04, 2012, 07:14:28 PM »
I tend to do manual updates on my sites.  For some reason I sometimes see references to attempts to access an update.xml file in our server wide tmp folder.  As we don't generally allow access to the tmp folder itself, this is not good.

I don't see where this location can be configured anywhere...

David

Offline abolabo

  • core-developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 2046
  • Karma: +318/-13
  • web for all, all for web!
    • View Profile
    • AbanteCart
Re: Hard coded folder paths?
« Reply #1 on: September 05, 2012, 04:47:03 PM »
I tend to do manual updates on my sites.  For some reason I sometimes see references to attempts to access an update.xml file in our server wide tmp folder.  As we don't generally allow access to the tmp folder itself, this is not good.

I don't see where this location can be configured anywhere...

David

Hello.
we already changed this code. it was done this way to keep file with updated info in temporary folder and checking not often than once per 24 hours at admin login time.
We recommended to give write permission for admin/system folder for web-server system user (apache etc)  because it use for automatic upgrades and package installs too.
« Last Edit: September 06, 2012, 08:22:51 AM by abantecart »
“No one is useless in this world who lightens the burdens of another.”
― Charles Dickens

Offline Nimitz1061

  • Full Member
  • ***
  • Posts: 190
  • Karma: +22/-0
  • No matter where you go, there you are...
    • View Profile
Re: Hard coded folder paths?
« Reply #2 on: September 10, 2012, 10:24:36 AM »
Are you telling me that this hard coded path is part of a fallback system, and that reaching it probably indicates that the admin system folder needs write permissions???

David

Offline abantecart

  • Administrator
  • Hero Member
  • *****
  • Posts: 4358
  • Karma: +298/-10
    • View Profile
    • Ideal Open Source Ecommerce Solution
Re: Hard coded folder paths?
« Reply #3 on: September 10, 2012, 10:30:25 AM »
Yes. This is correct.
Please  rate your experience or leave your review
We need your help to build better free open source ecommerce platform for everyone. See how you can help

Offline Nimitz1061

  • Full Member
  • ***
  • Posts: 190
  • Karma: +22/-0
  • No matter where you go, there you are...
    • View Profile
Re: Hard coded folder paths?
« Reply #4 on: September 12, 2012, 10:17:45 AM »
Ok, changed permissions on admin/system/ folder - and I can now see the updates.xml file being created there.

But, still get an error about missing XML tags. 

Offline abolabo

  • core-developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 2046
  • Karma: +318/-13
  • web for all, all for web!
    • View Profile
    • AbanteCart
Re: Hard coded folder paths?
« Reply #5 on: September 12, 2012, 04:35:17 PM »
Ok, changed permissions on admin/system/ folder - and I can now see the updates.xml file being created there.

But, still get an error about missing XML tags.

we already fixed this bug. Thanks.
“No one is useless in this world who lightens the burdens of another.”
― Charles Dickens

 

Powered by SMFPacks Social Login Mod