|
using | KeyRing = zypp::KeyRing |
|
using | KeyRingRef = zypp::KeyRing_Ptr |
|
template<typename OpType > |
using | MaybeAsyncContextRef = std::conditional_t< detail::is_async_op_v< OpType >, ContextRef, SyncContextRef > |
|
using | AsyncCacheProviderContext = CacheProviderContext< ContextRef > |
|
using | SyncCacheProviderContext = CacheProviderContext< SyncContextRef > |
|
using | SyncProvideRes = MediaSyncFacade::Res |
|
using | AuthData = zypp::media::AuthData |
|
using | AuthData_Ptr = zypp::media::AuthData_Ptr |
|
using | NetworkAuthData = zypp::media::CurlAuthData |
|
using | NetworkAuthData_Ptr = zypp::media::CurlAuthData_Ptr |
|
using | TransferSettings = zypp::media::TransferSettings |
|
template<typename Derived > |
using | DownloadStatemachine = Statemachine< Derived, Download::State, Transition< InitialState, &InitialState::sigTransitionToDetectMetalinkState, DetectMetalinkState >, Transition< InitialState, &InitialState::sigTransitionToDlMetaLinkInfoState, DlMetaLinkInfoState >, Transition< InitialState, &InitialState::sigTransitionToDlNormalFileState, DlNormalFileState >, Transition< DetectMetalinkState, &DetectMetalinkState::sigFinished, DlMetaLinkInfoState, &DetectMetalinkState::toMetalinkGuard, &DetectMetalinkState::toDlMetaLinkInfoState >, Transition< DetectMetalinkState, &DetectMetalinkState::sigFinished, DlNormalFileState, &DetectMetalinkState::toSimpleDownloadGuard >, Transition< DlMetaLinkInfoState, &DlMetaLinkInfoState::sigFinished, FinishedState, DefaultStateCondition, &DlMetaLinkInfoState::transitionToFinished >, Transition< DlMetaLinkInfoState, &DlMetaLinkInfoState::sigGotMetadata, PrepareMultiState, DefaultStateCondition, &DlMetaLinkInfoState::transitionToPrepareMulti >, Transition< DlMetaLinkInfoState, &DlMetaLinkInfoState::sigFailed, FinishedState, DefaultStateCondition, &DlMetaLinkInfoState::transitionToFinished >, Transition< PrepareMultiState, &PrepareMultiState::sigFinished, DlMetalinkState, &PrepareMultiState::toMetalinkDownloadGuard, &PrepareMultiState::transitionToMetalinkDl >, Transition< PrepareMultiState, &PrepareMultiState::sigFallback, DlNormalFileState, DefaultStateCondition, &PrepareMultiState::fallbackToNormalTransition >, Transition< PrepareMultiState, &PrepareMultiState::sigFailed, DlNormalFileState >, Transition< DlMetalinkState, &DlMetalinkState::sigFinished, FinishedState, DefaultStateCondition, &DlMetalinkState::transitionToFinished >, Transition< DlMetalinkState, &DlMetalinkState::sigFailed, FinishedState, &DlMetalinkState::toFinalStateCondition, &DlMetalinkState::transitionToFinished >, Transition< DlMetalinkState, &DlMetalinkState::sigFailed, DlNormalFileState, &DlMetalinkState::toSimpleDownloadCondition >, Transition< DlNormalFileState, &DlNormalFileState::sigFinished, FinishedState, DefaultStateCondition, &DlNormalFileState::transitionToFinished >, Transition< DlNormalFileState, &DlNormalFileState::sigFailed, FinishedState, DefaultStateCondition, &DlNormalFileState::transitionToFinished > > |
| our known states: InitialState //< initial state before we start downloading DetectMetalinkState //< First attempt to get the zchunk header, but we might receive metalink data instead DlMetaLinkInfoState //< We got Metalink, lets get the full metalink file or we got no zchunk in the first place PrepareMultiState //< Parsing the metalink file and preparing the mirrors DLZckHeadState //< Download the ZChunk Header DLZckState //< Download the File in ZChunk Mode DlMetalinkState //< Download the File in Metalink Mode DlNormalFileState //< Simple Plain download, no chunking FinishedState //< We are done More...
|
|
using | MetaDataType = zypp::media::MetaDataType |
|
using | RpcMessageStreamPtr = std::shared_ptr< RpcMessageStream > |
|
template<typename T > |
using | ProvidePromiseRef = std::shared_ptr< ProvidePromise< T > > |
|
template<typename T > |
using | ProvidePromiseWeakRef = std::weak_ptr< ProvidePromise< T > > |
|
using | AnyMap = std::unordered_map< std::string, boost::any > |
|
|
enum | MessageCodes : uint32_t {
NoCode = 0,
FirstInformalCode = 100,
ProvideStarted = 100,
LastInformalCode = 199,
FirstSuccessCode = 200,
ProvideFinished = 200,
AttachFinished = 201,
AuthInfo = 202,
MediaChanged = 203,
DetachFinished = 204,
LastSuccessCode = 299,
FirstRedirCode = 300,
Redirect = 300,
Metalink = 301,
LastRedirCode = 399,
FirstClientErrCode = 400,
BadRequest = 400,
Unauthorized = 401,
Forbidden = 402,
PeerCertificateInvalid = 403,
NotFound = 404,
ExpectedSizeExceeded = 405,
ConnectionFailed = 406,
Timeout = 407,
Cancelled = 408,
InvalidChecksum = 409,
MountFailed = 410,
Jammed = 411,
MediaChangeAbort = 412,
MediaChangeSkip = 413,
NoAuthData = 414,
NotAFile = 415,
MediumNotDesired = 416,
LastClientErrCode = 499,
FirstSrvErrCode = 500,
InternalError = 500,
ProtocolError = 501,
LastSrvErrCode = 599,
FirstControllerCode = 600,
Prov = 600,
Cancel = 601,
Attach = 602,
Detach = 603,
LastControllerCode = 699,
FirstWorkerCode = 700,
AuthDataRequest = 700,
MediaChangeRequest = 701,
LastWorkerCode = 799
} |
|
Fix bsc#1174011 "auth=basic ignored in some cases" for provider We should proactively add the password to the request if basic auth is configured and a password is available in the credentials but not in the URL.
We should be a bit paranoid here and require that the URL has a user embedded, otherwise we go the default route and ask the server first about the auth method
Make sure URLs are rewritten, e.g. MediaSetAccess::rewriteUrl