diff options
| -rw-r--r-- | indra/llinventory/lltransactiontypes.h | 12 | ||||
| -rw-r--r-- | indra/llmessage/llcurl.cpp | 13 | ||||
| -rw-r--r-- | indra/llmessage/llcurl.h | 6 | ||||
| -rw-r--r-- | indra/llmessage/llhttpclient.cpp | 5 | ||||
| -rw-r--r-- | indra/llmessage/llregionpresenceverifier.cpp | 2 | ||||
| -rw-r--r-- | indra/llmessage/lltransfersourceasset.cpp | 1 | ||||
| -rw-r--r-- | scripts/messages/message_template.msg | 9 | 
7 files changed, 42 insertions, 6 deletions
| diff --git a/indra/llinventory/lltransactiontypes.h b/indra/llinventory/lltransactiontypes.h index 1cb7308bd4..2c699bcb87 100644 --- a/indra/llinventory/lltransactiontypes.h +++ b/indra/llinventory/lltransactiontypes.h @@ -69,6 +69,12 @@ const S32 TRANS_PARCEL_DIR_FEE		= 2003;  const S32 TRANS_GROUP_TAX		    = 2004; // Taxes incurred as part of group membership  const S32 TRANS_CLASSIFIED_RENEW	= 2005; +// Codes 2100-2999 reserved for recurring billing services +// New codes can be created through an admin interface so may not +// automatically end up in the list below :-( +// So make sure you check the transaction_description table +const S32 TRANS_RECURRING_GENERIC  = 2100; +  // Codes 3000-3999 reserved for inventory transactions  const S32 TRANS_GIVE_INVENTORY		= 3000; @@ -84,6 +90,12 @@ const S32 TRANS_DWELL_BONUS			= 5007;  const S32 TRANS_PAY_OBJECT			= 5008;  const S32 TRANS_OBJECT_PAYS			= 5009; +// Codes 5100-5999 reserved for recurring billing transfers between users +// New codes can be created through an admin interface so may not +// automatically end up in the list below :-( +// So make sure you check the transaction_description table +const S32 TRANS_RECURRING_GENERIC_USER  = 5100; +  // Codes 6000-6999 reserved for group transactions  //const S32 TRANS_GROUP_JOIN		    = 6000;  //reserved for future use  const S32 TRANS_GROUP_LAND_DEED		= 6001; diff --git a/indra/llmessage/llcurl.cpp b/indra/llmessage/llcurl.cpp index a4af8e989b..5ff41322b7 100644 --- a/indra/llmessage/llcurl.cpp +++ b/indra/llmessage/llcurl.cpp @@ -131,7 +131,7 @@ void LLCurl::Responder::errorWithContent(  // virtual  void LLCurl::Responder::error(U32 status, const std::string& reason)  { -	llinfos << status << ": " << reason << llendl; +	llinfos << mURL << " [" << status << "]: " << reason << llendl;  }  // virtual @@ -139,6 +139,11 @@ void LLCurl::Responder::result(const LLSD& content)  {  } +void LLCurl::Responder::setURL(const std::string& url) +{ +	mURL = url; +} +  // virtual  void LLCurl::Responder::completedRaw(  	U32 status, @@ -148,7 +153,11 @@ void LLCurl::Responder::completedRaw(  {  	LLSD content;  	LLBufferStream istr(channels, buffer.get()); -	LLSDSerialize::fromXML(content, istr); +	if (!LLSDSerialize::fromXML(content, istr)) +	{ +		llinfos << "Failed to deserialize LLSD. " << mURL << " [" << status << "]: " << reason << llendl; +	} +  	completed(status, reason, content);  } diff --git a/indra/llmessage/llcurl.h b/indra/llmessage/llcurl.h index fbd3077cbf..0b58e7c4a5 100644 --- a/indra/llmessage/llcurl.h +++ b/indra/llmessage/llcurl.h @@ -120,8 +120,14 @@ public:  			// of the header can be parsed.  In the ::completed call above only the body is contained in the LLSD.  			virtual void completedHeader(U32 status, const std::string& reason, const LLSD& content); +			// Used internally to set the url for debugging later. +			void setURL(const std::string& url); +  	public: /* but not really -- don't touch this */  		U32 mReferenceCount; + +	private: +		std::string mURL;  	};  	typedef boost::intrusive_ptr<Responder>	ResponderPtr; diff --git a/indra/llmessage/llhttpclient.cpp b/indra/llmessage/llhttpclient.cpp index 8b90a4c5ca..12ecbb36eb 100644 --- a/indra/llmessage/llhttpclient.cpp +++ b/indra/llmessage/llhttpclient.cpp @@ -265,6 +265,11 @@ static void request(  		}  	} +	if (responder) +	{ +		responder->setURL(url); +	} +  	req->setCallback(new LLHTTPClientURLAdaptor(responder));  	if (method == LLURLRequest::HTTP_POST  &&  gMessageSystem) diff --git a/indra/llmessage/llregionpresenceverifier.cpp b/indra/llmessage/llregionpresenceverifier.cpp index 4faad4468b..e02c735ce7 100644 --- a/indra/llmessage/llregionpresenceverifier.cpp +++ b/indra/llmessage/llregionpresenceverifier.cpp @@ -78,7 +78,7 @@ void LLRegionPresenceVerifier::RegionResponder::result(const LLSD& content)  	LLHost destination(host, port);  	LLUUID id = content["region_id"]; -	llinfos << "Verifying " << destination.getString() << " is region " << id << llendl; +	lldebugs << "Verifying " << destination.getString() << " is region " << id << llendl;  	std::stringstream uri;  	uri << "http://" << destination.getString() << "/state/basic/"; diff --git a/indra/llmessage/lltransfersourceasset.cpp b/indra/llmessage/lltransfersourceasset.cpp index 5a1cd95ffc..41f3f3f607 100644 --- a/indra/llmessage/lltransfersourceasset.cpp +++ b/indra/llmessage/lltransfersourceasset.cpp @@ -270,7 +270,6 @@ bool is_asset_fetch_by_id_allowed(LLAssetType::EType type)  		case LLAssetType::AT_BODYPART:  		case LLAssetType::AT_ANIMATION:  		case LLAssetType::AT_GESTURE: -		case LLAssetType::AT_FAVORITE:  			rv = true;  			break;  		default: diff --git a/scripts/messages/message_template.msg b/scripts/messages/message_template.msg index 9deab1f857..e1b01c569b 100644 --- a/scripts/messages/message_template.msg +++ b/scripts/messages/message_template.msg @@ -8950,6 +8950,7 @@ version 2.0  	}  } +// Link inventory  {  	LinkInventoryItem	Low	426 NotTrusted	Zerocoded  	{ @@ -8958,12 +8959,16 @@ version 2.0  		{	SessionID	LLUUID	}  	}  	{ -		InventoryData		Variable +		InventoryBlock		Single  		{	CallbackID	U32			} // Async Response  		{	FolderID		LLUUID	} +		{	TransactionID			LLUUID	} // Going to become TransactionID  		{	OldItemID		LLUUID	} +		{	Type			S8	} +		{	InvType			S8	}  		{	Name			Variable	1	} -		{	AssetType		U8		} +		{	Description		Variable	1	} +  	}  } | 
