Modify

Opened 8 years ago

Closed 7 years ago

Last modified 6 years ago

#1447 closed Bug/Fehler (fixed)

Probleme bei Downloadshops nach Update von 1.06 rev 4642 SP4 nach 2.0.3.0 rev 10907

Reported by: Torsten Riemer Owned by: somebody
Priority: hoch Milestone: modified-shop-2.0.5.1
Component: Shop Version: 2.0.3.0
Keywords: Cc:
Blocked By: Blocking:

Description

Durch die "update_1.0.6.4_to_2.0.0.0.sql" kam die Spalte "download_key" in Tabelle "orders_products_download" hinzu.

Dieser Wert wird aber erst durch die "checkout_process.php" gesetzt:

          if (isset($attributes_dl_array['products_attributes_filename']) && xtc_not_null($attributes_dl_array['products_attributes_filename'])) {
            $sql_data_array = array (
                'orders_id' => $insert_id,
                'orders_products_id' => $order_products_id,
                'orders_products_filename' => $attributes_dl_array['products_attributes_filename'],
                'download_maxdays' => $attributes_dl_array['products_attributes_maxdays'],
                'download_count' => $attributes_dl_array['products_attributes_maxcount'],
                'download_key' => md5($insert_id.$order_products_id.$_SESSION['customer_id'].$order->customer['email_address'].$attributes_dl_array['products_attributes_filename'])
              );
            foreach(auto_include(DIR_FS_CATALOG.'includes/extra/checkout/checkout_process_download/','php') as $file) require ($file);
            xtc_db_perform(TABLE_ORDERS_PRODUCTS_DOWNLOAD, $sql_data_array);
          }

Das Problem tritt dann auf, wenn ein Downloadshop beispielsweise innerhalb eines Jahres beliebig viele Downloads zulässt, da beispielsweise Updates in dieser Zeit kostenlos sind. Hat ein Kunde den Download-Artikel vor dem Update von 1.06 rev 4642 SP4 auf 2.x gekauft, dann ist es für diesen Kunden nach dem Update auf 2.x aufgrund der neuen "download.php" nicht mehr möglich für die restliche Zeit die Downloads zu laden.

Attachments (1)

changeset_12493.zip (3.6 KB ) - added by Torsten Riemer 6 years ago.

Download all attachments as: .zip

Change History (7)

comment:1 by Torsten Riemer, 8 years ago

Milestone: modified-shop-2.0.4.0modified-shop-2.0.4.1

comment:2 by Torsten Riemer, 7 years ago

Milestone: modified-shop-2.0.4.1modified-shop-2.0.5.0

comment:3 by Gerhard Waldemair, 7 years ago

Resolution: fixed
Status: newclosed

In 11749:

fix #1447

comment:4 by Torsten Riemer, 7 years ago

In 11766:

Replaced german umlauts with entities on r11749 (fix #1447)

comment:5 by Gerhard Waldemair, 6 years ago

In 12493:

fix #1447 - fix installer for system updates

comment:6 by Torsten Riemer, 6 years ago

Milestone: modified-shop-2.0.5.0modified-shop-2.0.5.1

by Torsten Riemer, 6 years ago

Attachment: changeset_12493.zip added

Modify Ticket

Action
as closed The owner will remain somebody.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.