msully1975 / reportsync

Automatically exported from code.google.com/p/reportsync
0 stars 0 forks source link

Folders not created / detected properly #20

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.Sync between RS with Folders, Datasources and Reports and RS without anything

What is the expected output? What do you see instead?
Sync completed.
Exception.

What version of the product are you using? On what operating system?
r22

Please provide any additional information below.

Hi,

I apreciate your work very much as it helps me keeping stuff in sync!
I've noticed this behaviour during the setup of an new ReportServer.

A possible fix for this might be this part of code after line 402 in 
ReportSync.cs:
                        if (itemType == ItemTypeEnum.Folder)
                        {
                            if (!existingPaths.Contains(itemPath))
                            {
                                EnsureDestDir(itemPath);
                                existingPaths.Add(itemPath);
                            }
                            processedNodeCount++;
                            continue;
                        }
It detects the itemType "Folder", creates it in the dest., and continues work.

Greetz
Markus

Original issue reported on code.google.com by markusri...@gmail.com on 27 Mar 2013 at 4:35

GoogleCodeExporter commented 8 years ago
Thanks for reporting Markus. 

Pointing to the exact line in code is great. 
Not many people bother to read the source. 

I am trying to simulate the bug here so I can resolve it. 
I understand that it is detecting the item type wrongly. 
What is the actual item type? 

If I were to create a minimal setup to replicate the problem, what should my 
folder structure look like?

Original comment by nunespascal on 28 Mar 2013 at 5:27

GoogleCodeExporter commented 8 years ago
No problem :-) I'm developing as well and I'm glad if someone tells me where 
the fault may be and not just that there is one :)

The actual type is folder.
i had a simple structure. 
Root
-Folder
--Datasource
-Folder
--Report
exception occurs on first folder. 
It is treated as report after line 402 because it is not detected as folder.
my environment is VS2010, SQL2008R2 SP2.

Original comment by markusri...@gmail.com on 28 Mar 2013 at 9:33