Re: browse bug
On Sun, May 10, 2009 at 8:12 PM, Tomeu Vizoso wrote: > On Sat, May 9, 2009 at 20:23, Tony Anderson wrote: >> Hi, >> >> Curiouser and curiouser. I will try to see if I can reproduce the result. >> Essentially, I have a bundle .cpxo which is used by ClassroomPresenter. >> It returned 'document/unknown' on our schoolserver (our mix of XS-0.4). > > Ok, I guess that if it is something that is common and not due to > specific configuration of your server, we could modify Browse to take > that into account. The XS does try to know about Sugar specific mimetypes. Life does get better faster if people post to server-devel or to me mentioning that they're adding a new mimetype ;-) I don't remember XS-0.4 -- 0.5.2 does know about several Sugar mimetypes, but I don't think it knows about .cpxo cheers, m -- martin.langh...@gmail.com mar...@laptop.org -- School Server Architect - ask interesting questions - don't get distracted with shiny stuff - working code first - http://wiki.laptop.org/go/User:Martinlanghoff ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
Re: browse bug
On Sat, May 9, 2009 at 20:23, Tony Anderson wrote: > Hi, > > Curiouser and curiouser. I will try to see if I can reproduce the result. > Essentially, I have a bundle .cpxo which is used by ClassroomPresenter. > It returned 'document/unknown' on our schoolserver (our mix of XS-0.4). Ok, I guess that if it is something that is common and not due to specific configuration of your server, we could modify Browse to take that into account. Regards, Tomeu > Tony > > Tomeu Vizoso wrote: >> >> On Sat, May 9, 2009 at 04:19, Tony Anderson wrote: >> >>> >>> Hi, >>> >>> Bryan suggests that if the mime_type had been registered with Apache, >>> Browse >>> might have worked as is. I have had a chance to look at that. I think the >>> suggested patch is useful anyway. >>> >> >> What is document/unknown ? I thought application/octet-stream was the >> mime type that web servers use when they don't know in which format a >> file is. >> >> We should use the mailing list, btw. Other deployments may be having >> similar problems, etc. >> >> Regards, >> >> Tomeu >> >> >>> >>> Tony >>> >>> >>> David Farning wrote: >>> On Fri, May 8, 2009 at 12:35 AM, Tony Anderson wrote: > > Hi, > > I went to the SugarLabs trac page to report this bug in Browse. Please > do > that from the perspective of someone who wants to report a problem - > what > are they to do? > > Did you try to login and create a new ticket? The New Ticket link is only available if a user is logged in. I don't understand enough about downloadmanager.py to be useful:( so adding tomeu to the cc list. thanks for the bug report! david > > Meanwhile, line 178 of downloadmanger.py should read: > > if self._mime_type == 'application/octet-stream' or self._mime_type == > 'document/unknown': > > This causes downloadmanager to perform the sniffed_mime_type test for > ClassroomPresenter bundles (.cpxo) and provide the correct metadata in > the > journal entry. > > Tony > > > >>> >>> > > ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
Re: browse bug
Hi, Curiouser and curiouser. I will try to see if I can reproduce the result. Essentially, I have a bundle .cpxo which is used by ClassroomPresenter. It returned 'document/unknown' on our schoolserver (our mix of XS-0.4). Tony Tomeu Vizoso wrote: > On Sat, May 9, 2009 at 04:19, Tony Anderson wrote: > >> Hi, >> >> Bryan suggests that if the mime_type had been registered with Apache, Browse >> might have worked as is. I have had a chance to look at that. I think the >> suggested patch is useful anyway. >> > > What is document/unknown ? I thought application/octet-stream was the > mime type that web servers use when they don't know in which format a > file is. > > We should use the mailing list, btw. Other deployments may be having > similar problems, etc. > > Regards, > > Tomeu > > >> Tony >> >> >> David Farning wrote: >> >>> On Fri, May 8, 2009 at 12:35 AM, Tony Anderson wrote: >>> >>> Hi, I went to the SugarLabs trac page to report this bug in Browse. Please do that from the perspective of someone who wants to report a problem - what are they to do? >>> Did you try to login and create a new ticket? The New Ticket link is >>> only available if a user is logged in. >>> >>> I don't understand enough about downloadmanager.py to be useful:( so >>> adding tomeu to the cc list. >>> >>> thanks for the bug report! >>> >>> david >>> >>> >>> Meanwhile, line 178 of downloadmanger.py should read: if self._mime_type == 'application/octet-stream' or self._mime_type == 'document/unknown': This causes downloadmanager to perform the sniffed_mime_type test for ClassroomPresenter bundles (.cpxo) and provide the correct metadata in the journal entry. Tony >> ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel