Bug 10561 - Samba Printing fails in Pure IPV6 environment using Windows7 with "(zero length)" error
Summary: Samba Printing fails in Pure IPV6 environment using Windows7 with "(zero leng...
Status: CLOSED WORKSFORME
Alias: None
Product: Samba 3.6
Classification: Unclassified
Component: Printing (show other bugs)
Version: 3.6.22
Hardware: All All
: P5 normal
Target Milestone: ---
Assignee: printing-maintainers
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-04-24 06:13 UTC by Meena
Modified: 2021-01-08 00:57 UTC (History)
2 users (show)

See Also:


Attachments
Log file for Print Failure in PureIPV6 environment (877.47 KB, application/octet-stream)
2014-04-30 06:33 UTC, Meena
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Meena 2014-04-24 06:13:11 UTC
Dear Samba Team,

We have migrated from Samba 3.5.16 to 3.6.22. We are facing issue with Samba Printing using Windows7 in Pure IPV6 environment. We noticed that the same usecase passes in Windows8.1. Could you please help us to resolve this issue?
Why there exists problem only with Windows7 though we are using SMB protocol.
We noticed that the data size is being read as zero always and hence after four times retry the job is failing to print.

The below error is logged on failure,
  "print_job_end: canceling spool of /smbprefix/smbprn.l5bCNH (zero length)"

Please help us in resolving this issue immediately.

Regards,
Meena
Comment 1 Andreas Schneider 2014-04-24 09:56:52 UTC
Please read https://www.samba.org/~asn/reporting_samba_bugs.txt
Comment 2 Björn Jacke 2014-04-24 12:34:22 UTC
(In reply to comment #0)
> Please help us in resolving this issue immediately.

samba is free software, you cannot demand immediate bug fixes from volunteering developers. if you have an urgent need for getting fixes done you should consider to have a look here:

http://www.samba.org/samba/support/
Comment 3 Jeremy Allison 2014-04-24 15:53:18 UTC
(In reply to comment #2)
> (In reply to comment #0)
> > Please help us in resolving this issue immediately.
> 
> samba is free software, you cannot demand immediate bug fixes from volunteering
> developers. if you have an urgent need for getting fixes done you should
> consider to have a look here:
> 
> http://www.samba.org/samba/support/

People for whom English is a second language can sometimes use
inappropriate terms. It's not a big deal :-).

Meena, we require much more information to help you fix this
issue. Please look at the link Andreas provided, and it should
help you understand the details we need to start looking into
this.

Regards,

Jeremy.
Comment 4 Meena 2014-04-30 06:33:00 UTC
Created attachment 9884 [details]
Log file for Print Failure in PureIPV6 environment
Comment 5 Meena 2014-04-30 06:34:20 UTC
(In reply to comment #4)
> Created attachment 9884 [details]
> Log file for Print Failure in PureIPV6 environment

Dear Jeremy,

Thank you for the reply.

Please find the detailed description of the issue below,
We have migrated from Samba 3.5.16 to 3.6.22. When we were testing Print Job in Pure IPV6 environment(We have disabled IPV4 is ClientPC and Server Side also) from Windows7 Client PC, Print Job fails. We observed the below error,

[2010/04/23 19:32:12.735242,  4] rpc_server/rpc_handles.c:242(find_policy_by_hnd_internal)
  Policy not found: [0000] 00 00 00 00 0D 00 00 00   00 00 00 00 D1 4B 52 9A   ........ .....KR.
  [0010] 29 2F 00 00                                       )/.. 
[2010/04/23 19:32:12.735958,  2] rpc_server/spoolss/srv_spoolss_nt.c:350(find_printer_index_by_hnd)
  find_printer_index_by_hnd: Printer handle not found: Policy not found: [0000] 00 00 00 00 0D 00 00 00   00 00 00 00 D1 4B 52 9A   ........ .....KR.
  [0010] 29 2F 00 00                                       )/.. 
[2010/04/23 19:32:12.736666,  2] rpc_server/spoolss/srv_spoolss_nt.c:350(find_printer_index_by_hnd)
  find_printer_index_by_hnd: Printer handle not found: close_printer_handle: Invalid handle (OURS:12073:12073)
[2010/04/23 19:32:12.736872,  1] ../librpc/ndr/ndr.c:284(ndr_print_function_debug)
       spoolss_ClosePrinter: struct spoolss_ClosePrinter
          out: struct spoolss_ClosePrinter
              handle                   : *
                  handle: struct policy_handle
                      handle_type              : 0x00000000 (0)
                      uuid                     : 0d000000-0000-0000-d14b-529a292f0000
              result                   : WERR_BADFID
[2010/04/23 19:32:12.737675,  3] printing/printspoolss.c:297(print_spool_end)
  Failed to close printer Print [NT_STATUS_RPC_SS_CONTEXT_MISMATCH]


It is observed that after the first attempt to print the files three more consecutive attempts are done and the same is failed with the below error as the file length is set to zero due to some failure,

"print_job_end: canceling spool of /smbprefix/smbprn.l5bCNH (zero length)"

Please find attached the log file for further reference.

Regards,
Meena
Comment 6 Meena 2014-04-30 06:41:23 UTC
(In reply to comment #3)
> (In reply to comment #2)
> > (In reply to comment #0)
> > > Please help us in resolving this issue immediately.
> > 
> > samba is free software, you cannot demand immediate bug fixes from volunteering
> > developers. if you have an urgent need for getting fixes done you should
> > consider to have a look here:
> > 
> > http://www.samba.org/samba/support/
> 
> People for whom English is a second language can sometimes use
> inappropriate terms. It's not a big deal :-).
> 
> Meena, we require much more information to help you fix this
> issue. Please look at the link Andreas provided, and it should
> help you understand the details we need to start looking into
> this.
> 
> Regards,
> 
> Jeremy.

Dear Jeremy,

Also please find the steps to reproduce this bug below,

1. Disable IPV4 in Windows7 Client PC and enable only IPV6.
2. Disable IPV4 in Server side Printer and enable only IPV6.
3. Add the Printer using the local port in Windows7 Client PC using IPV6 address and Install the Printer in Client PC.
4.After successfull installation submit a Test Page Print using Printer Properties from the Windows7 Client PC to the Printer.
5. Result -> Print job fails to print.

I have attached the log files and provided further details above. Please let us know if any further information is required.

Regards,
Meena
Comment 7 Meena 2014-04-30 10:19:51 UTC
(In reply to comment #3)
> (In reply to comment #2)
> > (In reply to comment #0)
> > > Please help us in resolving this issue immediately.
> > 
> > samba is free software, you cannot demand immediate bug fixes from volunteering
> > developers. if you have an urgent need for getting fixes done you should
> > consider to have a look here:
> > 
> > http://www.samba.org/samba/support/
> 
> People for whom English is a second language can sometimes use
> inappropriate terms. It's not a big deal :-).
> 
> Meena, we require much more information to help you fix this
> issue. Please look at the link Andreas provided, and it should
> help you understand the details we need to start looking into
> this.
> 
> Regards,
> 
> Jeremy.

Dear Jeremy,

Also please find the steps to reproduce this bug below,

1. Disable IPV4 in Windows7 Client PC and enable only IPV6.
2. Disable IPV4 in Server side Printer and enable only IPV6.
3. Add the Printer using the local port in Windows7 Client PC using IPV6 address and Install the Printer in Client PC.
4.After successfull installation submit a Test Page Print using Printer Properties from the Windows7 Client PC to the Printer.
5. Result -> Print job fails to print.

I have attached the log files and provided further details above. Please let us know if any further information is required.

Regards,
Meena
Comment 8 David Disseldorp 2014-06-18 15:40:11 UTC
*** Bug 10664 has been marked as a duplicate of this bug. ***
Comment 9 Björn Jacke 2021-01-08 00:57:05 UTC
closing this because as mentioned in bug 10664 this is working with win8 and newer