Opened 3 years ago

Closed 3 years ago

Last modified 22 months 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: Tomcraft Owned by: somebody
Priority: hoch Milestone: modified-shop-2.0.5.1
Component: Shop Version: 2.0.3.0

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 Tomcraft 22 months ago.

Download all attachments as: .zip

Change History (7)

comment:1 Changed 3 years ago by Tomcraft

  • Milestone changed from modified-shop-2.0.4.0 to modified-shop-2.0.4.1

comment:2 Changed 3 years ago by Tomcraft

  • Milestone changed from modified-shop-2.0.4.1 to modified-shop-2.0.5.0

comment:3 Changed 3 years ago by GTB

  • Resolution set to fixed
  • Status changed from new to closed

In 11749:

fix #1447

comment:4 Changed 3 years ago by Tomcraft

In 11766:

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

comment:5 Changed 22 months ago by GTB

In 12493:

fix #1447 - fix installer for system updates

comment:6 Changed 22 months ago by Tomcraft

  • Milestone changed from modified-shop-2.0.5.0 to modified-shop-2.0.5.1

Changed 22 months ago by Tomcraft

Add Comment

Modify Ticket

Action
as closed
The resolution will be deleted. Next status will be 'reopened'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.