Project

General

Profile

Actions

Defect #18825

open

WikiPage object miss included pages attachments

Added by Adam Cecile almost 10 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Wiki
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Affected version:

Description

Hello,

While working on improving PDF export I found an issue that may be related to main classes:
When using {{ include }} in the wiki page, the WikiPage object returned actually contains the right content but its attachment attributes is empty.

I was expecting a list of all attachment, from the page itself and from any page included.

Here is a dump of a few "page attribute"

From the main page:

##################################################################
Main_Wiki_Page
------------------------------------------------------------------
[#<Attachment id: 1682, container_id: 1106, container_type: "WikiPage", filename: "hitec_logo.png", disk_filename: "150113133053_hitec_logo.png", filesize: 4668, content_type: "", digest: "d8114fb74d6cdad588f257f4d2718534", downloads: 0, author_id: 27, created_on: "2015-01-13 13:30:53", description: "Hitec logo", disk_directory: "2015/01">]
------------------------------------------------------------------
#<WikiPage:0x00000006150788>

From a page being included into Main_Wiki_Page

##################################################################
Included_Page
------------------------------------------------------------------
[#<Attachment id: 1455, container_id: 1101, container_type: "WikiPage", filename: "111.png", disk_filename: "141124103152_111.png", filesize: 180513, content_type: "", digest: "961ac9ebcbc5a5b899d295f26d842bd2", downloads: 0, author_id: 67, created_on: "2014-11-24 10:31:52", description: "1111", disk_directory: "2014/11">, #<Attachment id: 1456, container_id: 1101, container_type: "WikiPage", filename: "222.png", disk_filename: "141124103450_222.png", filesize: 291765, content_type: "", digest: "9c61f2a3fbc4267c5dae7ce4f13572a8", downloads: 0, author_id: 67, created_on: "2014-11-24 10:34:50", description: "222", disk_directory: "2014/11">, #<Attachment id: 1457, container_id: 1101, container_type: "WikiPage", filename: "333.png", disk_filename: "141124103520_333.png", filesize: 403781, content_type: "", digest: "c2190ab73ce7c42882de8836a3c6b012", downloads: 0, author_id: 67, created_on: "2014-11-24 10:35:20", description: "333", disk_directory: "2014/11">, #<Attachment id: 1460, container_id: 1101, container_type: "WikiPage", filename: "444.png", disk_filename: "141125133930_444.png", filesize: 614140, content_type: "", digest: "e3df881e17534253a1d9413310bc86d4", downloads: 0, author_id: 67, created_on: "2014-11-25 13:39:30", description: "444", disk_directory: "2014/11">, #<Attachment id: 1461, container_id: 1101, container_type: "WikiPage", filename: "555.png", disk_filename: "141125134219_555.png", filesize: 1256339, content_type: "", digest: "5f1baa59953db143202fae54dd3bc80e", downloads: 0, author_id: 67, created_on: "2014-11-25 13:42:19", description: "555", disk_directory: "2014/11">, #<Attachment id: 1462, container_id: 1101, container_type: "WikiPage", filename: "666.png", disk_filename: "141125135703_666.png", filesize: 954793, content_type: "", digest: "44fbbed02abf6ebe7806cda2f194fc95", downloads: 0, author_id: 67, created_on: "2014-11-25 13:57:03", description: "666", disk_directory: "2014/11">]
------------------------------------------------------------------
#<WikiPage:0x00000006c6e3e0>

The first one should return a concat of both arrays, what you think ?

I'm available for any testing during the week days (GMT+1).

Thanks in advance,

Regards, Adam

No data to display

Actions

Also available in: Atom PDF