Bug 286020 - Import only imports first basket and first subbaskets
Summary: Import only imports first basket and first subbaskets
Status: RESOLVED WORKSFORME
Alias: None
Product: basket
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Kelvie Wong
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-07 17:15 UTC by Duane
Modified: 2023-02-07 03:55 UTC (History)
5 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
the exported Welcome basket archive (330.60 KB, application/octet-stream)
2011-11-07 17:15 UTC, Duane
Details
Need to recover the sub-baskets urgently (4.22 KB, application/octet-stream)
2013-02-20 11:21 UTC, deepak garg
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Duane 2011-11-07 17:15:39 UTC
Created attachment 65356 [details]
the exported Welcome basket archive

Version:           unspecified (using KDE 4.7.2) 
OS:                Linux

When you export a basket then reimport it, only the root basket and the first subbasket and subsequent first subbaskets (recursively) are imported.

Reproducible: Always

Steps to Reproduce:
Given basket tree:
Welcome
  '-Ex.: Notes
  '-Ex.: Research
  '-Tips

left-click on Welcome basket, export to basket archives...save as "Welcome.baskets" (default)



Actual Results:  
Basket-->Import-->Basket Archive...
type "Welcome.baskets" (file window doesn't show filenames with capital letters or spaces -- add as a feature request) --> OK
only imports
Welcome
  '-Ex.: Notes


Expected Results:  
Should have imported entire basket tree

Probably a problem in the outer loop, it jumps to subbaskets but loops once only.
Comment 1 Duane 2011-11-07 21:46:12 UTC
I forgot to mention that the basket version is 1.81.
Comment 2 titzke 2012-01-17 16:48:38 UTC
I can confirm this for basket-1.80-2.fc14 on Fedora using KDE 4.6.5.
Comment 3 Kess 2012-09-07 08:44:20 UTC
version 1.81 on Gentoo also contains this bug
Comment 4 Vincent Petry 2012-10-26 05:46:00 UTC
I had the feeling that this problem was on exporting, not importing. Basket would only select the first subbasket when exporting. Inside the subbasket it would still export everything.
So the workaround is to move you basket one level deeper, then export the top level basket.

Example:

1) A
   1.1) A1
   1.2) A2
       1.2.1) A11
       1.2.2) A12

If you export A2, it will only export A2 and A11.
If you export A, it will only export A, A1 and A11.

The workaround to export A is to do this:

1) TEMP
1) A
   1.1) A1
   1.2) A2
       1.2.1) A11
       1.2.2) A12
Comment 5 Vincent Petry 2012-10-26 05:48:28 UTC
Sorry, I tabbed and hit save changes too early.
For the workaround, do this: 

0) TEMP
    1) A
        1.1) A1
        1.2) A2
            1.2.1) A11
            1.2.2) A12

Then export TEMP, it will export the first subbasket only which is A, and then include everything else.
Comment 6 deepak garg 2013-02-20 11:21:28 UTC
Created attachment 77453 [details]
Need to recover the sub-baskets urgently

Hi, 

I have a lot of important information in my basket note pads and there were multiple baskets with many sub-baskets in each of them. Before formatting my system I exported the baskets as basket archives in a folder so that I can recover it later. When I imported it, I got only one level basket as stated in this bug. 

Please tell me if there is any possiblity to recover the the sub-baskets. Its a lot of important work information which I cannot afford to lose. 
I have attached one of the baskets. Please try if you can recover more than one sub-baskets from it.

Your help will be greatly appreciated.
Deepak
Comment 7 Duane 2013-02-20 23:14:14 UTC
(In reply to comment #5)
> Sorry, I tabbed and hit save changes too early.
> For the workaround, do this: 
> 
> 0) TEMP
>     1) A
>         1.1) A1
>         1.2) A2
>             1.2.1) A11
>             1.2.2) A12
> 
> Then export TEMP, it will export the first subbasket only which is A, and
> then include everything else.

The problem is recursive so only
1
  1.1
    1.1.1
      1.1.1.1
        ...
would be saved.
Comment 8 Duane 2013-02-20 23:17:42 UTC
(In reply to comment #6)
> Created attachment 77453 [details]
> Need to recover the sub-baskets urgently
> 
> Hi, 
> 
> I have a lot of important information in my basket note pads and there were
> multiple baskets with many sub-baskets in each of them. Before formatting my
> system I exported the baskets as basket archives in a folder so that I can
> recover it later. When I imported it, I got only one level basket as stated
> in this bug. 
> 
> Please tell me if there is any possiblity to recover the the sub-baskets.
> Its a lot of important work information which I cannot afford to lose. 
> I have attached one of the baskets. Please try if you can recover more than
> one sub-baskets from it.
> 
> Your help will be greatly appreciated.
> Deepak

Sorry friend, you're SOL. 
The bug is in the save function, not the import function. Only some of your data was saved.
Comment 9 rusty.robot.g 2014-06-09 16:35:56 UTC
Actually Basket exported notes data but didn't export basket structure. Bugfix for this will be included in version 2.10 and beta-testers are welcome.

If you have an older version, you can still try to unpack notes data:
1. Open example.baskets file with Okteta
2. Find Hex - 1F8B (this is signature of tar.gz archive)
3. Press [Insert] key to go to insert mode
4.Put cursor just before 1F8B, press Ctrl+Shift+Home and Delete to remove all header data
5. Save as example.tar.gz
Notes can be found in example.tar.gz/baskets/basket*/
Comment 10 Andrew Crouthamel 2018-11-11 04:27:25 UTC
Dear Bug Submitter,

This bug has been stagnant for a long time. Could you help us out and re-test if the bug is valid in the latest version? I am setting the status to NEEDSINFO pending your response, please change the Status back to REPORTED when you respond.

Thank you for helping us make KDE software even better for everyone!
Comment 11 Andrew Crouthamel 2018-11-21 04:30:19 UTC
Dear Bug Submitter,

This is a reminder that this bug has been stagnant for a long time. Could you help us out and re-test if the bug is valid in the latest version? This bug will be moved back to REPORTED Status for manual review later, which may take a while. If you are able to, please lend us a hand.

Thank you for helping us make KDE software even better for everyone!
Comment 12 Justin Zobel 2023-01-08 22:45:09 UTC
Thank you for reporting this issue in KDE software. As it has been a while since this issue was reported, can we please ask you to see if you can reproduce the issue with a recent software version?

If you can reproduce the issue, please change the status to "REPORTED" when replying. Thank you!
Comment 13 Bug Janitor Service 2023-01-23 05:04:28 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 14 Bug Janitor Service 2023-02-07 03:55:05 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!