Bug 802683 - Local instance path is text/plain
Summary: Local instance path is text/plain
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: yawn
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Vitezslav Crhonek
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-03-13 09:38 UTC by Jan Safranek
Modified: 2012-03-13 11:51 UTC (History)
1 user (show)

Fixed In Version: yawn-0-0.3.20120227svn561.fc18
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-03-13 11:51:46 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
proposed patch (540 bytes, text/plain)
2012-03-13 09:38 UTC, Jan Safranek
no flags Details

Description Jan Safranek 2012-03-13 09:38:51 UTC
Created attachment 569614 [details]
proposed patch

Description of problem:
http://localhost/yawn/Pickle method sets Content-type: text/plain instead of text/html.

Version-Release number of selected component (if applicable):
yawn.noarch-0-0.2.20120227svn561.fc18

How reproducible:
always

Steps to Reproduce:
1. go to instance of any class
2. click "Get the LocalInstancePath for use as a Method Reference Parameter" link at the bottom

  
Actual results:
raw HTML output:
<html><head><title>YAWN: CIM Object</title></head><body link="#0000ff" ><table border=0 cellpadding=0 cellspacing=0 vspace=0><tr><td nowrap width=100% valign=top><h1>Object Serialization</h1></td><td valign=top nowrap align=right><font size=-1><i><a href="Logout">Logout &gt;&gt;</a></i></td></tr></table><p><i>To pass the following object as a Parameter Reference to a method call, copy this string to your clipboard and paste it to the parameter field.</i><p><hr>eJx1kEFOwzAQRUMJLUkBCZVDlE0RXMEIqVJJkSpL2UWOM6KG2M7ETksWkWCTc+NYhQUVuz/fM2++53PEq3afg1xwITOdv8Vk+bxUxjLFIWESYjy5/cJRh6dzGvGSGaOci2E6C4LgZU2yleasfBIlbFpjQeIZnb5DmwtVCPVqcPyXn7h+A4+C2xgnDn3eYUTDglmGcYfTeTp2YO63eEk2Q4x04mTN9ltRQJ+GrvANg0h+xK5g9316PYzXwKzQ6jevd8nBJYPrp/75Q+8fuDnGzHygY9CN81dCNR8Z0bJqLNQHUmNyGm61sXiR0GhgmIpxwEsa11rbO3eV3QNeNfniG2uEflw=<hr><p><pre>&lt;LOCALINSTANCEPATH&gt;
	&lt;LOCALNAMESPACEPATH&gt;
		&lt;NAMESPACE NAME="root"/&gt;
		&lt;NAMESPACE NAME="cimv2"/&gt;

....

Expected results:
nicely formatted HTML page

Comment 2 Vitezslav Crhonek 2012-03-13 11:51:46 UTC
Thanks, looks fine, applied.


Note You need to log in before you can comment on or make changes to this bug.