Re: .pdf detected as suspicious because it registers as .bin........

2017-06-09 Thread Charlie
On Fri, 9 Jun 2017 13:06:07 -0400
Scott Kostyshak  wrote:

> > > Indeed, I've read that determining the type of file from the file
> > > itself can be tricky. See also:
> > > 
> > > https://en.wikipedia.org/wiki/Magic_number_(programming)
> > > 
> > > Scott  
> > 
> > Thank you for the link.  
> 
> I'm not sure if this link is relevant:
> 
> https://stackoverflow.com/a/37616343/1376404
> 
> Scott

Thanks Scott,

This could very well be the case. I wonder what corruption it might be.
Created in LyX which would pick up any wrongness, and then converted
with a converter that has never before failed to deliver the .pdf?

Anyway, have bookmarked this for future use if needed.

Thank You,
Charlie

-- 
Registered Linux User:- 329524
***

Whatever you can do, or dream you can, begin it. Boldness has
genius, power and magic in it. --Johann Wolfgang von Goethe

***

Debian GNU/Linux - Magic indeed.

-


Re: .pdf detected as suspicious because it registers as .bin........

2017-06-09 Thread Scott Kostyshak
On Tue, May 30, 2017 at 10:14:03PM +1000, Charlie wrote:

> > Indeed, I've read that determining the type of file from the file
> > itself can be tricky. See also:
> > 
> > https://en.wikipedia.org/wiki/Magic_number_(programming)
> > 
> > Scott
> 
> Thank you for the link.

I'm not sure if this link is relevant:

https://stackoverflow.com/a/37616343/1376404

Scott


Re: .pdf detected as suspicious because it registers as .bin........

2017-05-30 Thread Charlie
On Mon, 29 May 2017 23:10:04 -0400
Scott Kostyshak  wrote:

> On Tue, May 30, 2017 at 09:30:45AM +1000, Charlie wrote:
> 
> > Yes, Sorry. should have been clearer. I go into webmail of my
> > Internet Service Provider and the .pdf created by LyX has the
> > WARNING [below] message before opening.  
> 
> Ah I see what you mean now.
> 
> > Look; it's really just a thing that I thought was a bit weird and
> > imagined that someone else had this problem with a .pdf constructed
> > by a LyX converter?  
> 
> I agree it's weird. The following
> 
> $ file sample.pdf 
> sample.pdf: PDF document, version 1.5
> $ mimetype sample.pdf 
> sample.pdf: application/pdf
> 
> makes me think that the file is correct and that the webmail from your
> ISP is having trouble with the identification.
> 
> Indeed, I've read that determining the type of file from the file
> itself can be tricky. See also:
> 
> https://en.wikipedia.org/wiki/Magic_number_(programming)
> 
> Scott

Thank you for the link.
Charlie
-- 
Registered Linux User:- 329524
***

The Great Way is not difficult for those who have no
preferences. --Sengstan Third Zen Patriarch

***

Debian GNU/Linux - Magic indeed.

-


Re: .pdf detected as suspicious because it registers as .bin........

2017-05-29 Thread Scott Kostyshak
On Tue, May 30, 2017 at 09:30:45AM +1000, Charlie wrote:

> Yes, Sorry. should have been clearer. I go into webmail of my Internet
> Service Provider and the .pdf created by LyX has the WARNING [below]
> message before opening.

Ah I see what you mean now.

> Look; it's really just a thing that I thought was a bit weird and
> imagined that someone else had this problem with a .pdf constructed by
> a LyX converter?

I agree it's weird. The following

$ file sample.pdf 
sample.pdf: PDF document, version 1.5
$ mimetype sample.pdf 
sample.pdf: application/pdf

makes me think that the file is correct and that the webmail from your
ISP is having trouble with the identification.

Indeed, I've read that determining the type of file from the file itself
can be tricky. See also:

https://en.wikipedia.org/wiki/Magic_number_(programming)

Scott


Re: .pdf detected as suspicious because it registers as .bin........

2017-05-29 Thread Charlie
On Mon, 29 May 2017 12:07:19 -0400
Scott Kostyshak  wrote:

> On Mon, May 29, 2017 at 06:16:32PM +1000, Charlie wrote:
> > 
> > Hello Everyone,
> > 
> > LyX Version 2.2.2
> > (Monday, 10 October 2016)
> > Built from git commit hash 
> > Library directory: /usr/share/lyx
> > User directory: ~/.lyx/
> > Qt Version (run-time): 5.7.1
> > Qt Version (compile-time): 5.7.1
> > 
> >  Up to date Debian Stretch
> > 
> > I have a little problem with my ISP.  
> 
> Does ISP mean Internet Service Provider here?

Yes, Sorry. should have been clearer. I go into webmail of my Internet
Service Provider and the .pdf created by LyX has the WARNING [below]
message before opening.

> > Created a LyX file and then used the two eyes button to convert it
> > to a .pdf.
> > 
> > My ISP says:
> > 
> > WARNING! This attachment is suspicious because its type
> > doesn't match the type declared in the message. If you do not trust
> > the sender, you shouldn't open it in the browser because it may
> > contain malicious contents.
> > 
> > Expected: application/pdf(.pdf); found:
> > application/octet-stream(.bin)  
> 
> Can you attach the PDF that is created for you?

I created the .pdf and sent it to my account on my Internet Service
Provider.

> > It asks to open anyway, and it opens as a .pdf file just the way it
> > was created?  

There is a option to "Open Anyway" This is selected and the .pdf is
opened and is as it should be. Looks good.

> I don't understand this question.
> 
> > A small sample attached.  
> 
> I do not have your PNG file so I can't try to reproduce. I get an
> error.

Okay, I will remove the graphic, sorry. Done.

I also sent the .pdf as created by the LyX converter on my Debian
stretch system [as above] because on your system it also might be seen
as a sample.bin rather than a sample.pdf?

Both Okular and Evince open the document as a .pdf and don't question
it.

Look; it's really just a thing that I thought was a bit weird and
imagined that someone else had this problem with a .pdf constructed by
a LyX converter?

Thanks for your time, but obviously it's nothing.

Charlie

-- 
Registered Linux User:- 329524
***

Sometimes I lie awake at night, and ask, "Where have I gone
wrong?" Then a voice says to me, "This is going to take more
than one night." .Charlie Brown

***

Debian GNU/Linux - Magic indeed.

-


sample.lyx
Description: application/lyx


sample.pdf
Description: Adobe PDF document


Re: .pdf detected as suspicious because it registers as .bin........

2017-05-29 Thread Scott Kostyshak
On Mon, May 29, 2017 at 06:16:32PM +1000, Charlie wrote:
> 
>   Hello Everyone,
> 
>   LyX Version 2.2.2
> (Monday, 10 October 2016)
> Built from git commit hash 
> Library directory: /usr/share/lyx
> User directory: ~/.lyx/
> Qt Version (run-time): 5.7.1
> Qt Version (compile-time): 5.7.1
> 
>  Up to date Debian Stretch
> 
>   I have a little problem with my ISP.

Does ISP mean Internet Service Provider here?

> Created a LyX file and then used the two eyes button to convert it to
> a .pdf.
> 
> My ISP says:
> 
>   WARNING! This attachment is suspicious because its type doesn't
>   match the type declared in the message. If you do not trust the
>   sender, you shouldn't open it in the browser because it may
>   contain malicious contents.
> 
> Expected: application/pdf(.pdf); found: application/octet-stream(.bin)

Can you attach the PDF that is created for you?

> It asks to open anyway, and it opens as a .pdf file just the way it
> was created?

I don't understand this question.

> A small sample attached.

I do not have your PNG file so I can't try to reproduce. I get an error.

Scott


signature.asc
Description: PGP signature